L2PoolInstance

Base

0xa238dd80c259a72e81d7e4664a9801593f98d1c5

Proxy 實作合約: 0xdb578d67a83e94de73c9e0c14280f804f6c1c3e4

Solidity v0.8.27+commit.40a35a09

🤖
透過你的 AI 查詢此合約
參考: aavev3-pool-base 0xa238dd80c259a72e81d7e4664a9801593f98d1c5
範例提示詞: "Tell me the current state of aavev3-pool-base"
還沒有接入 AI?→ mcp.smarts.md

管理與風險

誰能修改規則?

Detected upgradeable controls from the verified ABI.

Upgradeable

當前控制

Implementation
0xdb578d67a83e94de73c9e0c14280f804f6c1c3e4 ↗ Basescan → smarts proxy

概覽

讀取函式
34
寫入函式
44
事件
16

讀取函式

Block #46,493,026 · just now
ADDRESSES_PROVIDER() view → 0xe20fcbdbffc4dd138ce8b2e6fbb6cb49777ad64d

Returns the PoolAddressesProvider connected to this contract

回傳值

名稱 類型 描述
address The address of the PoolAddressesProvider
FLASHLOAN_PREMIUM_TOTAL() view → 5

Returns the total fee on flash loans.

開發者: From v3.4 all flashloan fees will be send to the treasury.

回傳值

名稱 類型 描述
uint128 The total fee on flashloans
FLASHLOAN_PREMIUM_TO_PROTOCOL() view → 10,000

Returns the part of the flashloan fees sent to protocol

開發者: From v3.4 all flashloan fees will be send to the treasury and this value is always 100_00.

回傳值

名稱 類型 描述
uint128 The flashloan fee sent to the protocol treasury
MAX_NUMBER_RESERVES() view → 128

Returns the maximum number of reserves supported to be listed in this Pool

回傳值

名稱 類型 描述
uint16 The maximum number of reserves supported
POOL_REVISION() view → 10

Returns the current pool revision number.✨ AI

回傳值

名稱 類型 描述
uint256 The pool's revision identifier as a uint256, indicating the deployed pool contract version.✨ AI
RESERVE_INTEREST_RATE_STRATEGY() view → 0x86ab1c62a8bf868e1b3e1ab87d587aba6fbcbdc5

Returns the ReserveInterestRateStrategy connected to all the reserves

回傳值

名稱 類型 描述
address The address of the ReserveInterestRateStrategy contract
UMBRELLA() view → 0x554d4252454c4c41000000000000000000000000000000000000000000000000

Returns the UMBRELLA constant identifier for this L2 pool.✨ AI

回傳值

名稱 類型 描述
bytes32 The UMBRELLA identifier as a bytes32 value.✨ AI
getBorrowLogic() pure → 0x1fb8f7c906cddd28b42ae6eb76abc04a91188635

Gets the address of the external BorrowLogic

回傳值

名稱 類型 描述
address
getConfiguration(asset: address) view

Returns the configuration of the reserve

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
tuple The configuration of the reserve
getEModeCategoryBorrowableBitmap(id: uint8) view

Returns the borrowableBitmap of an eMode category

參數

名稱 類型 描述
id uint8 The id of the category

回傳值

名稱 類型 描述
uint128 The borrowableBitmap of the category
getEModeCategoryCollateralBitmap(id: uint8) view

Returns the collateralBitmap of an eMode category

參數

名稱 類型 描述
id uint8 The id of the category

回傳值

名稱 類型 描述
uint128 The collateralBitmap of the category
getEModeCategoryCollateralConfig(id: uint8) view

Returns the collateral config of an eMode category

參數

名稱 類型 描述
id uint8 The id of the category

回傳值

名稱 類型 描述
res tuple The ltv,lt,lb of the category
getEModeCategoryData(id: uint8) view

Returns the data of an eMode category

開發者: DEPRECATED use independent getters instead

參數

名稱 類型 描述
id uint8 The id of the category

回傳值

名稱 類型 描述
tuple The configuration data of the category
getEModeCategoryLabel(id: uint8) view

Returns the label of an eMode category

開發者: This function is deprecated and will be removed in a future version.

參數

名稱 類型 描述
id uint8 The id of the category

回傳值

名稱 類型 描述
string The label of the category
getEModeCategoryLtvzeroBitmap(id: uint8) view

