Depositing into an OMLP Vault
UsebuildDepositToPositionTransaction 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:- Specific Amount
- Withdraw All
- Withdraw Interest Only
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.