Skip to content
Lattice

AaveV3AdapterLib Constants

Git Source

AAVE_V3_ADAPTER_STORAGE_SLOT

keccak256(abi.encode(uint256(keccak256("lattice.storage.AaveV3Adapter")) - 1)) & ~bytes32(uint256(0xff)). Precomputed: 0x78e1f0849c8352c9588d407dc28e9981715ac638a0aa753fc1ecf5191c1f8200

bytes32 constant AAVE_V3_ADAPTER_STORAGE_SLOT = 0x78e1f0849c8352c9588d407dc28e9981715ac638a0aa753fc1ecf5191c1f8200;

AAVE_V3_ADAPTER_ERC165_STORAGE_LOCATION

ERC-165 storage location (shared across all Lattice modules). keccak256(abi.encode(uint256(keccak256("diamond.lib.storage.ERC165")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant AAVE_V3_ADAPTER_ERC165_STORAGE_LOCATION =
    0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200;

ERC165_MAP_IPROTOCOLADAPTER_SLOT

0x8f7783e6 is type(IProtocolAdapter).interfaceId. keccak256(abi.encode(bytes4(0x8f7783e6), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IPROTOCOLADAPTER_SLOT = 0x789387b95720f4aa713e912bc377a2f999f1310b69003727d9c01b7ea1494c77;

ERC165_MAP_IAAVEV3ADAPTER_SLOT

0xe0d5525d is type(IAaveV3Adapter).interfaceId. keccak256(abi.encode(bytes4(0xe0d5525d), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IAAVEV3ADAPTER_SLOT = 0x262752a3af13c9a5ddea1c5915891d611ab5f872b74fae046923437d05fcf120;

AAVE_VARIABLE_RATE

Aave variable interest-rate mode (1 == stable, deprecated; 2 == variable).

uint256 constant AAVE_VARIABLE_RATE = 2;