Borrowing
The borrowing.sol is one of the main user facing contracts in the protocol. It exposes the way to add liquidity to the protocol.
Write functions
depositTokens
function depositTokens(
BorrowDepositParams memory depositParam
) external payable
struct BorrowDepositParams {
IOptions.StrikePrice strikePercent;
uint64 strikePrice;
uint256 volatility;
AssetName assetName;
uint256 depositingAmount;
}
enum AssetName {
DUMMY,
ETH,
WeETH,
rsETH,
USDa,
ABOND,
TUSDT
}Param Name
Type
withDraw
Param Name
Type
Description
liquidate
Param Name
Type
Description
redeemYields
Param
Type
Description
renewOptions
Param
Type
Description
calculateRatio
Param Name
Type
Description
updateRatePerSecByUSDaPrice
calculateCumulativeRate
Setter Functions
Function name
Param Name
Description
Param Type
Read Functions
getAbondYields
Param Name
Type
Description
getUSDValue
getLTV
getOptionFeesToPay
Last updated