ChainlinkAdapterStorage

Git Source

State Variables

STORAGE_SLOT

bytes32 internal constant STORAGE_SLOT = keccak256("premia.contracts.storage.ChainlinkAdapter");

Functions

layout

function layout() internal pure returns (Layout storage l);

formatRoundId

function formatRoundId(uint16 phaseId, uint64 aggregatorRoundId) internal pure returns (uint80);

parseRoundId

function parseRoundId(uint256 roundId) internal pure returns (uint16 phaseId, uint64 aggregatorRoundId);

isUSD

function isUSD(address token) internal pure returns (bool);

isBTC

function isBTC(address token) internal pure returns (bool);

isETH

function isETH(address token) internal pure returns (bool);

Structs

Layout

struct Layout {
    mapping(bytes32 key => IChainlinkAdapter.PricingPath) pricingPath;
    mapping(address token => EnumerableSet.AddressSet tokens) pairedTokens;
}