Token Flow
Last updated
User approves weETH (or any whitelisted asset via zap) spend for the vault contract.
User calls join() with the desired weETH amount.
OpalManager distributes weETH evenly as collateral in the adapter.
The Aave V3 adapter uses the weETH to acquire wETH (via swap), supplies weETH as collateral, and borrows additional wETH to acquire more weETH (via swap) to achieve the target leverage.
The vault mints opal-weETH-a shares to the user proportional to the vault's current holdings.
User calls exit() with the number of opal-weETH-a shares and wETH 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 weETH back to wETH).
The vault burns the user's opal-weETH-a shares.
weETH is transferred to the user.
Flash loan wETH from Aave V3.
Swap wETH to weETH.
Supply weETH as additional collateral.
Borrow wETH 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 wETH, 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

