Skip to main content
Lenders supply a Collateral Mint to its OMLP (Option Margin Liquidity Pool) vault and earn interest paid by Writers who borrow for leveraged Shorts.

Depositing into an OMLP Vault

Use buildDepositToPositionTransaction to deposit token base units into a vault. Send the built instructions as a version 1 transaction:

Withdrawing from an OMLP Vault

Choose the withdrawal helper that matches your UI action:
Use buildWithdrawFromPositionTransaction when the lender specifies an exact withdrawal amount in Collateral Mint base units.
Both withdrawAllFromPosition and withdrawInterestFromPosition check available vault cash before building instructions and throw if no withdrawable balance is available. If a borrower defaults and the settlement mint’s Insurance Fund cannot cover the remaining shortfall, the uncovered amount socializes directly across active vault shares so withdrawals stay open and order-independent.