L2PoolInstance
Optimism0x66185e53343336d4faea5317d1fcca103dd4088d
Solidity v0.8.27+commit.40a35a09
Admin & Risk
Who can change the rules?
No admin risk controls detected from the verified ABI.
Overview
Read Functions
Block #152,042,885 · just nowReturns the PoolAddressesProvider connected to this contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the PoolAddressesProvider |
Returns the total fee on flash loans.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint128 | The total fee on flashloans |
Returns the part of the flashloan fees sent to protocol
Returns
| Name | Type | Description |
|---|---|---|
| — | uint128 | The flashloan fee sent to the protocol treasury |
Returns the maximum number of reserves supported to be listed in this Pool
Returns
| Name | Type | Description |
|---|---|---|
| — | uint16 | The maximum number of reserves supported |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns the ReserveInterestRateStrategy connected to all the reserves
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the ReserveInterestRateStrategy contract |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Gets the address of the external BorrowLogic
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns the configuration of the reserve
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | tuple | The configuration of the reserve |
Returns the borrowableBitmap of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint128 | The borrowableBitmap of the category |
Returns the collateralBitmap of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint128 | The collateralBitmap of the category |
Returns the collateral config of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| res | tuple | The ltv,lt,lb of the category |
Returns the data of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| — | tuple | The configuration data of the category |
Returns the label of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The label of the category |
Returns the ltvzero of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint128 | The ltvzeroBitmap of the category |
Gets the address of the external FlashLoanLogic
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns the isolated flag of an eMode category
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the eMode category is isolated |
Returns the liquidation grace period of the given asset
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint40 | Timestamp when the liquidation grace period will end |
Gets the address of the external LiquidationLogic
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Gets the address of the external PoolLogic
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns the aToken address of a reserve.
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the aToken |
Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint16 | The id of the reserve as stored in the DataTypes.ReserveData struct |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the reserve associated with id |
Returns the state and configuration of the reserve
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| res | tuple | The state and configuration data of the reserve |
Returns the current deficit of a reserve.
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current deficit of the reserve |
Returns the normalized income of the reserve
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The reserve's normalized income |
Returns the normalized variable debt per unit of asset
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The reserve normalized variable debt |
Returns the variableDebtToken address of a reserve.
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the variableDebtToken |
Returns the number of initialized reserves
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The count |
Returns the list of the underlying assets of all the initialized reserves
Returns
| Name | Type | Description |
|---|---|---|
| — | address[] | The addresses of the underlying assets of the initialized reserves |
Gets the address of the external SupplyLogic
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns the user account data across all the reserves
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | The address of the user |
Returns
| Name | Type | Description |
|---|---|---|
| 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 |
Returns the configuration of the user across all the reserves
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | The user address |
Returns
| Name | Type | Description |
|---|---|---|
| — | tuple | The configuration of the user |
Returns the eMode the user is using
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | The address of the user |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The eMode id |
Returns the virtual underlying balance of the reserve
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint128 | The reserve virtual underlying balance |
Returns true if the `positionManager` address is approved to use the position manager role on behalf of the user.
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | The address of the user |
| positionManager | address | The address of the position manager |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the user is approved to use the position manager, false otherwise |
Write Functions
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.
Parameters
| Name | Type | Description |
|---|---|---|
| positionManager | address | The address of the position manager |
| approve | bool | True if the position manager should be approved, false otherwise |
Calldata efficient wrapper of the borrow function, borrowing on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| interestRateMode | uint256 | |
| referralCode | uint16 | |
| onBehalfOf | address |
Calldata efficient wrapper of the borrow function, borrowing on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| 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 | |
Configures a new or alters an existing collateral configuration of an eMode.
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
| category | tuple |
Replaces the current eMode borrowableBitmap.
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
| borrowableBitmap | uint128 | The borrowableBitmap of the category |
Replaces the current eMode collateralBitmap.
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
| collateralBitmap | uint128 | The collateralBitmap of the category |
Sets the isolated flag of an eMode category.
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
| isolated | bool | True if the eMode should be isolated |
Replaces the current eMode ltvzeroBitmap.
Parameters
| Name | Type | Description |
|---|---|---|
| id | uint8 | The id of the category |
| ltvzeroBitmap | uint128 | The ltvzeroBitmap of the category |
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| onBehalfOf | address | |
| referralCode | uint16 |
It covers the deficit of a specified reserve by burning the equivalent aToken `amount` for assets
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset to cover the deficit. |
| amount | uint256 | The amount to be covered, in aToken |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The amount of tokens burned |
Validates and finalizes an aToken transfer
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned.
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned.
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Initializes a reserve, activating it, assigning an aToken and debt tokens
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Initializes the Pool.
Parameters
| Name | Type | Description |
|---|---|---|
| provider | address | The address of the PoolAddressesProvider |
Calldata efficient wrapper of the liquidationCall function
Parameters
| Name | Type | Description |
|---|---|---|
| collateralAsset | address | |
| debtAsset | address | |
| borrower | address | |
| debtToCover | uint256 | |
| receiveAToken | bool |
Calldata efficient wrapper of the liquidationCall function
Parameters
| Name | Type | Description |
|---|---|---|
| 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 | |
Mints the assets accrued through the reserve factor to the treasury in the form of aTokens
Parameters
| Name | Type | Description |
|---|---|---|
| assets | address[] | The list of reserves for which the minting needs to be executed |
Parameters
| Name | Type | Description |
|---|---|---|
| data | bytes[] |
Returns
| Name | Type | Description |
|---|---|---|
| results | bytes[] |
Renounces a position manager role for a given user.
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | The address of the user |
Calldata efficient wrapper of the repay function, repaying on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| args | bytes32 | Arguments for the repay function packed in one bytes32 104 bits 8 bits 128 bits 16 bits | 0-padding | shortenedInterestRateMode | shortenedAmount | assetId | |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount repaid |
Calldata efficient wrapper of the repay function, repaying on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| interestRateMode | uint256 | |
| onBehalfOf | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount repaid |
Calldata efficient wrapper of the repayWithATokens function
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| interestRateMode | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount repaid |
Calldata efficient wrapper of the repayWithATokens function
Parameters
| Name | Type | Description |
|---|---|---|
| args | bytes32 | Arguments for the repayWithATokens function packed in one bytes32 104 bits 8 bits 128 bits 16 bits | 0-padding | shortenedInterestRateMode | shortenedAmount | assetId | |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount repaid |
Calldata efficient wrapper of the repayWithPermit function, repaying on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount repaid |
Calldata efficient wrapper of the repayWithPermit function, repaying on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| interestRateMode | uint256 | |
| onBehalfOf | address | |
| deadline | uint256 | |
| permitV | uint8 | |
| permitR | bytes32 | |
| permitS | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount repaid |
Rescue and transfer tokens locked in this contract
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the token |
| to | address | The address of the recipient |
| amount | uint256 | The amount of token to transfer |
Sets the configuration bitmap of the reserve as a whole
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
| configuration | tuple | The new configuration bitmap |
Sets the liquidation grace period of the given asset
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset to set the liquidationGracePeriod |
| until | uint40 | Timestamp when the liquidation grace period will end |
Allows a user to use the protocol in eMode
Parameters
| Name | Type | Description |
|---|---|---|
| categoryId | uint8 | The id of the category |
Sets the eMode category for the user on the specific reserve on behalf of the user.
Parameters
| Name | Type | Description |
|---|---|---|
| categoryId | uint8 | The id of the category |
| onBehalfOf | address | The address of the user |
Calldata efficient wrapper of the setUserUseReserveAsCollateral function
Parameters
| Name | Type | Description |
|---|---|---|
| args | bytes32 | Arguments for the setUserUseReserveAsCollateral function packed in one bytes32 239 bits 1 bit 16 bits | 0-padding | useAsCollateral | assetId | |
Calldata efficient wrapper of the setUserUseReserveAsCollateral function
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| useAsCollateral | bool |
Sets the use as collateral flag for the user on the specific reserve on behalf of the user.
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Calldata efficient wrapper of the supply function on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| onBehalfOf | address | |
| referralCode | uint16 |
Calldata efficient wrapper of the supply function on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| args | bytes32 | Arguments for the supply function packed in one bytes32 96 bits 16 bits 128 bits 16 bits | 0-padding | referralCode | shortenedAmount | assetId | |
Calldata efficient wrapper of the supplyWithPermit function on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| onBehalfOf | address | |
| referralCode | uint16 | |
| deadline | uint256 | |
| permitV | uint8 | |
| permitR | bytes32 | |
| permitS | bytes32 |
Calldata efficient wrapper of the supplyWithPermit function on behalf of the caller
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Accumulates interest to all indexes of the reserve
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Updates interest rates on the reserve data
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the underlying asset of the reserve |
Updates flash loan premium. All this premium is collected by the protocol treasury.
Parameters
| Name | Type | Description |
|---|---|---|
| flashLoanPremium | uint128 | The flash loan premium, expressed in bps |
Calldata efficient wrapper of the withdraw function, withdrawing to the caller
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | |
| amount | uint256 | |
| to | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount withdrawn |
Calldata efficient wrapper of the withdraw function, withdrawing to the caller
Parameters
| Name | Type | Description |
|---|---|---|
| args | bytes32 | Arguments for the withdraw function packed in one bytes32 112 bits 128 bits 16 bits | 0-padding | shortenedAmount | assetId | |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The final amount withdrawn |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| reserve | address | ✓ | The address of the reserve |
| amountMinted | uint256 | The amount minted to the treasury |
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | The user address |
| positionManager | address | ✓ | The address of the position manager |
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | The user address |
| positionManager | address | ✓ | The address of the position manager |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| reserve | address | ✓ | The address of the underlying asset of the reserve |
| user | address | ✓ | The address of the user enabling the usage as collateral |
| Name | Type | Indexed | Description |
|---|---|---|---|
| reserve | address | ✓ | The address of the underlying asset of the reserve |
| user | address | ✓ | The address of the user enabling the usage as collateral |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | The address of the user |
| categoryId | uint8 | The category id |
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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 |