GenericRateProvider

Git Sourcearrow-up-right

Inherits: IRateProvider

State Variables

target

The address to make rate calls to.

address public immutable target;

selector

The selector to call on the target.

bytes4 public immutable selector;

staticArgument0

Static arguments to pass to the target.

bytes32 public immutable staticArgument0;

staticArgument1

bytes32 public immutable 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.

Was this helpful?