Returns the ltvzero of an eMode category

參數

名稱 類型 描述
id uint8 The id of the category

回傳值

名稱 類型 描述
uint128 The ltvzeroBitmap of the category
getFlashLoanLogic() pure → 0xe66adcf153d0bd67a74e5d23e23f90b4011024ec

Gets the address of the external FlashLoanLogic

回傳值

名稱 類型 描述
address
getLiquidationGracePeriod(asset: address) view

Returns the liquidation grace period of the given asset

參數

名稱 類型 描述
asset address The address of the underlying asset

回傳值

名稱 類型 描述
uint40 Timestamp when the liquidation grace period will end
getLiquidationLogic() pure → 0x8dc095f287dbebd9e15f75bb3dfbf18389bb8104

Gets the address of the external LiquidationLogic

回傳值

名稱 類型 描述
address
getPoolLogic() pure → 0x25ed699a052b820d772765e26ed4dd9f0a26f3e5

Gets the address of the external PoolLogic

回傳值

名稱 類型 描述
address
getReserveAToken(asset: address) view

Returns the aToken address of a reserve.

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
address The address of the aToken
getReserveAddressById(id: uint16) view

Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct

參數

名稱 類型 描述
id uint16 The id of the reserve as stored in the DataTypes.ReserveData struct

回傳值

名稱 類型 描述
address The address of the reserve associated with id
getReserveData(asset: address) view

Returns the state and configuration of the reserve

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
res tuple The state and configuration data of the reserve
getReserveDeficit(asset: address) view

Returns the current deficit of a reserve.

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
uint256 The current deficit of the reserve
getReserveNormalizedIncome(asset: address) view

Returns the normalized income of the reserve

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
uint256 The reserve's normalized income
getReserveNormalizedVariableDebt(asset: address) view

Returns the normalized variable debt per unit of asset

開發者: WARNING: This function is intended to be used primarily by the protocol itself to get a "dynamic" variable index based on time, current stored index and virtual rate at the current moment (approx. a borrower would get if opening a position). This means that is always used in combination with variable debt supply/balances. If using this function externally, consider that is possible to have an increasing normalized variable debt that is not equivalent to how the variable debt index would be updated in storage (e.g. only updates with non-zero variable debt supply)

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
uint256 The reserve normalized variable debt
getReserveVariableDebtToken(asset: address) view

Returns the variableDebtToken address of a reserve.

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
address The address of the variableDebtToken
getReservesCount() view → 15

Returns the number of initialized reserves

開發者: It includes dropped reserves

回傳值

名稱 類型 描述
uint256 The count
getReservesList() view → [0x4200000000000000000000000000000000000006, 0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22, 0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca, 0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452, 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 0x04c0599ae5a44757c0af6f9ec3b93da8976c150a, 0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf, 0x2416092f143378750bb29b79ed961ab195cceea5, 0x6bb7a212910682dcfdbd5bcbb3e28fb4e8da10ee, 0xedfa23602d0ec14714057867a78d01e94176bea0, 0xecac9c5f704e954931349da37f60e39f515c11c1, 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42, 0x63706e401c06ac8513145b7687a14804d17f814b, 0x236aa50979d5f3de3bd1eeb40e81137f22ab794b, 0x660975730059246a68521a3e2fbd4740173100f5]

Returns the list of the underlying assets of all the initialized reserves

開發者: It does not include dropped reserves

回傳值

名稱 類型 描述
address[] The addresses of the underlying assets of the initialized reserves
getSupplyLogic() pure → 0x33654b16a4de97bce05d7dd06803bf1066f3123c

Gets the address of the external SupplyLogic

回傳值

名稱 類型 描述
address
getUserAccountData(user: address) view

Returns the user account data across all the reserves

參數

名稱 類型 描述
user address The address of the user

回傳值

名稱 類型 描述
totalCollateralBase uint256 totalCollateralBase The total collateral of the user in the base currency used by the price feed
totalDebtBase uint256 totalDebtBase The total debt of the user in the base currency used by the price feed
availableBorrowsBase uint256 availableBorrowsBase The borrowing power left of the user in the base currency used by the price feed
currentLiquidationThreshold uint256 currentLiquidationThreshold The liquidation threshold of the user
ltv uint256 ltv The loan to value of The user
healthFactor uint256 healthFactor The current health factor of the user
getUserConfiguration(user: address) view

