Skip to content

Borrowing

Borrowing lets you receive a pool asset while maintaining collateral in a margin account. The account can contain a basket of accepted collateral assets. Its collateral ratio determines whether additional borrowing is allowed and whether it can be liquidated.

  1. Create a margin account and give it a name that helps you identify its purpose.
  2. Deposit accepted collateral into that account.
  3. Select a borrowing market with available liquidity.
  4. Enter an amount and inspect the simulated collateral ratio after borrowing.
  5. Confirm the transaction and verify the account’s debt and wallet balance.

Borrowing checks include ownership, supported assets, the minimum collateral ratio, utilization limits and applicable alpha restrictions. The borrowed assets are transferred to the account owner. The contract checks the current state when the transaction executes.

Each margin account has its own collateral and debt. Collateral in another account does not protect this account. Adding collateral or repaying debt generally improves its ratio; removing collateral or borrowing more generally reduces it, subject to prices and settlement.

Keep a stable balance if you want the protocol to use that reserve first for interest settlement. An insufficient reserve can lead to deductions from collateral. Read Collateral and risk for the ratio calculation and liquidation threshold.

Select the correct account and debt asset, then submit the repayment amount. Closing a pool borrowing position triggers a separate margin interest-settlement call within the transaction flow. Review remaining debt, interest and collateral after confirmation.

Collateral withdrawal is a separate action. The contract tests the account’s ratio after the proposed withdrawal; repaying one asset does not necessarily close every debt in a multi-asset account.