Nucleus
  • Overview
    • Welcome to Nucleus
    • Official Links
    • FAQ
  • Nucleus Architecture
    • Overview
    • Vault Framework
    • Cross-chain Infrastructure
    • Withdrawals
    • Revenue Strategies
      • Market-agnostic Lending
      • Cross-chain Intents
      • Ownership by Default
    • Reward Distribution
    • Nucleus Points
    • Deployed Assets
    • Smart Contracts
      • README
      • CONTRACTS
        • contents
        • atomic-queue
          • Contents
          • AtomicQueue
          • AtomicSolver
          • AtomicSolverV2
          • AtomicSolverV3
          • IAtomicSolver
        • base
          • Boring Vault
            • BoringVault
          • Decoders and Sanitizers
            • Contents
            • IonPoolDecoderAndSanitizer
          • Roles
            • Contents
            • Cross Chain
              • Cross Chain OP Teller With Multi Asset Support
                • CrossChainOPTellerWithMultiAssetSupport
                • ICrossDomainMessenger
              • Cross Chain Teller Base
                • BridgeData
                • CrossChainTellerBase
              • MultiChainLayerZeroTellerWithMultiAssetSupport
              • Multi Chain Teller Base
                • Chain
                • MultiChainTellerBase
                • MultiChainTellerBase_GasLimitExceeded
                • MultiChainTellerBase_GasTooLow
                • MultiChainTellerBase_MessagesNotAllowedFrom
                • MultiChainTellerBase_MessagesNotAllowedFromSender
                • MultiChainTellerBase_MessagesNotAllowedTo
                • MultiChainTellerBase_ZeroMessageGasLimit
              • OAppAuth
                • Contents
                • OAppAuth
                • OAppAuthCore
                • OAppAuthReceiver
                • OAppAuthSender
            • AccountantWithRateProviders
            • ManagerWithMerkleVerification
            • TellerWithMultiAssetSupport
        • helper
          • Contents
          • Constants
          • ArcticArchitectureLens
          • Deployer
          • GenericRateProvider
        • interfaces
          • BalancerVault
          • AggregationRouterV5
          • BeforeTransferHook
          • DecoderCustomTypes
          • ICreateX
          • IPriceFeed
          • PriceRouter
          • IRateProvider
          • INonFungiblePositionManager
          • Contents
          • IStaking
            • ILiquidityPool
            • ILRTDepositPool
            • IRestakeManager
            • IStaderConfig
            • IStakePoolManager
            • ISTETH
            • ISWETH
            • IUNSTETH
            • IUserWithdrawManager
            • IWEETH
            • IWithdrawRequestNft
            • IWSTETH
          • IUniswap v3 Router
            • IUniswapV3Router
            • IUniswapV3SwapCallback
        • micro-managers
          • Contents
          • DexSwapperUManager
          • DexAggregatorUManager
          • UManager
        • migration
          • Contents
          • CellarMigrationAdaptor
        • oracles
          • EthPerTokenRateProvider
          • Contents
          • EthPerWstEthRateProvider
  • Security
    • Audits
Powered by GitBook
On this page
  • State Variables
  • target
  • selector
  • staticArgument0
  • staticArgument1
  • staticArgument2
  • staticArgument3
  • staticArgument4
  • staticArgument5
  • staticArgument6
  • staticArgument7
  • Functions
  • constructor
  • getRate

Was this helpful?

  1. Nucleus Architecture
  2. Smart Contracts
  3. CONTRACTS
  4. helper

GenericRateProvider

PreviousDeployerNextinterfaces

Was this helpful?

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

bytes32 public immutable staticArgument2;

staticArgument3

bytes32 public immutable staticArgument3;

staticArgument4

bytes32 public immutable staticArgument4;

staticArgument5

bytes32 public immutable staticArgument5;

staticArgument6

bytes32 public immutable staticArgument6;

staticArgument7

bytes32 public immutable staticArgument7;

Functions

constructor

constructor(
    address _target,
    bytes4 _selctor,
    bytes32 _staticArgument0,
    bytes32 _staticArgument1,
    bytes32 _staticArgument2,
    bytes32 _staticArgument3,
    bytes32 _staticArgument4,
    bytes32 _staticArgument5,
    bytes32 _staticArgument6,
    bytes32 _staticArgument7
);

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.

function getRate() public view returns (uint256);
Git Source