Repay
Return borrowed assets into the reserve.- TypeScript
- Rust
1
Import Dependencies
2
Load Market and Initialize RPC
3
4
5
Build the Transaction
6
What Happens When You Repay?
What Happens When You Repay?
- Assets are transferred from your wallet to the reserve pool
- Your borrow amount decreases in your obligation
- You stop paying interest on the repaid amount
- Your loan-to-value (LTV) ratio decreases (healthier position)
- Your available borrowing capacity increases
Repayment and Interest
Repayment and Interest
Repay some of your debt to improve your LTV:
- Repaying entire borrowed amount + accrued interest eliminates debt
- Full repayment allows you to withdraw all collateral
- You must repay the principal + accrued interest
- Interest accrues continuously