AaveV3Deployment

Documentation for eth_defi.aave_v3.deployment.AaveV3Deployment Python class.

class AaveV3Deployment[source]

Describe Aave v3 deployment.

Attributes summary

web3

The Web3 instance for which all the contracts here are bound

pool

Aave v3 pool contract proxy

data_provider

AaveProtocolDataProvider contract

oracle

AaveOracle contract

Methods summary

__init__(web3, pool, data_provider, oracle)

get_price(token_address)

Returns asset latest price using Aave oracle.

get_reserve_configuration_data(token_address)

Returns reserve configuration data.

get_user_data(user_address)

Returns the user account data across all the reserves.

web3: web3.main.Web3

The Web3 instance for which all the contracts here are bound

pool: web3.contract.contract.Contract

Aave v3 pool contract proxy

data_provider: web3.contract.contract.Contract

AaveProtocolDataProvider contract

oracle: web3.contract.contract.Contract

AaveOracle contract

get_reserve_configuration_data(token_address)[source]

Returns reserve configuration data.

Parameters

token_address (eth_typing.evm.HexAddress) –

Return type

eth_defi.aave_v3.deployment.AaveV3ReserveConfiguration

get_price(token_address)[source]

Returns asset latest price using Aave oracle.

Parameters

token_address (eth_typing.evm.HexAddress) –

Return type

int

get_user_data(user_address)[source]

Returns the user account data across all the reserves.

Parameters

user_address (eth_typing.evm.HexAddress) –

Return type

eth_defi.aave_v3.deployment.AaveV3UserData

__init__(web3, pool, data_provider, oracle)
Parameters
  • web3 (web3.main.Web3) –

  • pool (web3.contract.contract.Contract) –

  • data_provider (web3.contract.contract.Contract) –

  • oracle (web3.contract.contract.Contract) –

Return type

None