Borrowing and minting PAR/paUSD

To borrow and mint PAR/paUSD 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.

Last updated