Returns the configuration of the user across all the reserves

參數

名稱 類型 描述
user address The user address

回傳值

名稱 類型 描述
tuple The configuration of the user
getUserEMode(user: address) view

Returns the eMode the user is using

參數

名稱 類型 描述
user address The address of the user

回傳值

名稱 類型 描述
uint256 The eMode id
getVirtualUnderlyingBalance(asset: address) view

Returns the virtual underlying balance of the reserve

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve

回傳值

名稱 類型 描述
uint128 The reserve virtual underlying balance
isApprovedPositionManager(user: address, positionManager: address) view

Checks whether the given positionManager is approved to manage the user's positions.✨ AI

參數

名稱 類型 描述
user address Address of the account owning positions.✨ AI
positionManager address Address of the manager being checked for approval.✨ AI

回傳值

名稱 類型 描述
bool True if positionManager is approved to manage user's positions; false otherwise.✨ AI

寫入函式

approvePositionManager(positionManager: address, approve: bool) nonpayable

Approves or disapproves a position manager. This position manager will be able to call the `setUserUseReserveAsCollateralOnBehalfOf` and the `setUserEModeOnBehalfOf` function on behalf of the user.

參數

名稱 類型 描述
positionManager address The address of the position manager
approve bool True if the position manager should be approved, false otherwise
borrow(asset: address, amount: uint256, interestRateMode: uint256, referralCode: uint16, onBehalfOf: address) nonpayable

Calldata efficient wrapper of the borrow function, borrowing on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
interestRateMode uint256
referralCode uint16
onBehalfOf address
borrow(args: bytes32) nonpayable

Calldata efficient wrapper of the borrow function, borrowing on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the borrow function packed in one bytes32 88 bits 16 bits 8 bits 128 bits 16 bits | 0-padding | referralCode | shortenedInterestRateMode | shortenedAmount | assetId |
configureEModeCategory(id: uint8, category: tuple) nonpayable

Configures a new or alters an existing collateral configuration of an eMode.

開發者: In eMode, the protocol allows very high borrowing power to borrow assets of the same category. The category 0 is reserved as it's the default for volatile assets

參數

名稱 類型 描述
id uint8 The id of the category
category tuple
configureEModeCategoryBorrowableBitmap(id: uint8, borrowableBitmap: uint128) nonpayable

Replaces the current eMode borrowableBitmap.

參數

名稱 類型 描述
id uint8 The id of the category
borrowableBitmap uint128 The borrowableBitmap of the category
configureEModeCategoryCollateralBitmap(id: uint8, collateralBitmap: uint128) nonpayable

Replaces the current eMode collateralBitmap.

參數

名稱 類型 描述
id uint8 The id of the category
collateralBitmap uint128 The collateralBitmap of the category
configureEModeCategoryLtvzeroBitmap(id: uint8, ltvzeroBitmap: uint128) nonpayable

Replaces the current eMode ltvzeroBitmap.

參數

名稱 類型 描述
id uint8 The id of the category
ltvzeroBitmap uint128 The ltvzeroBitmap of the category
deposit(asset: address, amount: uint256, onBehalfOf: address, referralCode: uint16) nonpayable

Deposit a specified amount of an ERC20 asset into the pool for a recipient and optionally record a referral.✨ AI

開發者: Deprecated: maintained for compatibility purposes

參數

名稱 類型 描述
asset address Address of the ERC20 asset to deposit.✨ AI
amount uint256 Amount of the asset to deposit, expressed in the asset's smallest unit.✨ AI
onBehalfOf address Address that will receive the deposited funds and any resulting credit.✨ AI
referralCode uint16 Referral code used for integrations or rewards tracking; use 0 if none.✨ AI
dropReserve(asset: address) nonpayable

Drop a reserve

開發者: Does not reset eMode flags, which must be considered when reusing the same reserve id for a different reserve.

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve
eliminateReserveDeficit(asset: address, amount: uint256) nonpayable

It covers the deficit of a specified reserve by burning the equivalent aToken `amount` for assets

開發者: The deficit of a reserve can occur due to situations where borrowed assets are not repaid, leading to bad debt.

參數

名稱 類型 描述
asset address The address of the underlying asset to cover the deficit.
amount uint256 The amount to be covered, in aToken

回傳值

