Skip to main content

Crate wp_evm_aave_v3

Crate wp_evm_aave_v3 

Source
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§

AaveV3MarketConfig
Addresses identifying one Aave-v3-pattern lending market on a chain.
ReserveState
Snapshot of one Aave v3 reserve’s on-chain state at some block.
SupplyParams
Parameters for an Aave v3 supply (deposit collateral).
UserAccountData
Per-account aggregate position health from Pool.getUserAccountData.
WithdrawParams
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 PlanFragment for an Aave v3 supply on the given chain.
plan_withdraw
Build a PlanFragment for an Aave v3 withdraw on 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.