Options
The options fees to deduct from user and call options gains are calculated here.
Read Functions
Param Name
Type
Description
depositedAmount
uint128
Deposited collateral amount.
strikePrice
uint128
Strike price chosen during deposit.
ethPrice
uint64
Current collateral price.
If the strike price smaller or equal to the current deposited amount value, then the user will get gains, else the gains is zero.
Param Name
Type
Description
_ethPrice
uint128
Current ETH price.
_ethVolatility
uint256
ETH volatility.
_amount
uint256
The borrower's depositing amount.
_strikePrice
enum StrikePrice
Strike price percent chose by borrower.
Returns the options fees to deduct from borrower based on strike price chose, ETH volatility, total CDS deposited amount, total collateral locked in treasury.
Last updated