GenericRateProvider
Inherits: IRateProvider
State Variables
target
The address to make rate calls to.
selector
The selector to call on the target.
staticArgument0
Static arguments to pass to the target.
staticArgument1
staticArgument2
staticArgument3
staticArgument4
staticArgument5
staticArgument6
staticArgument7
Functions
constructor
getRate
Get the rate of some generic asset.
This function only supports selectors that only contain static arguments, dynamic arguments will not be encoded correctly, and calls will likely fail.
If staticArgumentN is not used, it can be left as 0.