Skip to content
Lattice

TWAPOracleLib Constants

Git Source

TWAP_ORACLE_STORAGE_SLOT

keccak256(abi.encode(uint256(keccak256("lattice.storage.TWAPOracle")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant TWAP_ORACLE_STORAGE_SLOT = 0xc2bcc163613aea761b734a9692ad3548aab9088be29b53e03facf6a2a351df00;

ERC165_MAP_ITWAPORACLE_SLOT

0xd1baebe0 is type(ITWAPOracle).interfaceId. keccak256(abi.encode(bytes4(0xd1baebe0), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_ITWAPORACLE_SLOT = 0x3edcb012a40cef5fed8aba3a5816c3233af9ecd91b8a1965a2b67b8940a0f49f;