名稱 類型 描述
uint256 The amount of tokens burned
finalizeTransfer(asset: address, from: address, to: address, scaledAmount: uint256, scaledBalanceFromBefore: uint256) nonpayable

Validates and finalizes an aToken transfer

開發者: Only callable by the overlying aToken of the `asset`

參數

名稱 類型 描述
asset address The address of the underlying asset of the aToken
from address The user from which the aTokens are transferred
to address The user receiving the aTokens
scaledAmount uint256 The scaled amount being transferred/withdrawn
scaledBalanceFromBefore uint256 The aToken scaled balance of the `from` user before the transfer
flashLoan(receiverAddress: address, assets: address[], amounts: uint256[], interestRateModes: uint256[], onBehalfOf: address, params: bytes, referralCode: uint16) nonpayable

Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned.

開發者: IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept into consideration. For further details please visit https://docs.aave.com/developers/

參數

名稱 類型 描述
receiverAddress address The address of the contract receiving the funds, implementing IFlashLoanReceiver interface
assets address[] The addresses of the assets being flash-borrowed
amounts uint256[] The amounts of the assets being flash-borrowed
interestRateModes uint256[] Types of the debt to open if the flash loan is not returned: 0 -> Don't open any debt, just revert if funds can't be transferred from the receiver 1 -> Deprecated on v3.2.0 2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address
onBehalfOf address The address that will receive the debt in the case of using 2 on `modes`
params bytes Variadic packed params to pass to the receiver as extra information
referralCode uint16 The code used to register the integrator originating the operation, for potential rewards. 0 if the action is executed directly by the user, without any middle-man
flashLoanSimple(receiverAddress: address, asset: address, amount: uint256, params: bytes, referralCode: uint16) nonpayable

Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned.

開發者: IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept into consideration. For further details please visit https://docs.aave.com/developers/

參數

名稱 類型 描述
receiverAddress address The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface
asset address The address of the asset being flash-borrowed
amount uint256 The amount of the asset being flash-borrowed
params bytes Variadic packed params to pass to the receiver as extra information
referralCode uint16 The code used to register the integrator originating the operation, for potential rewards. 0 if the action is executed directly by the user, without any middle-man
initReserve(asset: address, aTokenAddress: address, variableDebtAddress: address) nonpayable

Initializes a reserve, activating it, assigning an aToken and debt tokens

開發者: Only callable by the PoolConfigurator contract

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve
aTokenAddress address The address of the aToken that will be assigned to the reserve
variableDebtAddress address The address of the VariableDebtToken that will be assigned to the reserve
initialize(provider: address) nonpayable

Initializes the Pool.

開發者: The passed PoolAddressesProvider is validated against the POOL.ADDRESSES_PROVIDER, to ensure the upgrade is done with correct intention.

參數

名稱 類型 描述
provider address The address of the PoolAddressesProvider
liquidationCall(collateralAsset: address, debtAsset: address, borrower: address, debtToCover: uint256, receiveAToken: bool) nonpayable

Calldata efficient wrapper of the liquidationCall function

開發者: the shortenedDebtToCover is cast to 256 bits at decode time, if type(uint128).max the value will be expanded to type(uint256).max

參數

名稱 類型 描述
collateralAsset address
debtAsset address
borrower address
debtToCover uint256
receiveAToken bool
liquidationCall(args1: bytes32, args2: bytes32) nonpayable

Calldata efficient wrapper of the liquidationCall function

開發者: the shortenedDebtToCover is cast to 256 bits at decode time, if type(uint128).max the value will be expanded to type(uint256).max

參數

名稱 類型 描述
args1 bytes32 part of the arguments for the liquidationCall function packed in one bytes32 64 bits 160 bits 16 bits 16 bits | 0-padding | user address | debtAssetId | collateralAssetId |
args2 bytes32 part of the arguments for the liquidationCall function packed in one bytes32 127 bits 1 bit 128 bits | 0-padding | receiveAToken | shortenedDebtToCover |
mintToTreasury(assets: address[]) nonpayable

Mints the assets accrued through the reserve factor to the treasury in the form of aTokens

參數

名稱 類型 描述
assets address[] The list of reserves for which the minting needs to be executed
multicall(data: bytes[]) nonpayable

Execute multiple encoded calls in a single transaction and return each call's raw result.✨ AI

開發者: Receives and executes a batch of function calls on this contract.

參數

