Calculate Collateral Amount
Last updated
Last updated
async getRequiredCollateralAmount ()
This function will calculate the collateral amount needed for the loan request that the user will want to create.
loanAmount:number
– will be the amount the user wants to borrow.
underlying:object
– will be the object of the underlying asset that you will get from .
collateral:object
– will be the object of the collateral asset that you will get from .
collateralPercentage:number
- will be the response of what you will get from