margin_execute. The Kamino receipt (cToken) lands back in the margin account and counts toward the health factor.
What the validator allows
Only Kamino’sdeposit_reserve_liquidity (supply) and redeem_reserve_collateral (redeem), in owner mode, with the margin as owner and the margin’s own vaults on both sides. The spend is capped at the call’s amount.
How cTokens are valued
Each cToken is registered as a collateral-only asset. Its price source names its Kamino reserve. The oracle reads the reserve’s exchange rate and multiplies by the underlying token’s own price. As Kamino interest accrues, the exchange rate rises, and so does the cToken’s value in the health factor.The leveraged farm
- Deposit collateral into the margin account.
- Borrow USDC, USDT or SOL from Vanna.
- Supply the borrowed tokens to Kamino.
Unwind
Redeem the cTokens throughmargin_execute, then repay from margin. A liquidator can seize cTokens directly and redeem them from Kamino.
Kamino Liquidity (multi-asset LP strategies) isn’t supported. That program rejects CPI, so a margin account can never hold its shares.

