Originator Yield Oracle
Last updated
Was this helpful?
Last updated
Was this helpful?
For SMART Yield, the yield oracle observes the moving average of yield earned from the originator for a specific time window. Please see and corresponding deployment originator smart contract script such as which has the configuration parameters defined on theoracleCONF
variable.
The oracle was built based on Uniswap v2 (learn more on in the Uniswap documentation).
In the case for the Compound USDC SMART Yield Pool, configures the oracle to obtain the moving average of yields with the following parameters:
windowSize
is set to 3 days of time window
granularity
is set to 4, meaning that there will be 4 data points within the time window
By reliably sourcing and providing this data, it allows other smart contracts to perform key functions such as tranching risk appropriately to junior and senior tranches.