Token Flow
Last updated
User approves sUSDe (or any whitelisted asset via zap) spend for the vault contract.
User calls join() with the desired sUSDe amount.
OpalManager distributes sUSDe and USDe evenly as collateral in the adapter.
The Aave V3 adapter uses the sUSDe to acquire USDe (via swap), supplies sUSDe as collateral, and borrows additional USDT0 to acquire more sUSDe (via swap) to achieve the target leverage.
The vault mints opal-sUSDe-merkl-PLASMA-a shares to the user proportional to the vault's current holdings.
User calls exit() with the number of opal-sUSDe-merkl-PLASMA-a shares and USDT0 to redeem.
OpalManager reclaims from each adapter proportionally.
The Aave V3 adapter unwinds a proportional share of the leveraged position (repay debt, withdraw collateral, swap sUSDe back to USDT0).
The vault burns the user's opal-sUSDe-merkl-PLASMA-a shares.
sUSDe and USDe is transferred to the user.
Flash loan USDT0 from Aave V3.
Swap USDT0 to sUSDe.
Supply sUSDe as additional collateral.
Borrow USDT0 against the new collateral.
Repay the flash loan.
Assert the post-rebalance balance sheet.
For a leverage decrease, the steps are reversed: flash loan, repay debt, withdraw collateral, swap to USDT0, repay flash loan, assert balance sheet.
Users do not need to take any action during a managed rebalance. Share balances and redemption rights are unaffected.
Last updated