名稱 類型 描述
data bytes[] Array of encoded calldata for each call to execute in sequence.✨ AI

回傳值

名稱 類型 描述
results bytes[] Array of raw return data for each executed call, ordered to match the input array.✨ AI
renouncePositionManagerRole(user: address) nonpayable

Renounces a position manager role for a given user.

參數

名稱 類型 描述
user address The address of the user
repay(args: bytes32) nonpayable

Calldata efficient wrapper of the repay function, repaying on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the repay function packed in one bytes32 104 bits 8 bits 128 bits 16 bits | 0-padding | shortenedInterestRateMode | shortenedAmount | assetId |

回傳值

名稱 類型 描述
uint256 The final amount repaid
repay(asset: address, amount: uint256, interestRateMode: uint256, onBehalfOf: address) nonpayable

Calldata efficient wrapper of the repay function, repaying on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
interestRateMode uint256
onBehalfOf address

回傳值

名稱 類型 描述
uint256 The final amount repaid
repayWithATokens(asset: address, amount: uint256, interestRateMode: uint256) nonpayable

Calldata efficient wrapper of the repayWithATokens function

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
interestRateMode uint256

回傳值

名稱 類型 描述
uint256 The final amount repaid
repayWithATokens(args: bytes32) nonpayable

Calldata efficient wrapper of the repayWithATokens function

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the repayWithATokens function packed in one bytes32 104 bits 8 bits 128 bits 16 bits | 0-padding | shortenedInterestRateMode | shortenedAmount | assetId |

回傳值

名稱 類型 描述
uint256 The final amount repaid
repayWithPermit(args: bytes32, r: bytes32, s: bytes32) nonpayable

Calldata efficient wrapper of the repayWithPermit function, repaying on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the repayWithPermit function packed in one bytes32 64 bits 8 bits 32 bits 8 bits 128 bits 16 bits | 0-padding | permitV | shortenedDeadline | shortenedInterestRateMode | shortenedAmount | assetId |
r bytes32 The R parameter of ERC712 permit sig
s bytes32 The S parameter of ERC712 permit sig

回傳值

名稱 類型 描述
uint256 The final amount repaid
repayWithPermit(asset: address, amount: uint256, interestRateMode: uint256, onBehalfOf: address, deadline: uint256, permitV: uint8, permitR: bytes32, permitS: bytes32) nonpayable

Calldata efficient wrapper of the repayWithPermit function, repaying on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
interestRateMode uint256
onBehalfOf address
deadline uint256
permitV uint8
permitR bytes32
permitS bytes32

回傳值

名稱 類型 描述
uint256 The final amount repaid
rescueTokens(token: address, to: address, amount: uint256) nonpayable

Rescue and transfer tokens locked in this contract

參數

名稱 類型 描述
token address The address of the token
to address The address of the recipient
amount uint256 The amount of token to transfer
resetIsolationModeTotalDebt(asset: address) nonpayable

Resets the isolation mode total debt of the given asset to zero

開發者: It requires the given asset has zero debt ceiling

參數

名稱 類型 描述
asset address The address of the underlying asset to reset the isolationModeTotalDebt
setConfiguration(asset: address, configuration: tuple) nonpayable

Sets the configuration bitmap of the reserve as a whole

開發者: Only callable by the PoolConfigurator contract

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve
configuration tuple The new configuration bitmap
setLiquidationGracePeriod(asset: address, until: uint40) nonpayable

Sets the liquidation grace period of the given asset

開發者: To enable a liquidation grace period, a timestamp in the future should be set, To disable a liquidation grace period, any timestamp in the past works, like 0

參數

名稱 類型 描述
asset address The address of the underlying asset to set the liquidationGracePeriod
until uint40 Timestamp when the liquidation grace period will end
setUserEMode(categoryId: uint8) nonpayable

Allows a user to use the protocol in eMode

參數

名稱 類型 描述
categoryId uint8 The id of the category
setUserEModeOnBehalfOf(categoryId: uint8, onBehalfOf: address) nonpayable

Sets the eMode category for the user on the specific reserve on behalf of the user.

參數

名稱 類型 描述
categoryId uint8 The id of the category
onBehalfOf address The address of the user
setUserUseReserveAsCollateral(args: bytes32) nonpayable

