Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
thomgabriel committed Jan 15, 2024
1 parent 40eea60 commit bdfce6c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,20 @@ Users can deposit DREX in the pool to obtain real yield collateralized by Public

**Promissory Note Token**

When depositing Drex in the pools, rBRLL will be minted for users, acting as the promissory note token that represents the user's right over the deposits and interest accumulated by the protocol. The total supply of rBRLL exactly represents the total amount of DREX controlled by the protocol earning returns in the pools. Each user's rBRLL balance is proportional to their share in this total. As more interest is accumulated on the DREX deposits, the total supply of rBRLL expands through the rebase mechanism. This increases each depositor's rBRLL token balance proportionally. Users can redeem their rBRLL at a 1:1 ratio for DREX at any time. As a standard ERC20 token with rebase, rBRLL can also be transferred and used in other DeFi protocols.
When depositing Drex in the pools, rBRLL will be minted for users, acting as the promissory note token that represents the user's right over the deposits and interest accumulated by the protocol. The total supply of rBRLL exactly represents the total amount of DREX controlled by the protocol earning returns in the pools. Each user's rBRLL balance is proportional to their share in this total. As more interest is accumulated on the DREX deposits, the total supply of rBRLL expands through the rebase mechanism.

This increases each depositor's rBRLL token balance proportionally. Users can redeem their rBRLL at a 1:1 ratio for DREX at any time. As a standard ERC20 token with rebase, rBRLL can also be transferred and used in other DeFi protocols.

**Borrowing**

Holders of TSELIC can deposit their tokens as collateral and take loans in DREX. DREX loans are only available in an overcollateralized manner, meaning that the borrowing user can only receive 99% of the value with which they used TSELIC as collateral. When users take a loan, using TSELIC as collateral, two internal events occur. First, the desired loan amount in DREX is converted to the corresponding representation in rBRLL, based on the fixed 1:1 parity established between these assets. Simultaneously, this converted amount of rBRLL is recorded as debt for the borrowing user.
Holders of TSELIC can deposit their tokens as collateral and take loans in DREX. DREX loans are only available in an overcollateralized manner, meaning that the borrowing user can only receive 99% of the value with which they used TSELIC as collateral. When users take a loan, using TSELIC as collateral, two internal events occur. First, the desired loan amount in DREX is converted to the corresponding representation in rBRLL, based on the fixed 1:1 parity established between these assets. Simultaneously, this converted amount of rBRLL is recorded as debt for the borrowing user.

This represents their obligation to repay this debt plus the due interest. While the debt is recorded internally in rBRLL, the corresponding amount of the DREX asset is transferred from the pool's reserve directly to the borrower's account. As interest accumulates for the DREX deposit, the total amount of rBRLL tokens increases through its rebase mechanism. Consequently, the borrower's debt record also increases proportionally in terms of the rBRLL unit. This represents the accumulation of interest that this user owes on the amount they borrowed.

Upon repayment, the deal is settled by transferring back the amount of DREX and converting this value back to the internal rBRLL unit. This erases the recorded debt, comprising both the principal and the automatically accrued interest due to the rebase of the token. To determine the interest rate to be applied, the protocol consults external data sources (Chainlink oracles) to obtain the current Selic rate. This market rate is then applied proportionally on the deposits that were allocated for loans, expanding the supply of rBRLL.

**Loan Recall Mechanism**

To ensure liquidity even with high loan rates, the protocol implements a recall mechanism that can be activated at any time by DREX depositors. When triggered, the recall mechanism will proportionally liquidate some of the TSELIC collaterals of the borrowers, in order to raise the necessary capital to reimburse depositors needing liquidity. The liquidated TSELIC are sold on the decentralized market via Uniswap, obtaining DREX that is used to buy back the positions of the depositors who invoked the recall. Thus, even with little idle capital due to high loans, the mechanism provides protection against a lack of liquidity by allowing a forced reimbursement via the sale of collateral in the market.

Since the cost of the loan does not exceed the return of the TSELIC collateral, the net balance of the debtors remains positive under the proportional recall mechanism. In other words, the recall serves only to raise capital for liquidity, without negatively affecting the positions of the borrowers. The mechanism balances the protocol's risks by maximizing capital efficiency while ensuring reimbursements on demand.

0 comments on commit bdfce6c

Please sign in to comment.