Prerequisites
Before you begin, ensure that you’ve:- Installed the App Kit SDK and an adapter
- Originated a loan with the connected wallet
Add collateral
CalladdCollateral with the loan’s loanId and the cirBTC amount to add.
Adding collateral improves the loan’s health factor but does not change its
debt.
TypeScript
Borrow more
Callborrow with the loan’s loanId (not a marketId) and the additional
USDC amount. The SDK sizes any additional collateral needed to keep the loan
healthy after the borrow and pulls it from the wallet’s cirBTC balance in the
same batch.
TypeScript