Calldata efficient wrapper of the setUserUseReserveAsCollateral function

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the setUserUseReserveAsCollateral function packed in one bytes32 239 bits 1 bit 16 bits | 0-padding | useAsCollateral | assetId |
setUserUseReserveAsCollateral(asset: address, useAsCollateral: bool) nonpayable

Calldata efficient wrapper of the setUserUseReserveAsCollateral function

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
useAsCollateral bool
setUserUseReserveAsCollateralOnBehalfOf(asset: address, useAsCollateral: bool, onBehalfOf: address) nonpayable

Sets the use as collateral flag for the user on the specific reserve on behalf of the user.

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve
useAsCollateral bool True if the user wants to use the reserve as collateral, false otherwise
onBehalfOf address The address of the user
supply(asset: address, amount: uint256, onBehalfOf: address, referralCode: uint16) nonpayable

Calldata efficient wrapper of the supply function on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
onBehalfOf address
referralCode uint16
supply(args: bytes32) nonpayable

Calldata efficient wrapper of the supply function on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the supply function packed in one bytes32 96 bits 16 bits 128 bits 16 bits | 0-padding | referralCode | shortenedAmount | assetId |
supplyWithPermit(asset: address, amount: uint256, onBehalfOf: address, referralCode: uint16, deadline: uint256, permitV: uint8, permitR: bytes32, permitS: bytes32) nonpayable

Calldata efficient wrapper of the supplyWithPermit function on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
onBehalfOf address
referralCode uint16
deadline uint256
permitV uint8
permitR bytes32
permitS bytes32
supplyWithPermit(args: bytes32, r: bytes32, s: bytes32) nonpayable

Calldata efficient wrapper of the supplyWithPermit function on behalf of the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the supply function packed in one bytes32 56 bits 8 bits 32 bits 16 bits 128 bits 16 bits | 0-padding | permitV | shortenedDeadline | referralCode | shortenedAmount | assetId |
r bytes32 The R parameter of ERC712 permit sig
s bytes32 The S parameter of ERC712 permit sig
syncIndexesState(asset: address) nonpayable

Accumulates interest to all indexes of the reserve

開發者: To be used when required by the configurator, for example when updating interest rates strategy data

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve
syncRatesState(asset: address) nonpayable

Updates interest rates on the reserve data

開發者: To be used when required by the configurator, for example when updating interest rates strategy data

參數

名稱 類型 描述
asset address The address of the underlying asset of the reserve
updateFlashloanPremium(flashLoanPremium: uint128) nonpayable

Updates flash loan premium. All this premium is collected by the protocol treasury.

開發者: Only callable by the PoolConfigurator contract

參數

名稱 類型 描述
flashLoanPremium uint128 The flash loan premium, expressed in bps
withdraw(asset: address, amount: uint256, to: address) nonpayable

Calldata efficient wrapper of the withdraw function, withdrawing to the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
asset address
amount uint256
to address

回傳值

名稱 類型 描述
uint256 The final amount withdrawn
withdraw(args: bytes32) nonpayable

Calldata efficient wrapper of the withdraw function, withdrawing to the caller

開發者: assetId is the index of the asset in the reservesList.

參數

名稱 類型 描述
args bytes32 Arguments for the withdraw function packed in one bytes32 112 bits 128 bits 16 bits | 0-padding | shortenedAmount | assetId |

回傳值

名稱 類型 描述
uint256 The final amount withdrawn

事件

