Looping
For the degens and Yeetards
Using leverage carries risks. It is possible to lose all of your collateral if you do not pay back your loan in time.
Leveraged borrowing
Advanced Feature: Users can borrow
$BERAagainst their$BREAD, use the borrowed$BERAto bake or buy more$BREAD, and repeat this process; i.e., loopingUI Support: A user friendly interface on the BakerDAO website facilitates looping in one transaction, making it quick and simple to open and unwind leveraged positions
Fee Discount: The
$BREADbaking fee is discounted from2.69%to1.42%when opening leveraged positionsLiquidation: If a leverage position defaults, then the
$BREADcollateral is burned, causing the ratio of$BERAper$BREADto increase.$BREADcollateral from liquidated positions are burned collectively, every day, at00:00 UTC
Important Note: You can only have one active loan position at a time in BakerDAO. If you already have a Standard loan, you cannot create an automated looped position (and vice versa) until you close your existing position

Using looping allows users to create leveraged $BREAD exposure. If a position is max looped, no more liquid $BERA may be borrowed against the position due to diminishing amount of $BERA being used each loop.
One-click looping
In order to facilitate easier opening of looped positions, users can open max looped positions in one click which utilize flashloans to create the position in a single transaction. This allows users to easily open and close leveraged positions, and baking fees are reduced from 2.69% to 1.42% for these transactions.
Solidity implementation
Flash Burn
This functionality allows users to close a position using the $BREAD collateral itself without needing to acquire additional $BERA. To use this, select "Existing Collateral" in the repayment modal.
When you choose "Existing Collateral", the following process occurs:
Collateral Valuation: The system calculates the current value of your BREAD collateral in terms of BERA based on the protocol's backing ratio.
Burn Fee Application: A 2.69% burn fee is applied to your BREAD's valuation, reducing the effective value.
Debt Settlement: The remaining value (after the fee) is used to settle your outstanding loan.
Excess Value Check: The system determines if there's any value left after repaying the loan:
If the remaining value exceeds the loan amount, the excess is returned to you as BERA.
If the remaining value is less than or equal to the loan amount, nothing is returned (the entire collateral value is consumed).

Last updated