Collateral & Loans

Collateral & Loans

JuiceAccountManager lets farmers deposit Blast WETH as their collateral and borrow against it. Blast WETH yield is configured to be Claimable so that the exact amount can be tracked on each claim and distributed accordingly to depositors. Like with the Lending Pool, the WETH balance is tracked as a separate state variable so the actual WETH balance of the Manager should always be greater than or equal to this state balance.

The WETH balance should only change due to:

ActionOutcome

Farmer deposit

Increase

Farmer withdraw

Decrease

Liquidator purchases WETH

Decrease

WETH yield claimed

Increase

Once a farmer has deposited collateral into the Manager, they can open an JuiceAccount. The Manager will manage a Lending Pool loan on behalf of this JuiceAccount. The loan limits for a JuiceAccount are enforced by the Manager and are based off their collateral value, the Manager's risk parameters (LTV), and their existing USDB debt amount (if any). Each JuiceAccount has an Owner that can initiate actions through the Account. The Account then calls the Manager, which fills the Account's requests.

When a Manager creates a JuiceAccount, that Account is registered with the JuiceGovernor with the Account role. Strategies check if an address has the Account role before allowing interactions.

The JuiceAccount serves as custodian for assets that the Owner would've otherwise received. Because there is a Protocol managed Account that maintains custody of all the assets, it allows the Owner to perform a leveraged borrow. It can deploy its loan balance into a list of Strategies registered with the Protocol Governor for the Manager who created it to earn yield. If the Owner unwinds all their positions, pays off all their debt, and has remaining USDB, it is considered their profit and can be claimed.

An Account owner can deposit USDB into their Account and call the repay function, which uses the entire Account's USDB balance to pay off its debt, leaving behind any excess.

Last updated