Expand description
Aave v3 protocol facade.
Thin wrapper that bakes Aave v3’s per-chain market addresses into the
wp-evm-aave-v3 family read functions. Adding an Aave-v3 fork (Spark,
etc.) = copying this file and changing the addresses.
Structs§
- Aave
V3Market Config - Addresses identifying one Aave-v3-pattern lending market on a chain.
- Reserve
State - Snapshot of one Aave v3 reserve’s on-chain state at some block.
- Supply
Params - Parameters for an Aave v3
supply(deposit collateral). - User
Account Data - Per-account aggregate position health from
Pool.getUserAccountData. - Withdraw
Params - Parameters for an Aave v3
withdraw(redeem collateral).
Constants§
- CONFIG
- Aave v3 Ethereum mainnet market configuration.
- CONFIG_
ARBITRUM - Aave v3 Arbitrum One market config.
- CONFIG_
AVALANCHE - Aave v3 Avalanche C-Chain market config.
- CONFIG_
BASE - Aave v3 Base market config (its own deployment — distinct addresses). Addresses verified 2026-05-31 against bgd-labs/aave-address-book.
- CONFIG_
OPTIMISM - Aave v3 Optimism market config.
- CONFIG_
POLYGON - Aave v3 Polygon PoS market config.
Functions§
- config_
for_ chain - Pick the Aave v3 market config for a curated chain.
- plan_
supply - Build a
PlanFragmentfor an Aave v3supplyon the given chain. - plan_
withdraw - Build a
PlanFragmentfor an Aave v3withdrawon the given chain. - reserve_
state - Hydrate a reserve’s state on the given chain. Returns an error if the chain has no curated Aave v3 config yet.
- user_
account_ data - Hydrate an account’s aggregate health on the given chain.