Borrower
The borrowers deposit collateral to borrow another asset that's on the market. Borrowers will either pay their loan prior to/on expiry or default and lose their collateral.
The borrower selects
the collateral to deposit (ex. wBTC)
the paired token to payback (payment currency, ex. Dai)
Expiry (when to pay)
A minting ratio, correlated with a collateralization ratio, also will affect the interest rate
They will receive the rcToken(s) and rrToken(s) after depositing collateral to the Ruler Protocol. They then sell the rcToken to lenders or a DEX pool to complete the cycle of borrowing.
Upon expiry of the loan, the borrower will need to pay back the loan with the paired token (ex. Dai) and rrToken, then receive the collateral back (ex. wBTC). If the borrower does not payback on time (miss the expiry), the loan is considered defaulted. The collateral (ex. wBTC) will be forfeited by the borrower and belongs to the lenders of the pair.
Borrowing
Borrower deposits collateral to Ruler Protocol to receive rTokens ("Deposit" button on UI)
Borrower then sells rcTokens to receive a loan (this is zapped with the "Borrow" botton on UI)
Borrower keeps rrTokens; to repay the loan before expiry and receive collateral back

Repayment of a loan
With Paired Tokens + rrTokens.
Borrower repays Ruler Protocol by providing the rrTokens and the to-be-paid loan amount in paired token before expiry
Borrower receives collateral back

Example of a complete borrowing cycle
Bob deposits 1 wBTC into Ruler Protocol, Bob gets 10k rrTokens and 10k rcTokens.
He then sells 10k rcTokens for 9.5k Dai.
Bob uses the 9.5k Dai to do whatever he wishes with no risk of liquidation.
Before expiry, Bob pays 10k Dai + 10k rrTokens to Ruler and gets back 1 wBTC.
Did you deposit collateral to the contract by accident without knowing what you were doing?
Please see the steps below for unwrapping .
Depositor unwraps to receive collateral
With rrTokens and rcTokens, a fee will be charged on the collateral.
The depositor returns rrTokens and rcTokens to Ruler Protocol before expiry
The depositor receives collateral back

Last updated
Was this helpful?