Skip to content
docs

AaveProtocolConfig

Defined in: protocol-lending-aave-evm/src/protocol.ts:20

optional addressesProvider?: string

Defined in: protocol-lending-aave-evm/src/protocol.ts:26

A PoolAddressesProvider for a market not in the presets. The Pool is read from it; pool is then required.


optional chainId?: number

Defined in: protocol-lending-aave-evm/src/protocol.ts:22

Chain the market lives on (default: the account’s eip155:N, else 1).


optional market?: string

Defined in: protocol-lending-aave-evm/src/protocol.ts:24

Preset key in AAVE_MARKETS for the chain: ‘core’ (default), ‘lido’, ‘etherfi’.


optional multicall?: string | false

Defined in: protocol-lending-aave-evm/src/protocol.ts:42

Multicall3 address, or false to read reserves one call at a time.


optional permitTtlSeconds?: number

Defined in: protocol-lending-aave-evm/src/protocol.ts:38

Permit validity in seconds (default 1200).


optional pool?: string

Defined in: protocol-lending-aave-evm/src/protocol.ts:28

Expected Pool address; checked against what the addresses provider reports. Presets fill it; required with a custom addressesProvider.


optional provider?: EvmProvider | EvmProvider[]

Defined in: protocol-lending-aave-evm/src/protocol.ts:32

RPC url(s) or EIP-1193 provider(s) to read the chain through. Defaults to the account’s own.


optional referralCode?: number

Defined in: protocol-lending-aave-evm/src/protocol.ts:34

Aave referral code (inactive on every market today — 0).


optional reserveTtlMs?: number

Defined in: protocol-lending-aave-evm/src/protocol.ts:44

Cache lifetime for the reserve list (default 30 000 ms).


optional usePermit?: boolean

Defined in: protocol-lending-aave-evm/src/protocol.ts:36

Use supplyWithPermit / repayWithPermit when the token and the account support EIP-2612 (default true).


optional waitTimeoutMs?: number

Defined in: protocol-lending-aave-evm/src/protocol.ts:40

How long to wait for an approval to be mined before the main transaction (default 180 000 ms).


optional wethGateway?: string | null

Defined in: protocol-lending-aave-evm/src/protocol.ts:30

WrappedTokenGatewayV3 for native-coin legs. null disables native support; presets fill it.