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