These flows use many instructions. If you hit compute limits, add
ComputeBudgetProgram.setComputeUnitLimit({ units: 1_000_000 }) (or higher) as the first instruction in your transaction.Multiply (Leverage)
Build leveraged positions: flashloan debt → swap → deposit collateral + borrow → payback.
Unwind (Deleverage)
Close or reduce leveraged positions: flashloan collateral → swap → repay + withdraw → payback.
Repay with Collateral and Max Withdraw
Close a position when you only hold the collateral token.
Vault Swap
Move a position from one vault to another atomically.
Utilisation After Deposit
Calculate how utilisation changes after a hypothetical deposit (read-only).
Native Staked Vaults
Use staked SOL as collateral via Single Pool tokens.
