Utils
getAdjustPrice
Rounds down price input to two significant digits to adjust it for strike price. Assumes 18 decimal places (e.g., ETH price 1500 as 1500 * 10**18).
Params:
Returns:
Last updated
Rounds down price input to two significant digits to adjust it for strike price. Assumes 18 decimal places (e.g., ETH price 1500 as 1500 * 10**18).
Params:
Returns:
Last updated
Name
Type
Description
price
uint256
The input price
Name
Type
Description
adjustedPrice
uint256
The adjusted price