Borrow(reserve: address, user: address, onBehalfOf: address, amount: uint256, interestRateMode: uint8, borrowRate: uint256, referralCode: uint16)
名稱 類型 已索引 描述
reserve address The address of the underlying asset being borrowed
user address The address of the user initiating the borrow(), receiving the funds on borrow() or just initiator of the transaction on flashLoan()
onBehalfOf address The address that will be getting the debt
amount uint256 The amount borrowed out
interestRateMode uint8 The rate mode: 2 for Variable, 1 is deprecated (changed on v3.2.0)
borrowRate uint256 The numeric rate at which the user has borrowed, expressed in ray
referralCode uint16 The referral code used
DeficitCovered(reserve: address, caller: address, amountCovered: uint256)
名稱 類型 已索引 描述
reserve address The address of the underlying asset of the reserve
caller address The caller that triggered the DeficitCovered event
amountCovered uint256 The amount of deficit covered
DeficitCreated(user: address, debtAsset: address, amountCreated: uint256)
名稱 類型 已索引 描述
user address The user address where the bad debt will be burned
debtAsset address The address of the underlying borrowed asset to be burned
amountCreated uint256 The amount of deficit created
FlashLoan(target: address, initiator: address, asset: address, amount: uint256, interestRateMode: uint8, premium: uint256, referralCode: uint16)
名稱 類型 已索引 描述
target address The address of the flash loan receiver contract
initiator address The address initiating the flash loan
asset address The address of the asset being flash borrowed
amount uint256 The amount flash borrowed
interestRateMode uint8 The flashloan mode: 0 for regular flashloan, 1 for Stable (Deprecated on v3.2.0), 2 for Variable
premium uint256 The fee flash borrowed
referralCode uint16 The referral code used
IsolationModeTotalDebtUpdated(asset: address, totalDebt: uint256)
名稱 類型 已索引 描述
asset address The address of the underlying asset of the reserve
totalDebt uint256 The total isolation mode debt for the reserve
LiquidationCall(collateralAsset: address, debtAsset: address, user: address, debtToCover: uint256, liquidatedCollateralAmount: uint256, liquidator: address, receiveAToken: bool)
名稱 類型 已索引 描述
collateralAsset address The address of the underlying asset used as collateral, to receive as result of the liquidation
debtAsset address The address of the underlying borrowed asset to be repaid with the liquidation
user address The address of the borrower getting liquidated
debtToCover uint256 The debt amount of borrowed `asset` the liquidator wants to cover
liquidatedCollateralAmount uint256 The amount of collateral received by the liquidator
liquidator address The address of the liquidator
receiveAToken bool True if the liquidators wants to receive the collateral aTokens, `false` if he wants to receive the underlying collateral asset directly
MintedToTreasury(reserve: address, amountMinted: uint256)
名稱 類型 已索引 描述
reserve address The address of the reserve
amountMinted uint256 The amount minted to the treasury
PositionManagerApproved(user: address, positionManager: address)
名稱 類型 已索引 描述
user address The user address
positionManager address The address of the position manager
PositionManagerRevoked(user: address, positionManager: address)
名稱 類型 已索引 描述
user address The user address
positionManager address The address of the position manager
Repay(reserve: address, user: address, repayer: address, amount: uint256, useATokens: bool)
名稱 類型 已索引 描述
reserve address The address of the underlying asset of the reserve
user address The beneficiary of the repayment, getting his debt reduced
repayer address The address of the user initiating the repay(), providing the funds
amount uint256 The amount repaid
useATokens bool True if the repayment is done using aTokens, `false` if done with underlying asset directly
ReserveDataUpdated(reserve: address, liquidityRate: uint256, stableBorrowRate: uint256, variableBorrowRate: uint256, liquidityIndex: uint256, variableBorrowIndex: uint256)
名稱 類型 已索引 描述
reserve address The address of the underlying asset of the reserve
liquidityRate uint256 The next liquidity rate
stableBorrowRate uint256 The next stable borrow rate @note deprecated on v3.2.0
variableBorrowRate uint256 The next variable borrow rate
liquidityIndex uint256 The next liquidity index
variableBorrowIndex uint256 The next variable borrow index
ReserveUsedAsCollateralDisabled(reserve: address, user: address)
名稱 類型 已索引 描述
reserve address The address of the underlying asset of the reserve
user address The address of the user enabling the usage as collateral
ReserveUsedAsCollateralEnabled(reserve: address, user: address)
名稱 類型 已索引 描述
reserve address The address of the underlying asset of the reserve
user address The address of the user enabling the usage as collateral
Supply(reserve: address, user: address, onBehalfOf: address, amount: uint256, referralCode: uint16)
名稱 類型 已索引 描述
reserve address The address of the underlying asset of the reserve
user address The address initiating the supply
onBehalfOf address The beneficiary of the supply, receiving the aTokens
amount uint256 The amount supplied
referralCode uint16 The referral code used
UserEModeSet(user: address, categoryId: uint8)
名稱 類型 已索引 描述
user address The address of the user
categoryId uint8 The category id
Withdraw(reserve: address, user: address, to: address, amount: uint256)
名稱 類型 已索引 描述
reserve address The address of the underlying asset being withdrawn
user address The address initiating the withdrawal, owner of aTokens
to address The address that will receive the underlying
amount uint256 The amount to be withdrawn