Search
K
Links

Borrowing and minting PAR

To borrow and mint PAR equal to BORROW_AMOUNT, call the VaultsCore.borrow() function.
VaultsCore.borrow(myVaultId, BORROW_AMOUNT);
Your maximum borrow amount is equal to:
Max Borrow amount = collateral deposit amount * collateral price / collateralization ratio (e.g. 1.6)
Make sure you do not borrow beyond your maximum borrow amount to avoid getting liquidated.