- Derive
reserve,asset_config,share_mint, user ATAs (underlying + shares). - Wrap SOL if the mint is WSOL.
- Call
lender_supplywithmin_shares_outfrom a quoted exchange rate minus slippage. - For redeem, pass shares and
min_assets_out. Checkaccounted_liquidity_assetsfirst.
last_update_timestamp is old so the quote matches accrual.
vTokens are not accepted as margin collateral. Redeem first.
