A Pricer contract for a wstETH token
-
constructor(address _wstETH, address _underlying, address _oracle) (public)
-
getPrice() (external)
-
setExpiryPriceInOracle(uint256 _expiryTimestamp) (external)
-
getHistoricalPrice(uint80) (external)
-
_wstETH
: wstETH -
_underlying
: underlying asset for wstETH -
_oracle
: Opyn Oracle contract address
get the live price for the asset
overrides the getPrice function in OpynPricerInterface
- price of 1 wstETH in USD, scaled by 1e8
set the expiry price in the oracle
requires that the underlying price has been set before setting a wstETH price
_expiryTimestamp
: expiry to set a price for