RateOracle
The Rate Oracle is used to track the rate of the IBT contract and stores the rate once a day.
RateOracle.sol code can be found on GitHub.
Methods
pokeRate
Stores the current rate of the underlying asset of vault
.
Note: Rates are stored once a day. If this method is called when the rate has already been stored, then the current rate for that day will be returned, saving gas.
Input Parameter | Type | Description |
---|---|---|
| address | The address of the PrincipalToken |
Return Parameter | Type | Description |
---|---|---|
uint256 | The current rate that was set |
View Methods
getRateOfVaultOnDate
Returns the rate of the underlying asset of vault
at date
.
getLastPokedDateOfVault
Returns the last date that pokeRate()
was executed for vault
.
Last updated