18802 lines
713 KiB
JSON
18802 lines
713 KiB
JSON
{
|
|
"id": "424a1de94a8ff1a29050bb7469e27de0",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol": {
|
|
"content": "// SPDX-License-Identifier: AGPL-3.0\r\npragma solidity ^0.8.0;\r\n\r\nimport {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol';\r\nimport {IPool} from '../../interfaces/IPool.sol';\r\n\r\n/**\r\n * @title IFlashLoanSimpleReceiver\r\n * @author Aave\r\n * @notice Defines the basic interface of a flashloan-receiver contract.\r\n * @dev Implement this interface to develop a flashloan-compatible flashLoanReceiver contract\r\n */\r\ninterface IFlashLoanSimpleReceiver {\r\n /**\r\n * @notice Executes an operation after receiving the flash-borrowed asset\r\n * @dev Ensure that the contract can return the debt + premium, e.g., has\r\n * enough funds to repay and has approved the Pool to pull the total amount\r\n * @param asset The address of the flash-borrowed asset\r\n * @param amount The amount of the flash-borrowed asset\r\n * @param premium The fee of the flash-borrowed asset\r\n * @param initiator The address of the flashloan initiator\r\n * @param params The byte-encoded params passed when initiating the flashloan\r\n * @return True if the execution of the operation succeeds, false otherwise\r\n */\r\n function executeOperation(\r\n address asset,\r\n uint256 amount,\r\n uint256 premium,\r\n address initiator,\r\n bytes calldata params\r\n ) external returns (bool);\r\n\r\n function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\r\n\r\n function POOL() external view returns (IPool);\r\n}\r\n"
|
|
},
|
|
"contracts/interfaces/IPool.sol": {
|
|
"content": "// SPDX-License-Identifier: AGPL-3.0\r\npragma solidity ^0.8.0;\r\n\r\nimport {IPoolAddressesProvider} from './IPoolAddressesProvider.sol';\r\nimport {DataTypes} from '../protocol/libraries/types/DataTypes.sol';\r\n\r\n/**\r\n * @title IPool\r\n * @author Aave\r\n * @notice Defines the basic interface for an Aave Pool.\r\n */\r\ninterface IPool {\r\n /**\r\n * @dev Emitted on mintUnbacked()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The address initiating the supply\r\n * @param onBehalfOf The beneficiary of the supplied assets, receiving the aTokens\r\n * @param amount The amount of supplied assets\r\n * @param referralCode The referral code used\r\n */\r\n event MintUnbacked(\r\n address indexed reserve,\r\n address user,\r\n address indexed onBehalfOf,\r\n uint256 amount,\r\n uint16 indexed referralCode\r\n );\r\n\r\n /**\r\n * @dev Emitted on backUnbacked()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param backer The address paying for the backing\r\n * @param amount The amount added as backing\r\n * @param fee The amount paid in fees\r\n */\r\n event BackUnbacked(address indexed reserve, address indexed backer, uint256 amount, uint256 fee);\r\n\r\n /**\r\n * @dev Emitted on supply()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The address initiating the supply\r\n * @param onBehalfOf The beneficiary of the supply, receiving the aTokens\r\n * @param amount The amount supplied\r\n * @param referralCode The referral code used\r\n */\r\n event Supply(\r\n address indexed reserve,\r\n address user,\r\n address indexed onBehalfOf,\r\n uint256 amount,\r\n uint16 indexed referralCode\r\n );\r\n\r\n /**\r\n * @dev Emitted on withdraw()\r\n * @param reserve The address of the underlying asset being withdrawn\r\n * @param user The address initiating the withdrawal, owner of aTokens\r\n * @param to The address that will receive the underlying\r\n * @param amount The amount to be withdrawn\r\n */\r\n event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount);\r\n\r\n /**\r\n * @dev Emitted on borrow() and flashLoan() when debt needs to be opened\r\n * @param reserve The address of the underlying asset being borrowed\r\n * @param user The address of the user initiating the borrow(), receiving the funds on borrow() or just\r\n * initiator of the transaction on flashLoan()\r\n * @param onBehalfOf The address that will be getting the debt\r\n * @param amount The amount borrowed out\r\n * @param interestRateMode The rate mode: 1 for Stable, 2 for Variable\r\n * @param borrowRate The numeric rate at which the user has borrowed, expressed in ray\r\n * @param referralCode The referral code used\r\n */\r\n event Borrow(\r\n address indexed reserve,\r\n address user,\r\n address indexed onBehalfOf,\r\n uint256 amount,\r\n DataTypes.InterestRateMode interestRateMode,\r\n uint256 borrowRate,\r\n uint16 indexed referralCode\r\n );\r\n\r\n /**\r\n * @dev Emitted on repay()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The beneficiary of the repayment, getting his debt reduced\r\n * @param repayer The address of the user initiating the repay(), providing the funds\r\n * @param amount The amount repaid\r\n * @param useATokens True if the repayment is done using aTokens, `false` if done with underlying asset directly\r\n */\r\n event Repay(\r\n address indexed reserve,\r\n address indexed user,\r\n address indexed repayer,\r\n uint256 amount,\r\n bool useATokens\r\n );\r\n\r\n /**\r\n * @dev Emitted on swapBorrowRateMode()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The address of the user swapping his rate mode\r\n * @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable\r\n */\r\n event SwapBorrowRateMode(\r\n address indexed reserve,\r\n address indexed user,\r\n DataTypes.InterestRateMode interestRateMode\r\n );\r\n\r\n /**\r\n * @dev Emitted on borrow(), repay() and liquidationCall() when using isolated assets\r\n * @param asset The address of the underlying asset of the reserve\r\n * @param totalDebt The total isolation mode debt for the reserve\r\n */\r\n event IsolationModeTotalDebtUpdated(address indexed asset, uint256 totalDebt);\r\n\r\n /**\r\n * @dev Emitted when the user selects a certain asset category for eMode\r\n * @param user The address of the user\r\n * @param categoryId The category id\r\n */\r\n event UserEModeSet(address indexed user, uint8 categoryId);\r\n\r\n /**\r\n * @dev Emitted on setUserUseReserveAsCollateral()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The address of the user enabling the usage as collateral\r\n */\r\n event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user);\r\n\r\n /**\r\n * @dev Emitted on setUserUseReserveAsCollateral()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The address of the user enabling the usage as collateral\r\n */\r\n event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user);\r\n\r\n /**\r\n * @dev Emitted on rebalanceStableBorrowRate()\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param user The address of the user for which the rebalance has been executed\r\n */\r\n event RebalanceStableBorrowRate(address indexed reserve, address indexed user);\r\n\r\n /**\r\n * @dev Emitted on flashLoan()\r\n * @param target The address of the flash loan receiver contract\r\n * @param initiator The address initiating the flash loan\r\n * @param asset The address of the asset being flash borrowed\r\n * @param amount The amount flash borrowed\r\n * @param interestRateMode The flashloan mode: 0 for regular flashloan, 1 for Stable debt, 2 for Variable debt\r\n * @param premium The fee flash borrowed\r\n * @param referralCode The referral code used\r\n */\r\n event FlashLoan(\r\n address indexed target,\r\n address initiator,\r\n address indexed asset,\r\n uint256 amount,\r\n DataTypes.InterestRateMode interestRateMode,\r\n uint256 premium,\r\n uint16 indexed referralCode\r\n );\r\n\r\n /**\r\n * @dev Emitted when a borrower is liquidated.\r\n * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation\r\n * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation\r\n * @param user The address of the borrower getting liquidated\r\n * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover\r\n * @param liquidatedCollateralAmount The amount of collateral received by the liquidator\r\n * @param liquidator The address of the liquidator\r\n * @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants\r\n * to receive the underlying collateral asset directly\r\n */\r\n event LiquidationCall(\r\n address indexed collateralAsset,\r\n address indexed debtAsset,\r\n address indexed user,\r\n uint256 debtToCover,\r\n uint256 liquidatedCollateralAmount,\r\n address liquidator,\r\n bool receiveAToken\r\n );\r\n\r\n /**\r\n * @dev Emitted when the state of a reserve is updated.\r\n * @param reserve The address of the underlying asset of the reserve\r\n * @param liquidityRate The next liquidity rate\r\n * @param stableBorrowRate The next stable borrow rate\r\n * @param variableBorrowRate The next variable borrow rate\r\n * @param liquidityIndex The next liquidity index\r\n * @param variableBorrowIndex The next variable borrow index\r\n */\r\n event ReserveDataUpdated(\r\n address indexed reserve,\r\n uint256 liquidityRate,\r\n uint256 stableBorrowRate,\r\n uint256 variableBorrowRate,\r\n uint256 liquidityIndex,\r\n uint256 variableBorrowIndex\r\n );\r\n\r\n /**\r\n * @dev Emitted when the protocol treasury receives minted aTokens from the accrued interest.\r\n * @param reserve The address of the reserve\r\n * @param amountMinted The amount minted to the treasury\r\n */\r\n event MintedToTreasury(address indexed reserve, uint256 amountMinted);\r\n\r\n /**\r\n * @notice Mints an `amount` of aTokens to the `onBehalfOf`\r\n * @param asset The address of the underlying asset to mint\r\n * @param amount The amount to mint\r\n * @param onBehalfOf The address that will receive the aTokens\r\n * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n */\r\n function mintUnbacked(\r\n address asset,\r\n uint256 amount,\r\n address onBehalfOf,\r\n uint16 referralCode\r\n ) external;\r\n\r\n /**\r\n * @notice Back the current unbacked underlying with `amount` and pay `fee`.\r\n * @param asset The address of the underlying asset to back\r\n * @param amount The amount to back\r\n * @param fee The amount paid in fees\r\n * @return The backed amount\r\n */\r\n function backUnbacked(address asset, uint256 amount, uint256 fee) external returns (uint256);\r\n\r\n /**\r\n * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\r\n * - E.g. User supplies 100 USDC and gets in return 100 aUSDC\r\n * @param asset The address of the underlying asset to supply\r\n * @param amount The amount to be supplied\r\n * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\r\n * wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\r\n * is a different wallet\r\n * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n */\r\n function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\r\n\r\n /**\r\n * @notice Supply with transfer approval of asset to be supplied done via permit function\r\n * see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\r\n * @param asset The address of the underlying asset to supply\r\n * @param amount The amount to be supplied\r\n * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\r\n * wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\r\n * is a different wallet\r\n * @param deadline The deadline timestamp that the permit is valid\r\n * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n * @param permitV The V parameter of ERC712 permit sig\r\n * @param permitR The R parameter of ERC712 permit sig\r\n * @param permitS The S parameter of ERC712 permit sig\r\n */\r\n function supplyWithPermit(\r\n address asset,\r\n uint256 amount,\r\n address onBehalfOf,\r\n uint16 referralCode,\r\n uint256 deadline,\r\n uint8 permitV,\r\n bytes32 permitR,\r\n bytes32 permitS\r\n ) external;\r\n\r\n /**\r\n * @notice Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned\r\n * E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC\r\n * @param asset The address of the underlying asset to withdraw\r\n * @param amount The underlying amount to be withdrawn\r\n * - Send the value type(uint256).max in order to withdraw the whole aToken balance\r\n * @param to The address that will receive the underlying, same as msg.sender if the user\r\n * wants to receive it on his own wallet, or a different address if the beneficiary is a\r\n * different wallet\r\n * @return The final amount withdrawn\r\n */\r\n function withdraw(address asset, uint256 amount, address to) external returns (uint256);\r\n\r\n /**\r\n * @notice Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower\r\n * already supplied enough collateral, or he was given enough allowance by a credit delegator on the\r\n * corresponding debt token (StableDebtToken or VariableDebtToken)\r\n * - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet\r\n * and 100 stable/variable debt tokens, depending on the `interestRateMode`\r\n * @param asset The address of the underlying asset to borrow\r\n * @param amount The amount to be borrowed\r\n * @param interestRateMode The interest rate mode at which the user wants to borrow: 1 for Stable, 2 for Variable\r\n * @param referralCode The code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n * @param onBehalfOf The address of the user who will receive the debt. Should be the address of the borrower itself\r\n * calling the function if he wants to borrow against his own collateral, or the address of the credit delegator\r\n * if he has been given credit delegation allowance\r\n */\r\n function borrow(\r\n address asset,\r\n uint256 amount,\r\n uint256 interestRateMode,\r\n uint16 referralCode,\r\n address onBehalfOf\r\n ) external;\r\n\r\n /**\r\n * @notice Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned\r\n * - E.g. User repays 100 USDC, burning 100 variable/stable debt tokens of the `onBehalfOf` address\r\n * @param asset The address of the borrowed underlying asset previously borrowed\r\n * @param amount The amount to repay\r\n * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\r\n * @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\r\n * @param onBehalfOf The address of the user who will get his debt reduced/removed. Should be the address of the\r\n * user calling the function if he wants to reduce/remove his own debt, or the address of any other\r\n * other borrower whose debt should be removed\r\n * @return The final amount repaid\r\n */\r\n function repay(\r\n address asset,\r\n uint256 amount,\r\n uint256 interestRateMode,\r\n address onBehalfOf\r\n ) external returns (uint256);\r\n\r\n /**\r\n * @notice Repay with transfer approval of asset to be repaid done via permit function\r\n * see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\r\n * @param asset The address of the borrowed underlying asset previously borrowed\r\n * @param amount The amount to repay\r\n * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\r\n * @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\r\n * @param onBehalfOf Address of the user who will get his debt reduced/removed. Should be the address of the\r\n * user calling the function if he wants to reduce/remove his own debt, or the address of any other\r\n * other borrower whose debt should be removed\r\n * @param deadline The deadline timestamp that the permit is valid\r\n * @param permitV The V parameter of ERC712 permit sig\r\n * @param permitR The R parameter of ERC712 permit sig\r\n * @param permitS The S parameter of ERC712 permit sig\r\n * @return The final amount repaid\r\n */\r\n function repayWithPermit(\r\n address asset,\r\n uint256 amount,\r\n uint256 interestRateMode,\r\n address onBehalfOf,\r\n uint256 deadline,\r\n uint8 permitV,\r\n bytes32 permitR,\r\n bytes32 permitS\r\n ) external returns (uint256);\r\n\r\n /**\r\n * @notice Repays a borrowed `amount` on a specific reserve using the reserve aTokens, burning the\r\n * equivalent debt tokens\r\n * - E.g. User repays 100 USDC using 100 aUSDC, burning 100 variable/stable debt tokens\r\n * @dev Passing uint256.max as amount will clean up any residual aToken dust balance, if the user aToken\r\n * balance is not enough to cover the whole debt\r\n * @param asset The address of the borrowed underlying asset previously borrowed\r\n * @param amount The amount to repay\r\n * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\r\n * @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\r\n * @return The final amount repaid\r\n */\r\n function repayWithATokens(\r\n address asset,\r\n uint256 amount,\r\n uint256 interestRateMode\r\n ) external returns (uint256);\r\n\r\n /**\r\n * @notice Allows a borrower to swap his debt between stable and variable mode, or vice versa\r\n * @param asset The address of the underlying asset borrowed\r\n * @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable\r\n */\r\n function swapBorrowRateMode(address asset, uint256 interestRateMode) external;\r\n\r\n /**\r\n * @notice Rebalances the stable interest rate of a user to the current stable rate defined on the reserve.\r\n * - Users can be rebalanced if the following conditions are satisfied:\r\n * 1. Usage ratio is above 95%\r\n * 2. the current supply APY is below REBALANCE_UP_THRESHOLD * maxVariableBorrowRate, which means that too\r\n * much has been borrowed at a stable rate and suppliers are not earning enough\r\n * @param asset The address of the underlying asset borrowed\r\n * @param user The address of the user to be rebalanced\r\n */\r\n function rebalanceStableBorrowRate(address asset, address user) external;\r\n\r\n /**\r\n * @notice Allows suppliers to enable/disable a specific supplied asset as collateral\r\n * @param asset The address of the underlying asset supplied\r\n * @param useAsCollateral True if the user wants to use the supply as collateral, false otherwise\r\n */\r\n function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) external;\r\n\r\n /**\r\n * @notice Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1\r\n * - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives\r\n * a proportionally amount of the `collateralAsset` plus a bonus to cover market risk\r\n * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation\r\n * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation\r\n * @param user The address of the borrower getting liquidated\r\n * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover\r\n * @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants\r\n * to receive the underlying collateral asset directly\r\n */\r\n function liquidationCall(\r\n address collateralAsset,\r\n address debtAsset,\r\n address user,\r\n uint256 debtToCover,\r\n bool receiveAToken\r\n ) external;\r\n\r\n /**\r\n * @notice Allows smartcontracts to access the liquidity of the pool within one transaction,\r\n * as long as the amount taken plus a fee is returned.\r\n * @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept\r\n * into consideration. For further details please visit https://docs.aave.com/developers/\r\n * @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanReceiver interface\r\n * @param assets The addresses of the assets being flash-borrowed\r\n * @param amounts The amounts of the assets being flash-borrowed\r\n * @param interestRateModes Types of the debt to open if the flash loan is not returned:\r\n * 0 -> Don't open any debt, just revert if funds can't be transferred from the receiver\r\n * 1 -> Open debt at stable rate for the value of the amount flash-borrowed to the `onBehalfOf` address\r\n * 2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address\r\n * @param onBehalfOf The address that will receive the debt in the case of using on `modes` 1 or 2\r\n * @param params Variadic packed params to pass to the receiver as extra information\r\n * @param referralCode The code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n */\r\n function flashLoan(\r\n address receiverAddress,\r\n address[] calldata assets,\r\n uint256[] calldata amounts,\r\n uint256[] calldata interestRateModes,\r\n address onBehalfOf,\r\n bytes calldata params,\r\n uint16 referralCode\r\n ) external;\r\n\r\n /**\r\n * @notice Allows smartcontracts to access the liquidity of the pool within one transaction,\r\n * as long as the amount taken plus a fee is returned.\r\n * @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept\r\n * into consideration. For further details please visit https://docs.aave.com/developers/\r\n * @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface\r\n * @param asset The address of the asset being flash-borrowed\r\n * @param amount The amount of the asset being flash-borrowed\r\n * @param params Variadic packed params to pass to the receiver as extra information\r\n * @param referralCode The code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n */\r\n function flashLoanSimple(\r\n address receiverAddress,\r\n address asset,\r\n uint256 amount,\r\n bytes calldata params,\r\n uint16 referralCode\r\n ) external;\r\n\r\n /**\r\n * @notice Returns the user account data across all the reserves\r\n * @param user The address of the user\r\n * @return totalCollateralBase The total collateral of the user in the base currency used by the price feed\r\n * @return totalDebtBase The total debt of the user in the base currency used by the price feed\r\n * @return availableBorrowsBase The borrowing power left of the user in the base currency used by the price feed\r\n * @return currentLiquidationThreshold The liquidation threshold of the user\r\n * @return ltv The loan to value of The user\r\n * @return healthFactor The current health factor of the user\r\n */\r\n function getUserAccountData(\r\n address user\r\n )\r\n external\r\n view\r\n returns (\r\n uint256 totalCollateralBase,\r\n uint256 totalDebtBase,\r\n uint256 availableBorrowsBase,\r\n uint256 currentLiquidationThreshold,\r\n uint256 ltv,\r\n uint256 healthFactor\r\n );\r\n\r\n /**\r\n * @notice Initializes a reserve, activating it, assigning an aToken and debt tokens and an\r\n * interest rate strategy\r\n * @dev Only callable by the PoolConfigurator contract\r\n * @param asset The address of the underlying asset of the reserve\r\n * @param aTokenAddress The address of the aToken that will be assigned to the reserve\r\n * @param stableDebtAddress The address of the StableDebtToken that will be assigned to the reserve\r\n * @param variableDebtAddress The address of the VariableDebtToken that will be assigned to the reserve\r\n * @param interestRateStrategyAddress The address of the interest rate strategy contract\r\n */\r\n function initReserve(\r\n address asset,\r\n address aTokenAddress,\r\n address stableDebtAddress,\r\n address variableDebtAddress,\r\n address interestRateStrategyAddress\r\n ) external;\r\n\r\n /**\r\n * @notice Drop a reserve\r\n * @dev Only callable by the PoolConfigurator contract\r\n * @param asset The address of the underlying asset of the reserve\r\n */\r\n function dropReserve(address asset) external;\r\n\r\n /**\r\n * @notice Updates the address of the interest rate strategy contract\r\n * @dev Only callable by the PoolConfigurator contract\r\n * @param asset The address of the underlying asset of the reserve\r\n * @param rateStrategyAddress The address of the interest rate strategy contract\r\n */\r\n function setReserveInterestRateStrategyAddress(\r\n address asset,\r\n address rateStrategyAddress\r\n ) external;\r\n\r\n /**\r\n * @notice Sets the configuration bitmap of the reserve as a whole\r\n * @dev Only callable by the PoolConfigurator contract\r\n * @param asset The address of the underlying asset of the reserve\r\n * @param configuration The new configuration bitmap\r\n */\r\n function setConfiguration(\r\n address asset,\r\n DataTypes.ReserveConfigurationMap calldata configuration\r\n ) external;\r\n\r\n /**\r\n * @notice Returns the configuration of the reserve\r\n * @param asset The address of the underlying asset of the reserve\r\n * @return The configuration of the reserve\r\n */\r\n function getConfiguration(\r\n address asset\r\n ) external view returns (DataTypes.ReserveConfigurationMap memory);\r\n\r\n /**\r\n * @notice Returns the configuration of the user across all the reserves\r\n * @param user The user address\r\n * @return The configuration of the user\r\n */\r\n function getUserConfiguration(\r\n address user\r\n ) external view returns (DataTypes.UserConfigurationMap memory);\r\n\r\n /**\r\n * @notice Returns the normalized income of the reserve\r\n * @param asset The address of the underlying asset of the reserve\r\n * @return The reserve's normalized income\r\n */\r\n function getReserveNormalizedIncome(address asset) external view returns (uint256);\r\n\r\n /**\r\n * @notice Returns the normalized variable debt per unit of asset\r\n * @dev WARNING: This function is intended to be used primarily by the protocol itself to get a\r\n * \"dynamic\" variable index based on time, current stored index and virtual rate at the current\r\n * moment (approx. a borrower would get if opening a position). This means that is always used in\r\n * combination with variable debt supply/balances.\r\n * If using this function externally, consider that is possible to have an increasing normalized\r\n * variable debt that is not equivalent to how the variable debt index would be updated in storage\r\n * (e.g. only updates with non-zero variable debt supply)\r\n * @param asset The address of the underlying asset of the reserve\r\n * @return The reserve normalized variable debt\r\n */\r\n function getReserveNormalizedVariableDebt(address asset) external view returns (uint256);\r\n\r\n /**\r\n * @notice Returns the state and configuration of the reserve\r\n * @param asset The address of the underlying asset of the reserve\r\n * @return The state and configuration data of the reserve\r\n */\r\n function getReserveData(address asset) external view returns (DataTypes.ReserveData memory);\r\n\r\n /**\r\n * @notice Validates and finalizes an aToken transfer\r\n * @dev Only callable by the overlying aToken of the `asset`\r\n * @param asset The address of the underlying asset of the aToken\r\n * @param from The user from which the aTokens are transferred\r\n * @param to The user receiving the aTokens\r\n * @param amount The amount being transferred/withdrawn\r\n * @param balanceFromBefore The aToken balance of the `from` user before the transfer\r\n * @param balanceToBefore The aToken balance of the `to` user before the transfer\r\n */\r\n function finalizeTransfer(\r\n address asset,\r\n address from,\r\n address to,\r\n uint256 amount,\r\n uint256 balanceFromBefore,\r\n uint256 balanceToBefore\r\n ) external;\r\n\r\n /**\r\n * @notice Returns the list of the underlying assets of all the initialized reserves\r\n * @dev It does not include dropped reserves\r\n * @return The addresses of the underlying assets of the initialized reserves\r\n */\r\n function getReservesList() external view returns (address[] memory);\r\n\r\n /**\r\n * @notice Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct\r\n * @param id The id of the reserve as stored in the DataTypes.ReserveData struct\r\n * @return The address of the reserve associated with id\r\n */\r\n function getReserveAddressById(uint16 id) external view returns (address);\r\n\r\n /**\r\n * @notice Returns the PoolAddressesProvider connected to this contract\r\n * @return The address of the PoolAddressesProvider\r\n */\r\n function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\r\n\r\n /**\r\n * @notice Updates the protocol fee on the bridging\r\n * @param bridgeProtocolFee The part of the premium sent to the protocol treasury\r\n */\r\n function updateBridgeProtocolFee(uint256 bridgeProtocolFee) external;\r\n\r\n /**\r\n * @notice Updates flash loan premiums. Flash loan premium consists of two parts:\r\n * - A part is sent to aToken holders as extra, one time accumulated interest\r\n * - A part is collected by the protocol treasury\r\n * @dev The total premium is calculated on the total borrowed amount\r\n * @dev The premium to protocol is calculated on the total premium, being a percentage of `flashLoanPremiumTotal`\r\n * @dev Only callable by the PoolConfigurator contract\r\n * @param flashLoanPremiumTotal The total premium, expressed in bps\r\n * @param flashLoanPremiumToProtocol The part of the premium sent to the protocol treasury, expressed in bps\r\n */\r\n function updateFlashloanPremiums(\r\n uint128 flashLoanPremiumTotal,\r\n uint128 flashLoanPremiumToProtocol\r\n ) external;\r\n\r\n /**\r\n * @notice Configures a new category for the eMode.\r\n * @dev In eMode, the protocol allows very high borrowing power to borrow assets of the same category.\r\n * The category 0 is reserved as it's the default for volatile assets\r\n * @param id The id of the category\r\n * @param config The configuration of the category\r\n */\r\n function configureEModeCategory(uint8 id, DataTypes.EModeCategory memory config) external;\r\n\r\n /**\r\n * @notice Returns the data of an eMode category\r\n * @param id The id of the category\r\n * @return The configuration data of the category\r\n */\r\n function getEModeCategoryData(uint8 id) external view returns (DataTypes.EModeCategory memory);\r\n\r\n /**\r\n * @notice Allows a user to use the protocol in eMode\r\n * @param categoryId The id of the category\r\n */\r\n function setUserEMode(uint8 categoryId) external;\r\n\r\n /**\r\n * @notice Returns the eMode the user is using\r\n * @param user The address of the user\r\n * @return The eMode id\r\n */\r\n function getUserEMode(address user) external view returns (uint256);\r\n\r\n /**\r\n * @notice Resets the isolation mode total debt of the given asset to zero\r\n * @dev It requires the given asset has zero debt ceiling\r\n * @param asset The address of the underlying asset to reset the isolationModeTotalDebt\r\n */\r\n function resetIsolationModeTotalDebt(address asset) external;\r\n\r\n /**\r\n * @notice Returns the percentage of available liquidity that can be borrowed at once at stable rate\r\n * @return The percentage of available liquidity to borrow, expressed in bps\r\n */\r\n function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() external view returns (uint256);\r\n\r\n /**\r\n * @notice Returns the total fee on flash loans\r\n * @return The total fee on flashloans\r\n */\r\n function FLASHLOAN_PREMIUM_TOTAL() external view returns (uint128);\r\n\r\n /**\r\n * @notice Returns the part of the bridge fees sent to protocol\r\n * @return The bridge fee sent to the protocol treasury\r\n */\r\n function BRIDGE_PROTOCOL_FEE() external view returns (uint256);\r\n\r\n /**\r\n * @notice Returns the part of the flashloan fees sent to protocol\r\n * @return The flashloan fee sent to the protocol treasury\r\n */\r\n function FLASHLOAN_PREMIUM_TO_PROTOCOL() external view returns (uint128);\r\n\r\n /**\r\n * @notice Returns the maximum number of reserves supported to be listed in this Pool\r\n * @return The maximum number of reserves supported\r\n */\r\n function MAX_NUMBER_RESERVES() external view returns (uint16);\r\n\r\n /**\r\n * @notice Mints the assets accrued through the reserve factor to the treasury in the form of aTokens\r\n * @param assets The list of reserves for which the minting needs to be executed\r\n */\r\n function mintToTreasury(address[] calldata assets) external;\r\n\r\n /**\r\n * @notice Rescue and transfer tokens locked in this contract\r\n * @param token The address of the token\r\n * @param to The address of the recipient\r\n * @param amount The amount of token to transfer\r\n */\r\n function rescueTokens(address token, address to, uint256 amount) external;\r\n\r\n /**\r\n * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\r\n * - E.g. User supplies 100 USDC and gets in return 100 aUSDC\r\n * @dev Deprecated: Use the `supply` function instead\r\n * @param asset The address of the underlying asset to supply\r\n * @param amount The amount to be supplied\r\n * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\r\n * wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\r\n * is a different wallet\r\n * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\r\n * 0 if the action is executed directly by the user, without any middle-man\r\n */\r\n function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\r\n}\r\n"
|
|
},
|
|
"contracts/interfaces/IPoolAddressesProvider.sol": {
|
|
"content": "// SPDX-License-Identifier: AGPL-3.0\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @title IPoolAddressesProvider\r\n * @author Aave\r\n * @notice Defines the basic interface for a Pool Addresses Provider.\r\n */\r\ninterface IPoolAddressesProvider {\r\n /**\r\n * @dev Emitted when the market identifier is updated.\r\n * @param oldMarketId The old id of the market\r\n * @param newMarketId The new id of the market\r\n */\r\n event MarketIdSet(string indexed oldMarketId, string indexed newMarketId);\r\n\r\n /**\r\n * @dev Emitted when the pool is updated.\r\n * @param oldAddress The old address of the Pool\r\n * @param newAddress The new address of the Pool\r\n */\r\n event PoolUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the pool configurator is updated.\r\n * @param oldAddress The old address of the PoolConfigurator\r\n * @param newAddress The new address of the PoolConfigurator\r\n */\r\n event PoolConfiguratorUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the price oracle is updated.\r\n * @param oldAddress The old address of the PriceOracle\r\n * @param newAddress The new address of the PriceOracle\r\n */\r\n event PriceOracleUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the ACL manager is updated.\r\n * @param oldAddress The old address of the ACLManager\r\n * @param newAddress The new address of the ACLManager\r\n */\r\n event ACLManagerUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the ACL admin is updated.\r\n * @param oldAddress The old address of the ACLAdmin\r\n * @param newAddress The new address of the ACLAdmin\r\n */\r\n event ACLAdminUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the price oracle sentinel is updated.\r\n * @param oldAddress The old address of the PriceOracleSentinel\r\n * @param newAddress The new address of the PriceOracleSentinel\r\n */\r\n event PriceOracleSentinelUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the pool data provider is updated.\r\n * @param oldAddress The old address of the PoolDataProvider\r\n * @param newAddress The new address of the PoolDataProvider\r\n */\r\n event PoolDataProviderUpdated(address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when a new proxy is created.\r\n * @param id The identifier of the proxy\r\n * @param proxyAddress The address of the created proxy contract\r\n * @param implementationAddress The address of the implementation contract\r\n */\r\n event ProxyCreated(\r\n bytes32 indexed id,\r\n address indexed proxyAddress,\r\n address indexed implementationAddress\r\n );\r\n\r\n /**\r\n * @dev Emitted when a new non-proxied contract address is registered.\r\n * @param id The identifier of the contract\r\n * @param oldAddress The address of the old contract\r\n * @param newAddress The address of the new contract\r\n */\r\n event AddressSet(bytes32 indexed id, address indexed oldAddress, address indexed newAddress);\r\n\r\n /**\r\n * @dev Emitted when the implementation of the proxy registered with id is updated\r\n * @param id The identifier of the contract\r\n * @param proxyAddress The address of the proxy contract\r\n * @param oldImplementationAddress The address of the old implementation contract\r\n * @param newImplementationAddress The address of the new implementation contract\r\n */\r\n event AddressSetAsProxy(\r\n bytes32 indexed id,\r\n address indexed proxyAddress,\r\n address oldImplementationAddress,\r\n address indexed newImplementationAddress\r\n );\r\n\r\n /**\r\n * @notice Returns the id of the Aave market to which this contract points to.\r\n * @return The market id\r\n */\r\n function getMarketId() external view returns (string memory);\r\n\r\n /**\r\n * @notice Associates an id with a specific PoolAddressesProvider.\r\n * @dev This can be used to create an onchain registry of PoolAddressesProviders to\r\n * identify and validate multiple Aave markets.\r\n * @param newMarketId The market id\r\n */\r\n function setMarketId(string calldata newMarketId) external;\r\n\r\n /**\r\n * @notice Returns an address by its identifier.\r\n * @dev The returned address might be an EOA or a contract, potentially proxied\r\n * @dev It returns ZERO if there is no registered address with the given id\r\n * @param id The id\r\n * @return The address of the registered for the specified id\r\n */\r\n function getAddress(bytes32 id) external view returns (address);\r\n\r\n /**\r\n * @notice General function to update the implementation of a proxy registered with\r\n * certain `id`. If there is no proxy registered, it will instantiate one and\r\n * set as implementation the `newImplementationAddress`.\r\n * @dev IMPORTANT Use this function carefully, only for ids that don't have an explicit\r\n * setter function, in order to avoid unexpected consequences\r\n * @param id The id\r\n * @param newImplementationAddress The address of the new implementation\r\n */\r\n function setAddressAsProxy(bytes32 id, address newImplementationAddress) external;\r\n\r\n /**\r\n * @notice Sets an address for an id replacing the address saved in the addresses map.\r\n * @dev IMPORTANT Use this function carefully, as it will do a hard replacement\r\n * @param id The id\r\n * @param newAddress The address to set\r\n */\r\n function setAddress(bytes32 id, address newAddress) external;\r\n\r\n /**\r\n * @notice Returns the address of the Pool proxy.\r\n * @return The Pool proxy address\r\n */\r\n function getPool() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the implementation of the Pool, or creates a proxy\r\n * setting the new `pool` implementation when the function is called for the first time.\r\n * @param newPoolImpl The new Pool implementation\r\n */\r\n function setPoolImpl(address newPoolImpl) external;\r\n\r\n /**\r\n * @notice Returns the address of the PoolConfigurator proxy.\r\n * @return The PoolConfigurator proxy address\r\n */\r\n function getPoolConfigurator() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the implementation of the PoolConfigurator, or creates a proxy\r\n * setting the new `PoolConfigurator` implementation when the function is called for the first time.\r\n * @param newPoolConfiguratorImpl The new PoolConfigurator implementation\r\n */\r\n function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external;\r\n\r\n /**\r\n * @notice Returns the address of the price oracle.\r\n * @return The address of the PriceOracle\r\n */\r\n function getPriceOracle() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the address of the price oracle.\r\n * @param newPriceOracle The address of the new PriceOracle\r\n */\r\n function setPriceOracle(address newPriceOracle) external;\r\n\r\n /**\r\n * @notice Returns the address of the ACL manager.\r\n * @return The address of the ACLManager\r\n */\r\n function getACLManager() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the address of the ACL manager.\r\n * @param newAclManager The address of the new ACLManager\r\n */\r\n function setACLManager(address newAclManager) external;\r\n\r\n /**\r\n * @notice Returns the address of the ACL admin.\r\n * @return The address of the ACL admin\r\n */\r\n function getACLAdmin() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the address of the ACL admin.\r\n * @param newAclAdmin The address of the new ACL admin\r\n */\r\n function setACLAdmin(address newAclAdmin) external;\r\n\r\n /**\r\n * @notice Returns the address of the price oracle sentinel.\r\n * @return The address of the PriceOracleSentinel\r\n */\r\n function getPriceOracleSentinel() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the address of the price oracle sentinel.\r\n * @param newPriceOracleSentinel The address of the new PriceOracleSentinel\r\n */\r\n function setPriceOracleSentinel(address newPriceOracleSentinel) external;\r\n\r\n /**\r\n * @notice Returns the address of the data provider.\r\n * @return The address of the DataProvider\r\n */\r\n function getPoolDataProvider() external view returns (address);\r\n\r\n /**\r\n * @notice Updates the address of the data provider.\r\n * @param newDataProvider The address of the new DataProvider\r\n */\r\n function setPoolDataProvider(address newDataProvider) external;\r\n}\r\n"
|
|
},
|
|
"contracts/protocol/libraries/types/DataTypes.sol": {
|
|
"content": "// SPDX-License-Identifier: BUSL-1.1\r\npragma solidity ^0.8.0;\r\n\r\nlibrary DataTypes {\r\n struct ReserveData {\r\n //stores the reserve configuration\r\n ReserveConfigurationMap configuration;\r\n //the liquidity index. Expressed in ray\r\n uint128 liquidityIndex;\r\n //the current supply rate. Expressed in ray\r\n uint128 currentLiquidityRate;\r\n //variable borrow index. Expressed in ray\r\n uint128 variableBorrowIndex;\r\n //the current variable borrow rate. Expressed in ray\r\n uint128 currentVariableBorrowRate;\r\n //the current stable borrow rate. Expressed in ray\r\n uint128 currentStableBorrowRate;\r\n //timestamp of last update\r\n uint40 lastUpdateTimestamp;\r\n //the id of the reserve. Represents the position in the list of the active reserves\r\n uint16 id;\r\n //aToken address\r\n address aTokenAddress;\r\n //stableDebtToken address\r\n address stableDebtTokenAddress;\r\n //variableDebtToken address\r\n address variableDebtTokenAddress;\r\n //address of the interest rate strategy\r\n address interestRateStrategyAddress;\r\n //the current treasury balance, scaled\r\n uint128 accruedToTreasury;\r\n //the outstanding unbacked aTokens minted through the bridging feature\r\n uint128 unbacked;\r\n //the outstanding debt borrowed against this asset in isolation mode\r\n uint128 isolationModeTotalDebt;\r\n }\r\n\r\n struct ReserveConfigurationMap {\r\n //bit 0-15: LTV\r\n //bit 16-31: Liq. threshold\r\n //bit 32-47: Liq. bonus\r\n //bit 48-55: Decimals\r\n //bit 56: reserve is active\r\n //bit 57: reserve is frozen\r\n //bit 58: borrowing is enabled\r\n //bit 59: stable rate borrowing enabled\r\n //bit 60: asset is paused\r\n //bit 61: borrowing in isolation mode is enabled\r\n //bit 62: siloed borrowing enabled\r\n //bit 63: flashloaning enabled\r\n //bit 64-79: reserve factor\r\n //bit 80-115 borrow cap in whole tokens, borrowCap == 0 => no cap\r\n //bit 116-151 supply cap in whole tokens, supplyCap == 0 => no cap\r\n //bit 152-167 liquidation protocol fee\r\n //bit 168-175 eMode category\r\n //bit 176-211 unbacked mint cap in whole tokens, unbackedMintCap == 0 => minting disabled\r\n //bit 212-251 debt ceiling for isolation mode with (ReserveConfiguration::DEBT_CEILING_DECIMALS) decimals\r\n //bit 252-255 unused\r\n\r\n uint256 data;\r\n }\r\n\r\n struct UserConfigurationMap {\r\n /**\r\n * @dev Bitmap of the users collaterals and borrows. It is divided in pairs of bits, one pair per asset.\r\n * The first bit indicates if an asset is used as collateral by the user, the second whether an\r\n * asset is borrowed by the user.\r\n */\r\n uint256 data;\r\n }\r\n\r\n struct EModeCategory {\r\n // each eMode category has a custom ltv and liquidation threshold\r\n uint16 ltv;\r\n uint16 liquidationThreshold;\r\n uint16 liquidationBonus;\r\n // each eMode category may or may not have a custom oracle to override the individual assets price oracles\r\n address priceSource;\r\n string label;\r\n }\r\n\r\n enum InterestRateMode {NONE, STABLE, VARIABLE}\r\n\r\n struct ReserveCache {\r\n uint256 currScaledVariableDebt;\r\n uint256 nextScaledVariableDebt;\r\n uint256 currPrincipalStableDebt;\r\n uint256 currAvgStableBorrowRate;\r\n uint256 currTotalStableDebt;\r\n uint256 nextAvgStableBorrowRate;\r\n uint256 nextTotalStableDebt;\r\n uint256 currLiquidityIndex;\r\n uint256 nextLiquidityIndex;\r\n uint256 currVariableBorrowIndex;\r\n uint256 nextVariableBorrowIndex;\r\n uint256 currLiquidityRate;\r\n uint256 currVariableBorrowRate;\r\n uint256 reserveFactor;\r\n ReserveConfigurationMap reserveConfiguration;\r\n address aTokenAddress;\r\n address stableDebtTokenAddress;\r\n address variableDebtTokenAddress;\r\n uint40 reserveLastUpdateTimestamp;\r\n uint40 stableDebtLastUpdateTimestamp;\r\n }\r\n\r\n struct ExecuteLiquidationCallParams {\r\n uint256 reservesCount;\r\n uint256 debtToCover;\r\n address collateralAsset;\r\n address debtAsset;\r\n address user;\r\n bool receiveAToken;\r\n address priceOracle;\r\n uint8 userEModeCategory;\r\n address priceOracleSentinel;\r\n }\r\n\r\n struct ExecuteSupplyParams {\r\n address asset;\r\n uint256 amount;\r\n address onBehalfOf;\r\n uint16 referralCode;\r\n }\r\n\r\n struct ExecuteBorrowParams {\r\n address asset;\r\n address user;\r\n address onBehalfOf;\r\n uint256 amount;\r\n InterestRateMode interestRateMode;\r\n uint16 referralCode;\r\n bool releaseUnderlying;\r\n uint256 maxStableRateBorrowSizePercent;\r\n uint256 reservesCount;\r\n address oracle;\r\n uint8 userEModeCategory;\r\n address priceOracleSentinel;\r\n }\r\n\r\n struct ExecuteRepayParams {\r\n address asset;\r\n uint256 amount;\r\n InterestRateMode interestRateMode;\r\n address onBehalfOf;\r\n bool useATokens;\r\n }\r\n\r\n struct ExecuteWithdrawParams {\r\n address asset;\r\n uint256 amount;\r\n address to;\r\n uint256 reservesCount;\r\n address oracle;\r\n uint8 userEModeCategory;\r\n }\r\n\r\n struct ExecuteSetUserEModeParams {\r\n uint256 reservesCount;\r\n address oracle;\r\n uint8 categoryId;\r\n }\r\n\r\n struct FinalizeTransferParams {\r\n address asset;\r\n address from;\r\n address to;\r\n uint256 amount;\r\n uint256 balanceFromBefore;\r\n uint256 balanceToBefore;\r\n uint256 reservesCount;\r\n address oracle;\r\n uint8 fromEModeCategory;\r\n }\r\n\r\n struct FlashloanParams {\r\n address receiverAddress;\r\n address[] assets;\r\n uint256[] amounts;\r\n uint256[] interestRateModes;\r\n address onBehalfOf;\r\n bytes params;\r\n uint16 referralCode;\r\n uint256 flashLoanPremiumToProtocol;\r\n uint256 flashLoanPremiumTotal;\r\n uint256 maxStableRateBorrowSizePercent;\r\n uint256 reservesCount;\r\n address addressesProvider;\r\n uint8 userEModeCategory;\r\n bool isAuthorizedFlashBorrower;\r\n }\r\n\r\n struct FlashloanSimpleParams {\r\n address receiverAddress;\r\n address asset;\r\n uint256 amount;\r\n bytes params;\r\n uint16 referralCode;\r\n uint256 flashLoanPremiumToProtocol;\r\n uint256 flashLoanPremiumTotal;\r\n }\r\n\r\n struct FlashLoanRepaymentParams {\r\n uint256 amount;\r\n uint256 totalPremium;\r\n uint256 flashLoanPremiumToProtocol;\r\n address asset;\r\n address receiverAddress;\r\n uint16 referralCode;\r\n }\r\n\r\n struct CalculateUserAccountDataParams {\r\n UserConfigurationMap userConfig;\r\n uint256 reservesCount;\r\n address user;\r\n address oracle;\r\n uint8 userEModeCategory;\r\n }\r\n\r\n struct ValidateBorrowParams {\r\n ReserveCache reserveCache;\r\n UserConfigurationMap userConfig;\r\n address asset;\r\n address userAddress;\r\n uint256 amount;\r\n InterestRateMode interestRateMode;\r\n uint256 maxStableLoanPercent;\r\n uint256 reservesCount;\r\n address oracle;\r\n uint8 userEModeCategory;\r\n address priceOracleSentinel;\r\n bool isolationModeActive;\r\n address isolationModeCollateralAddress;\r\n uint256 isolationModeDebtCeiling;\r\n }\r\n\r\n struct ValidateLiquidationCallParams {\r\n ReserveCache debtReserveCache;\r\n uint256 totalDebt;\r\n uint256 healthFactor;\r\n address priceOracleSentinel;\r\n }\r\n\r\n struct CalculateInterestRatesParams {\r\n uint256 unbacked;\r\n uint256 liquidityAdded;\r\n uint256 liquidityTaken;\r\n uint256 totalStableDebt;\r\n uint256 totalVariableDebt;\r\n uint256 averageStableBorrowRate;\r\n uint256 reserveFactor;\r\n address reserve;\r\n address aToken;\r\n }\r\n\r\n struct InitReserveParams {\r\n address asset;\r\n address aTokenAddress;\r\n address stableDebtAddress;\r\n address variableDebtAddress;\r\n address interestRateStrategyAddress;\r\n uint16 reservesCount;\r\n uint16 maxNumberReserves;\r\n }\r\n}\r\n"
|
|
}
|
|
},
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"": [
|
|
"ast"
|
|
],
|
|
"*": [
|
|
"abi",
|
|
"metadata",
|
|
"devdoc",
|
|
"userdoc",
|
|
"storageLayout",
|
|
"evm.legacyAssembly",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers",
|
|
"evm.gasEstimates",
|
|
"evm.assembly"
|
|
]
|
|
}
|
|
},
|
|
"remappings": []
|
|
}
|
|
},
|
|
"output": {
|
|
"contracts": {
|
|
"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol": {
|
|
"IFlashLoanSimpleReceiver": {
|
|
"abi": [
|
|
{
|
|
"inputs": [],
|
|
"name": "ADDRESSES_PROVIDER",
|
|
"outputs": [
|
|
{
|
|
"internalType": "contract IPoolAddressesProvider",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "POOL",
|
|
"outputs": [
|
|
{
|
|
"internalType": "contract IPool",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "premium",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "initiator",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "params",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "executeOperation",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"author": "Aave",
|
|
"details": "Implement this interface to develop a flashloan-compatible flashLoanReceiver contract",
|
|
"kind": "dev",
|
|
"methods": {
|
|
"executeOperation(address,uint256,uint256,address,bytes)": {
|
|
"details": "Ensure that the contract can return the debt + premium, e.g., has enough funds to repay and has approved the Pool to pull the total amount",
|
|
"params": {
|
|
"amount": "The amount of the flash-borrowed asset",
|
|
"asset": "The address of the flash-borrowed asset",
|
|
"initiator": "The address of the flashloan initiator",
|
|
"params": "The byte-encoded params passed when initiating the flashloan",
|
|
"premium": "The fee of the flash-borrowed asset"
|
|
},
|
|
"returns": {
|
|
"_0": "True if the execution of the operation succeeds, false otherwise"
|
|
}
|
|
}
|
|
},
|
|
"title": "IFlashLoanSimpleReceiver",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"ADDRESSES_PROVIDER()": "0542975c",
|
|
"POOL()": "7535d246",
|
|
"executeOperation(address,uint256,uint256,address,bytes)": "1b11d0ff"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ADDRESSES_PROVIDER\",\"outputs\":[{\"internalType\":\"contract IPoolAddressesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOL\",\"outputs\":[{\"internalType\":\"contract IPool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"premium\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"}],\"name\":\"executeOperation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Aave\",\"details\":\"Implement this interface to develop a flashloan-compatible flashLoanReceiver contract\",\"kind\":\"dev\",\"methods\":{\"executeOperation(address,uint256,uint256,address,bytes)\":{\"details\":\"Ensure that the contract can return the debt + premium, e.g., has enough funds to repay and has approved the Pool to pull the total amount\",\"params\":{\"amount\":\"The amount of the flash-borrowed asset\",\"asset\":\"The address of the flash-borrowed asset\",\"initiator\":\"The address of the flashloan initiator\",\"params\":\"The byte-encoded params passed when initiating the flashloan\",\"premium\":\"The fee of the flash-borrowed asset\"},\"returns\":{\"_0\":\"True if the execution of the operation succeeds, false otherwise\"}}},\"title\":\"IFlashLoanSimpleReceiver\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"executeOperation(address,uint256,uint256,address,bytes)\":{\"notice\":\"Executes an operation after receiving the flash-borrowed asset\"}},\"notice\":\"Defines the basic interface of a flashloan-receiver contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\":\"IFlashLoanSimpleReceiver\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\":{\"keccak256\":\"0xa708476930b78c899c6921e5954688a230ccb6a0b868bcdb84ba9aab5665db2a\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://315f474494ab74142aacc680cb1c6320900ab55d85321657736a1f91a6ec43a3\",\"dweb:/ipfs/QmSPvCzv43Fwj35h1VLzjdZWJMVfEmmsH6giC2AJHaMeiW\"]},\"contracts/interfaces/IPool.sol\":{\"keccak256\":\"0x91fc8cafd9f6fda5046620662d57c5ab5f724375be08903114576216a4980629\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://87c472da79a61750b3cd010532de6092c6be145591f27ca5436850e9985cf3ae\",\"dweb:/ipfs/QmSVysBKZUepgucokF4Av7i3PJQSj2RSpXKKfYaAcYkR6d\"]},\"contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0xf37b9fdb389d45783acfc16664c06f28af953d4a409d1059bdf10b917d41fd4a\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://bb3c42a324ea0adf0095b1e3ea05df7edd70816cfd472e79a29a4fd5b196fa7b\",\"dweb:/ipfs/QmcSYcH5NZc96EHqAp7sY5Gxvo1229gLnihyBfqme5EdGj\"]},\"contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0xf484b9e835d41d75d2ad32ea241e1cc859f278df49a8c4ceb2c0299036e577be\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://eafa12cff7ec168fd0e868ffee3931cc128c57bab003efbdb30e67e73d477fe3\",\"dweb:/ipfs/QmU6nessQ7F1JLRbeYzZzgkh4E5mRdVh3YqLNN5nxGuUvb\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"executeOperation(address,uint256,uint256,address,bytes)": {
|
|
"notice": "Executes an operation after receiving the flash-borrowed asset"
|
|
}
|
|
},
|
|
"notice": "Defines the basic interface of a flashloan-receiver contract.",
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"contracts/interfaces/IPool.sol": {
|
|
"IPool": {
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "backer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "fee",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "BackUnbacked",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "enum DataTypes.InterestRateMode",
|
|
"name": "interestRateMode",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "borrowRate",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "Borrow",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "target",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "initiator",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "enum DataTypes.InterestRateMode",
|
|
"name": "interestRateMode",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "premium",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "FlashLoan",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "totalDebt",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "IsolationModeTotalDebtUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "collateralAsset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "debtAsset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "debtToCover",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "liquidatedCollateralAmount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "liquidator",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "bool",
|
|
"name": "receiveAToken",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "LiquidationCall",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "MintUnbacked",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amountMinted",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "MintedToTreasury",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "RebalanceStableBorrowRate",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "repayer",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "bool",
|
|
"name": "useATokens",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "Repay",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "liquidityRate",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "stableBorrowRate",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "variableBorrowRate",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "liquidityIndex",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "variableBorrowIndex",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "ReserveDataUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "ReserveUsedAsCollateralDisabled",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "ReserveUsedAsCollateralEnabled",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "Supply",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "enum DataTypes.InterestRateMode",
|
|
"name": "interestRateMode",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "SwapBorrowRateMode",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint8",
|
|
"name": "categoryId",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "UserEModeSet",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "reserve",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Withdraw",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "ADDRESSES_PROVIDER",
|
|
"outputs": [
|
|
{
|
|
"internalType": "contract IPoolAddressesProvider",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "BRIDGE_PROTOCOL_FEE",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "FLASHLOAN_PREMIUM_TOTAL",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "",
|
|
"type": "uint128"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "FLASHLOAN_PREMIUM_TO_PROTOCOL",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "",
|
|
"type": "uint128"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "MAX_NUMBER_RESERVES",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "MAX_STABLE_RATE_BORROW_SIZE_PERCENT",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "fee",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "backUnbacked",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "interestRateMode",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "borrow",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "id",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "ltv",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "liquidationThreshold",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "liquidationBonus",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "priceSource",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "label",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.EModeCategory",
|
|
"name": "config",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "configureEModeCategory",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "deposit",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "dropReserve",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "balanceFromBefore",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "balanceToBefore",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "finalizeTransfer",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "receiverAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "assets",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "amounts",
|
|
"type": "uint256[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "interestRateModes",
|
|
"type": "uint256[]"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "params",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "flashLoan",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "receiverAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "params",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "flashLoanSimple",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getConfiguration",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "data",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.ReserveConfigurationMap",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "id",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "getEModeCategoryData",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "ltv",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "liquidationThreshold",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "liquidationBonus",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "priceSource",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "label",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.EModeCategory",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "id",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "getReserveAddressById",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getReserveData",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "data",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.ReserveConfigurationMap",
|
|
"name": "configuration",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "liquidityIndex",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "currentLiquidityRate",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "variableBorrowIndex",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "currentVariableBorrowRate",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "currentStableBorrowRate",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint40",
|
|
"name": "lastUpdateTimestamp",
|
|
"type": "uint40"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "id",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "aTokenAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "stableDebtTokenAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "variableDebtTokenAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "interestRateStrategyAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "accruedToTreasury",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "unbacked",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "isolationModeTotalDebt",
|
|
"type": "uint128"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.ReserveData",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getReserveNormalizedIncome",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getReserveNormalizedVariableDebt",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getReservesList",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getUserAccountData",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "totalCollateralBase",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "totalDebtBase",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "availableBorrowsBase",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "currentLiquidationThreshold",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "ltv",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "healthFactor",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getUserConfiguration",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "data",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.UserConfigurationMap",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getUserEMode",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "aTokenAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "stableDebtAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "variableDebtAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "interestRateStrategyAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "initReserve",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "collateralAsset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "debtAsset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "debtToCover",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "receiveAToken",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "liquidationCall",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "assets",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"name": "mintToTreasury",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "mintUnbacked",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "rebalanceStableBorrowRate",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "interestRateMode",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "repay",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "interestRateMode",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "repayWithATokens",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "interestRateMode",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "permitV",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "permitR",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "permitS",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "repayWithPermit",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "rescueTokens",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "resetIsolationModeTotalDebt",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "data",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct DataTypes.ReserveConfigurationMap",
|
|
"name": "configuration",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"name": "setConfiguration",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "rateStrategyAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setReserveInterestRateStrategyAddress",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "categoryId",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "setUserEMode",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "useAsCollateral",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "setUserUseReserveAsCollateral",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
}
|
|
],
|
|
"name": "supply",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "onBehalfOf",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint16",
|
|
"name": "referralCode",
|
|
"type": "uint16"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "permitV",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "permitR",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "permitS",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "supplyWithPermit",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "interestRateMode",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swapBorrowRateMode",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "bridgeProtocolFee",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "updateBridgeProtocolFee",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "flashLoanPremiumTotal",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"type": "uint128"
|
|
}
|
|
],
|
|
"name": "updateFlashloanPremiums",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "withdraw",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"author": "Aave",
|
|
"events": {
|
|
"BackUnbacked(address,address,uint256,uint256)": {
|
|
"details": "Emitted on backUnbacked()",
|
|
"params": {
|
|
"amount": "The amount added as backing",
|
|
"backer": "The address paying for the backing",
|
|
"fee": "The amount paid in fees",
|
|
"reserve": "The address of the underlying asset of the reserve"
|
|
}
|
|
},
|
|
"Borrow(address,address,address,uint256,uint8,uint256,uint16)": {
|
|
"details": "Emitted on borrow() and flashLoan() when debt needs to be opened",
|
|
"params": {
|
|
"amount": "The amount borrowed out",
|
|
"borrowRate": "The numeric rate at which the user has borrowed, expressed in ray",
|
|
"interestRateMode": "The rate mode: 1 for Stable, 2 for Variable",
|
|
"onBehalfOf": "The address that will be getting the debt",
|
|
"referralCode": "The referral code used",
|
|
"reserve": "The address of the underlying asset being borrowed",
|
|
"user": "The address of the user initiating the borrow(), receiving the funds on borrow() or just initiator of the transaction on flashLoan()"
|
|
}
|
|
},
|
|
"FlashLoan(address,address,address,uint256,uint8,uint256,uint16)": {
|
|
"details": "Emitted on flashLoan()",
|
|
"params": {
|
|
"amount": "The amount flash borrowed",
|
|
"asset": "The address of the asset being flash borrowed",
|
|
"initiator": "The address initiating the flash loan",
|
|
"interestRateMode": "The flashloan mode: 0 for regular flashloan, 1 for Stable debt, 2 for Variable debt",
|
|
"premium": "The fee flash borrowed",
|
|
"referralCode": "The referral code used",
|
|
"target": "The address of the flash loan receiver contract"
|
|
}
|
|
},
|
|
"IsolationModeTotalDebtUpdated(address,uint256)": {
|
|
"details": "Emitted on borrow(), repay() and liquidationCall() when using isolated assets",
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve",
|
|
"totalDebt": "The total isolation mode debt for the reserve"
|
|
}
|
|
},
|
|
"LiquidationCall(address,address,address,uint256,uint256,address,bool)": {
|
|
"details": "Emitted when a borrower is liquidated.",
|
|
"params": {
|
|
"collateralAsset": "The address of the underlying asset used as collateral, to receive as result of the liquidation",
|
|
"debtAsset": "The address of the underlying borrowed asset to be repaid with the liquidation",
|
|
"debtToCover": "The debt amount of borrowed `asset` the liquidator wants to cover",
|
|
"liquidatedCollateralAmount": "The amount of collateral received by the liquidator",
|
|
"liquidator": "The address of the liquidator",
|
|
"receiveAToken": "True if the liquidators wants to receive the collateral aTokens, `false` if he wants to receive the underlying collateral asset directly",
|
|
"user": "The address of the borrower getting liquidated"
|
|
}
|
|
},
|
|
"MintUnbacked(address,address,address,uint256,uint16)": {
|
|
"details": "Emitted on mintUnbacked()",
|
|
"params": {
|
|
"amount": "The amount of supplied assets",
|
|
"onBehalfOf": "The beneficiary of the supplied assets, receiving the aTokens",
|
|
"referralCode": "The referral code used",
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"user": "The address initiating the supply"
|
|
}
|
|
},
|
|
"MintedToTreasury(address,uint256)": {
|
|
"details": "Emitted when the protocol treasury receives minted aTokens from the accrued interest.",
|
|
"params": {
|
|
"amountMinted": "The amount minted to the treasury",
|
|
"reserve": "The address of the reserve"
|
|
}
|
|
},
|
|
"RebalanceStableBorrowRate(address,address)": {
|
|
"details": "Emitted on rebalanceStableBorrowRate()",
|
|
"params": {
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"user": "The address of the user for which the rebalance has been executed"
|
|
}
|
|
},
|
|
"Repay(address,address,address,uint256,bool)": {
|
|
"details": "Emitted on repay()",
|
|
"params": {
|
|
"amount": "The amount repaid",
|
|
"repayer": "The address of the user initiating the repay(), providing the funds",
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"useATokens": "True if the repayment is done using aTokens, `false` if done with underlying asset directly",
|
|
"user": "The beneficiary of the repayment, getting his debt reduced"
|
|
}
|
|
},
|
|
"ReserveDataUpdated(address,uint256,uint256,uint256,uint256,uint256)": {
|
|
"details": "Emitted when the state of a reserve is updated.",
|
|
"params": {
|
|
"liquidityIndex": "The next liquidity index",
|
|
"liquidityRate": "The next liquidity rate",
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"stableBorrowRate": "The next stable borrow rate",
|
|
"variableBorrowIndex": "The next variable borrow index",
|
|
"variableBorrowRate": "The next variable borrow rate"
|
|
}
|
|
},
|
|
"ReserveUsedAsCollateralDisabled(address,address)": {
|
|
"details": "Emitted on setUserUseReserveAsCollateral()",
|
|
"params": {
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"user": "The address of the user enabling the usage as collateral"
|
|
}
|
|
},
|
|
"ReserveUsedAsCollateralEnabled(address,address)": {
|
|
"details": "Emitted on setUserUseReserveAsCollateral()",
|
|
"params": {
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"user": "The address of the user enabling the usage as collateral"
|
|
}
|
|
},
|
|
"Supply(address,address,address,uint256,uint16)": {
|
|
"details": "Emitted on supply()",
|
|
"params": {
|
|
"amount": "The amount supplied",
|
|
"onBehalfOf": "The beneficiary of the supply, receiving the aTokens",
|
|
"referralCode": "The referral code used",
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"user": "The address initiating the supply"
|
|
}
|
|
},
|
|
"SwapBorrowRateMode(address,address,uint8)": {
|
|
"details": "Emitted on swapBorrowRateMode()",
|
|
"params": {
|
|
"interestRateMode": "The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable",
|
|
"reserve": "The address of the underlying asset of the reserve",
|
|
"user": "The address of the user swapping his rate mode"
|
|
}
|
|
},
|
|
"UserEModeSet(address,uint8)": {
|
|
"details": "Emitted when the user selects a certain asset category for eMode",
|
|
"params": {
|
|
"categoryId": "The category id",
|
|
"user": "The address of the user"
|
|
}
|
|
},
|
|
"Withdraw(address,address,address,uint256)": {
|
|
"details": "Emitted on withdraw()",
|
|
"params": {
|
|
"amount": "The amount to be withdrawn",
|
|
"reserve": "The address of the underlying asset being withdrawn",
|
|
"to": "The address that will receive the underlying",
|
|
"user": "The address initiating the withdrawal, owner of aTokens"
|
|
}
|
|
}
|
|
},
|
|
"kind": "dev",
|
|
"methods": {
|
|
"ADDRESSES_PROVIDER()": {
|
|
"returns": {
|
|
"_0": "The address of the PoolAddressesProvider"
|
|
}
|
|
},
|
|
"BRIDGE_PROTOCOL_FEE()": {
|
|
"returns": {
|
|
"_0": "The bridge fee sent to the protocol treasury"
|
|
}
|
|
},
|
|
"FLASHLOAN_PREMIUM_TOTAL()": {
|
|
"returns": {
|
|
"_0": "The total fee on flashloans"
|
|
}
|
|
},
|
|
"FLASHLOAN_PREMIUM_TO_PROTOCOL()": {
|
|
"returns": {
|
|
"_0": "The flashloan fee sent to the protocol treasury"
|
|
}
|
|
},
|
|
"MAX_NUMBER_RESERVES()": {
|
|
"returns": {
|
|
"_0": "The maximum number of reserves supported"
|
|
}
|
|
},
|
|
"MAX_STABLE_RATE_BORROW_SIZE_PERCENT()": {
|
|
"returns": {
|
|
"_0": "The percentage of available liquidity to borrow, expressed in bps"
|
|
}
|
|
},
|
|
"backUnbacked(address,uint256,uint256)": {
|
|
"params": {
|
|
"amount": "The amount to back",
|
|
"asset": "The address of the underlying asset to back",
|
|
"fee": "The amount paid in fees"
|
|
},
|
|
"returns": {
|
|
"_0": "The backed amount"
|
|
}
|
|
},
|
|
"borrow(address,uint256,uint256,uint16,address)": {
|
|
"params": {
|
|
"amount": "The amount to be borrowed",
|
|
"asset": "The address of the underlying asset to borrow",
|
|
"interestRateMode": "The interest rate mode at which the user wants to borrow: 1 for Stable, 2 for Variable",
|
|
"onBehalfOf": "The address of the user who will receive the debt. Should be the address of the borrower itself calling the function if he wants to borrow against his own collateral, or the address of the credit delegator if he has been given credit delegation allowance",
|
|
"referralCode": "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"
|
|
}
|
|
},
|
|
"configureEModeCategory(uint8,(uint16,uint16,uint16,address,string))": {
|
|
"details": "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",
|
|
"params": {
|
|
"config": "The configuration of the category",
|
|
"id": "The id of the category"
|
|
}
|
|
},
|
|
"deposit(address,uint256,address,uint16)": {
|
|
"details": "Deprecated: Use the `supply` function instead",
|
|
"params": {
|
|
"amount": "The amount to be supplied",
|
|
"asset": "The address of the underlying asset to supply",
|
|
"onBehalfOf": "The address that will receive the aTokens, same as msg.sender if the user wants to receive them on his own wallet, or a different address if the beneficiary of aTokens is a different wallet",
|
|
"referralCode": "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"
|
|
}
|
|
},
|
|
"dropReserve(address)": {
|
|
"details": "Only callable by the PoolConfigurator contract",
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve"
|
|
}
|
|
},
|
|
"finalizeTransfer(address,address,address,uint256,uint256,uint256)": {
|
|
"details": "Only callable by the overlying aToken of the `asset`",
|
|
"params": {
|
|
"amount": "The amount being transferred/withdrawn",
|
|
"asset": "The address of the underlying asset of the aToken",
|
|
"balanceFromBefore": "The aToken balance of the `from` user before the transfer",
|
|
"balanceToBefore": "The aToken balance of the `to` user before the transfer",
|
|
"from": "The user from which the aTokens are transferred",
|
|
"to": "The user receiving the aTokens"
|
|
}
|
|
},
|
|
"flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16)": {
|
|
"details": "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/",
|
|
"params": {
|
|
"amounts": "The amounts of the assets being flash-borrowed",
|
|
"assets": "The addresses of the assets being flash-borrowed",
|
|
"interestRateModes": "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 -> Open debt at stable rate for the value of the amount flash-borrowed to the `onBehalfOf` address 2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address",
|
|
"onBehalfOf": "The address that will receive the debt in the case of using on `modes` 1 or 2",
|
|
"params": "Variadic packed params to pass to the receiver as extra information",
|
|
"receiverAddress": "The address of the contract receiving the funds, implementing IFlashLoanReceiver interface",
|
|
"referralCode": "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(address,address,uint256,bytes,uint16)": {
|
|
"details": "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/",
|
|
"params": {
|
|
"amount": "The amount of the asset being flash-borrowed",
|
|
"asset": "The address of the asset being flash-borrowed",
|
|
"params": "Variadic packed params to pass to the receiver as extra information",
|
|
"receiverAddress": "The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface",
|
|
"referralCode": "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"
|
|
}
|
|
},
|
|
"getConfiguration(address)": {
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve"
|
|
},
|
|
"returns": {
|
|
"_0": "The configuration of the reserve"
|
|
}
|
|
},
|
|
"getEModeCategoryData(uint8)": {
|
|
"params": {
|
|
"id": "The id of the category"
|
|
},
|
|
"returns": {
|
|
"_0": "The configuration data of the category"
|
|
}
|
|
},
|
|
"getReserveAddressById(uint16)": {
|
|
"params": {
|
|
"id": "The id of the reserve as stored in the DataTypes.ReserveData struct"
|
|
},
|
|
"returns": {
|
|
"_0": "The address of the reserve associated with id"
|
|
}
|
|
},
|
|
"getReserveData(address)": {
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve"
|
|
},
|
|
"returns": {
|
|
"_0": "The state and configuration data of the reserve"
|
|
}
|
|
},
|
|
"getReserveNormalizedIncome(address)": {
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve"
|
|
},
|
|
"returns": {
|
|
"_0": "The reserve's normalized income"
|
|
}
|
|
},
|
|
"getReserveNormalizedVariableDebt(address)": {
|
|
"details": "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)",
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve"
|
|
},
|
|
"returns": {
|
|
"_0": "The reserve normalized variable debt"
|
|
}
|
|
},
|
|
"getReservesList()": {
|
|
"details": "It does not include dropped reserves",
|
|
"returns": {
|
|
"_0": "The addresses of the underlying assets of the initialized reserves"
|
|
}
|
|
},
|
|
"getUserAccountData(address)": {
|
|
"params": {
|
|
"user": "The address of the user"
|
|
},
|
|
"returns": {
|
|
"availableBorrowsBase": "The borrowing power left of the user in the base currency used by the price feed",
|
|
"currentLiquidationThreshold": "The liquidation threshold of the user",
|
|
"healthFactor": "The current health factor of the user",
|
|
"ltv": "The loan to value of The user",
|
|
"totalCollateralBase": "The total collateral of the user in the base currency used by the price feed",
|
|
"totalDebtBase": "The total debt of the user in the base currency used by the price feed"
|
|
}
|
|
},
|
|
"getUserConfiguration(address)": {
|
|
"params": {
|
|
"user": "The user address"
|
|
},
|
|
"returns": {
|
|
"_0": "The configuration of the user"
|
|
}
|
|
},
|
|
"getUserEMode(address)": {
|
|
"params": {
|
|
"user": "The address of the user"
|
|
},
|
|
"returns": {
|
|
"_0": "The eMode id"
|
|
}
|
|
},
|
|
"initReserve(address,address,address,address,address)": {
|
|
"details": "Only callable by the PoolConfigurator contract",
|
|
"params": {
|
|
"aTokenAddress": "The address of the aToken that will be assigned to the reserve",
|
|
"asset": "The address of the underlying asset of the reserve",
|
|
"interestRateStrategyAddress": "The address of the interest rate strategy contract",
|
|
"stableDebtAddress": "The address of the StableDebtToken that will be assigned to the reserve",
|
|
"variableDebtAddress": "The address of the VariableDebtToken that will be assigned to the reserve"
|
|
}
|
|
},
|
|
"liquidationCall(address,address,address,uint256,bool)": {
|
|
"params": {
|
|
"collateralAsset": "The address of the underlying asset used as collateral, to receive as result of the liquidation",
|
|
"debtAsset": "The address of the underlying borrowed asset to be repaid with the liquidation",
|
|
"debtToCover": "The debt amount of borrowed `asset` the liquidator wants to cover",
|
|
"receiveAToken": "True if the liquidators wants to receive the collateral aTokens, `false` if he wants to receive the underlying collateral asset directly",
|
|
"user": "The address of the borrower getting liquidated"
|
|
}
|
|
},
|
|
"mintToTreasury(address[])": {
|
|
"params": {
|
|
"assets": "The list of reserves for which the minting needs to be executed"
|
|
}
|
|
},
|
|
"mintUnbacked(address,uint256,address,uint16)": {
|
|
"params": {
|
|
"amount": "The amount to mint",
|
|
"asset": "The address of the underlying asset to mint",
|
|
"onBehalfOf": "The address that will receive the aTokens",
|
|
"referralCode": "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"
|
|
}
|
|
},
|
|
"rebalanceStableBorrowRate(address,address)": {
|
|
"params": {
|
|
"asset": "The address of the underlying asset borrowed",
|
|
"user": "The address of the user to be rebalanced"
|
|
}
|
|
},
|
|
"repay(address,uint256,uint256,address)": {
|
|
"params": {
|
|
"amount": "The amount to repay - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`",
|
|
"asset": "The address of the borrowed underlying asset previously borrowed",
|
|
"interestRateMode": "The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable",
|
|
"onBehalfOf": "The address of the user who will get his debt reduced/removed. Should be the address of the user calling the function if he wants to reduce/remove his own debt, or the address of any other other borrower whose debt should be removed"
|
|
},
|
|
"returns": {
|
|
"_0": "The final amount repaid"
|
|
}
|
|
},
|
|
"repayWithATokens(address,uint256,uint256)": {
|
|
"details": "Passing uint256.max as amount will clean up any residual aToken dust balance, if the user aToken balance is not enough to cover the whole debt",
|
|
"params": {
|
|
"amount": "The amount to repay - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`",
|
|
"asset": "The address of the borrowed underlying asset previously borrowed",
|
|
"interestRateMode": "The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable"
|
|
},
|
|
"returns": {
|
|
"_0": "The final amount repaid"
|
|
}
|
|
},
|
|
"repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32)": {
|
|
"params": {
|
|
"amount": "The amount to repay - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`",
|
|
"asset": "The address of the borrowed underlying asset previously borrowed",
|
|
"deadline": "The deadline timestamp that the permit is valid",
|
|
"interestRateMode": "The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable",
|
|
"onBehalfOf": "Address of the user who will get his debt reduced/removed. Should be the address of the user calling the function if he wants to reduce/remove his own debt, or the address of any other other borrower whose debt should be removed",
|
|
"permitR": "The R parameter of ERC712 permit sig",
|
|
"permitS": "The S parameter of ERC712 permit sig",
|
|
"permitV": "The V parameter of ERC712 permit sig"
|
|
},
|
|
"returns": {
|
|
"_0": "The final amount repaid"
|
|
}
|
|
},
|
|
"rescueTokens(address,address,uint256)": {
|
|
"params": {
|
|
"amount": "The amount of token to transfer",
|
|
"to": "The address of the recipient",
|
|
"token": "The address of the token"
|
|
}
|
|
},
|
|
"resetIsolationModeTotalDebt(address)": {
|
|
"details": "It requires the given asset has zero debt ceiling",
|
|
"params": {
|
|
"asset": "The address of the underlying asset to reset the isolationModeTotalDebt"
|
|
}
|
|
},
|
|
"setConfiguration(address,(uint256))": {
|
|
"details": "Only callable by the PoolConfigurator contract",
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve",
|
|
"configuration": "The new configuration bitmap"
|
|
}
|
|
},
|
|
"setReserveInterestRateStrategyAddress(address,address)": {
|
|
"details": "Only callable by the PoolConfigurator contract",
|
|
"params": {
|
|
"asset": "The address of the underlying asset of the reserve",
|
|
"rateStrategyAddress": "The address of the interest rate strategy contract"
|
|
}
|
|
},
|
|
"setUserEMode(uint8)": {
|
|
"params": {
|
|
"categoryId": "The id of the category"
|
|
}
|
|
},
|
|
"setUserUseReserveAsCollateral(address,bool)": {
|
|
"params": {
|
|
"asset": "The address of the underlying asset supplied",
|
|
"useAsCollateral": "True if the user wants to use the supply as collateral, false otherwise"
|
|
}
|
|
},
|
|
"supply(address,uint256,address,uint16)": {
|
|
"params": {
|
|
"amount": "The amount to be supplied",
|
|
"asset": "The address of the underlying asset to supply",
|
|
"onBehalfOf": "The address that will receive the aTokens, same as msg.sender if the user wants to receive them on his own wallet, or a different address if the beneficiary of aTokens is a different wallet",
|
|
"referralCode": "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"
|
|
}
|
|
},
|
|
"supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32)": {
|
|
"params": {
|
|
"amount": "The amount to be supplied",
|
|
"asset": "The address of the underlying asset to supply",
|
|
"deadline": "The deadline timestamp that the permit is valid",
|
|
"onBehalfOf": "The address that will receive the aTokens, same as msg.sender if the user wants to receive them on his own wallet, or a different address if the beneficiary of aTokens is a different wallet",
|
|
"permitR": "The R parameter of ERC712 permit sig",
|
|
"permitS": "The S parameter of ERC712 permit sig",
|
|
"permitV": "The V parameter of ERC712 permit sig",
|
|
"referralCode": "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"
|
|
}
|
|
},
|
|
"swapBorrowRateMode(address,uint256)": {
|
|
"params": {
|
|
"asset": "The address of the underlying asset borrowed",
|
|
"interestRateMode": "The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable"
|
|
}
|
|
},
|
|
"updateBridgeProtocolFee(uint256)": {
|
|
"params": {
|
|
"bridgeProtocolFee": "The part of the premium sent to the protocol treasury"
|
|
}
|
|
},
|
|
"updateFlashloanPremiums(uint128,uint128)": {
|
|
"details": "The total premium is calculated on the total borrowed amountThe premium to protocol is calculated on the total premium, being a percentage of `flashLoanPremiumTotal`Only callable by the PoolConfigurator contract",
|
|
"params": {
|
|
"flashLoanPremiumToProtocol": "The part of the premium sent to the protocol treasury, expressed in bps",
|
|
"flashLoanPremiumTotal": "The total premium, expressed in bps"
|
|
}
|
|
},
|
|
"withdraw(address,uint256,address)": {
|
|
"params": {
|
|
"amount": "The underlying amount to be withdrawn - Send the value type(uint256).max in order to withdraw the whole aToken balance",
|
|
"asset": "The address of the underlying asset to withdraw",
|
|
"to": "The address that will receive the underlying, same as msg.sender if the user wants to receive it on his own wallet, or a different address if the beneficiary is a different wallet"
|
|
},
|
|
"returns": {
|
|
"_0": "The final amount withdrawn"
|
|
}
|
|
}
|
|
},
|
|
"title": "IPool",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"ADDRESSES_PROVIDER()": "0542975c",
|
|
"BRIDGE_PROTOCOL_FEE()": "272d9072",
|
|
"FLASHLOAN_PREMIUM_TOTAL()": "074b2e43",
|
|
"FLASHLOAN_PREMIUM_TO_PROTOCOL()": "6a99c036",
|
|
"MAX_NUMBER_RESERVES()": "f8119d51",
|
|
"MAX_STABLE_RATE_BORROW_SIZE_PERCENT()": "e82fec2f",
|
|
"backUnbacked(address,uint256,uint256)": "d65dc7a1",
|
|
"borrow(address,uint256,uint256,uint16,address)": "a415bcad",
|
|
"configureEModeCategory(uint8,(uint16,uint16,uint16,address,string))": "d579ea7d",
|
|
"deposit(address,uint256,address,uint16)": "e8eda9df",
|
|
"dropReserve(address)": "63c9b860",
|
|
"finalizeTransfer(address,address,address,uint256,uint256,uint256)": "d5ed3933",
|
|
"flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16)": "ab9c4b5d",
|
|
"flashLoanSimple(address,address,uint256,bytes,uint16)": "42b0b77c",
|
|
"getConfiguration(address)": "c44b11f7",
|
|
"getEModeCategoryData(uint8)": "6c6f6ae1",
|
|
"getReserveAddressById(uint16)": "52751797",
|
|
"getReserveData(address)": "35ea6a75",
|
|
"getReserveNormalizedIncome(address)": "d15e0053",
|
|
"getReserveNormalizedVariableDebt(address)": "386497fd",
|
|
"getReservesList()": "d1946dbc",
|
|
"getUserAccountData(address)": "bf92857c",
|
|
"getUserConfiguration(address)": "4417a583",
|
|
"getUserEMode(address)": "eddf1b79",
|
|
"initReserve(address,address,address,address,address)": "7a708e92",
|
|
"liquidationCall(address,address,address,uint256,bool)": "00a718a9",
|
|
"mintToTreasury(address[])": "9cd19996",
|
|
"mintUnbacked(address,uint256,address,uint16)": "69a933a5",
|
|
"rebalanceStableBorrowRate(address,address)": "cd112382",
|
|
"repay(address,uint256,uint256,address)": "573ade81",
|
|
"repayWithATokens(address,uint256,uint256)": "2dad97d4",
|
|
"repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32)": "ee3e210b",
|
|
"rescueTokens(address,address,uint256)": "cea9d26f",
|
|
"resetIsolationModeTotalDebt(address)": "e43e88a1",
|
|
"setConfiguration(address,(uint256))": "f51e435b",
|
|
"setReserveInterestRateStrategyAddress(address,address)": "1d2118f9",
|
|
"setUserEMode(uint8)": "28530a47",
|
|
"setUserUseReserveAsCollateral(address,bool)": "5a3b74b9",
|
|
"supply(address,uint256,address,uint16)": "617ba037",
|
|
"supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32)": "02c205f0",
|
|
"swapBorrowRateMode(address,uint256)": "94ba89a2",
|
|
"updateBridgeProtocolFee(uint256)": "3036b439",
|
|
"updateFlashloanPremiums(uint128,uint128)": "bcb6e522",
|
|
"withdraw(address,uint256,address)": "69328dec"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"backer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"BackUnbacked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum DataTypes.InterestRateMode\",\"name\":\"interestRateMode\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"borrowRate\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"Borrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum DataTypes.InterestRateMode\",\"name\":\"interestRateMode\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"premium\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalDebt\",\"type\":\"uint256\"}],\"name\":\"IsolationModeTotalDebtUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"debtAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"debtToCover\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidatedCollateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"receiveAToken\",\"type\":\"bool\"}],\"name\":\"LiquidationCall\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"MintUnbacked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountMinted\",\"type\":\"uint256\"}],\"name\":\"MintedToTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"RebalanceStableBorrowRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"repayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"useATokens\",\"type\":\"bool\"}],\"name\":\"Repay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidityRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidityIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableBorrowIndex\",\"type\":\"uint256\"}],\"name\":\"ReserveDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"ReserveUsedAsCollateralDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"ReserveUsedAsCollateralEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"Supply\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enum DataTypes.InterestRateMode\",\"name\":\"interestRateMode\",\"type\":\"uint8\"}],\"name\":\"SwapBorrowRateMode\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"categoryId\",\"type\":\"uint8\"}],\"name\":\"UserEModeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADDRESSES_PROVIDER\",\"outputs\":[{\"internalType\":\"contract IPoolAddressesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BRIDGE_PROTOCOL_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FLASHLOAN_PREMIUM_TOTAL\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FLASHLOAN_PREMIUM_TO_PROTOCOL\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_NUMBER_RESERVES\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_STABLE_RATE_BORROW_SIZE_PERCENT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"backUnbacked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"}],\"name\":\"borrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"id\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"ltv\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationThreshold\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationBonus\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"priceSource\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"label\",\"type\":\"string\"}],\"internalType\":\"struct DataTypes.EModeCategory\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"configureEModeCategory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"dropReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceFromBefore\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceToBefore\",\"type\":\"uint256\"}],\"name\":\"finalizeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiverAddress\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"interestRateModes\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiverAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"flashLoanSimple\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"struct DataTypes.ReserveConfigurationMap\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"id\",\"type\":\"uint8\"}],\"name\":\"getEModeCategoryData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"ltv\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationThreshold\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationBonus\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"priceSource\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"label\",\"type\":\"string\"}],\"internalType\":\"struct DataTypes.EModeCategory\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"id\",\"type\":\"uint16\"}],\"name\":\"getReserveAddressById\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveData\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"struct DataTypes.ReserveConfigurationMap\",\"name\":\"configuration\",\"type\":\"tuple\"},{\"internalType\":\"uint128\",\"name\":\"liquidityIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentLiquidityRate\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"variableBorrowIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentVariableBorrowRate\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentStableBorrowRate\",\"type\":\"uint128\"},{\"internalType\":\"uint40\",\"name\":\"lastUpdateTimestamp\",\"type\":\"uint40\"},{\"internalType\":\"uint16\",\"name\":\"id\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"aTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stableDebtTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"variableDebtTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"interestRateStrategyAddress\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accruedToTreasury\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"unbacked\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"isolationModeTotalDebt\",\"type\":\"uint128\"}],\"internalType\":\"struct DataTypes.ReserveData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveNormalizedIncome\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveNormalizedVariableDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReservesList\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserAccountData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalCollateralBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDebtBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableBorrowsBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentLiquidationThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ltv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"healthFactor\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"struct DataTypes.UserConfigurationMap\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserEMode\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stableDebtAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"variableDebtAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"interestRateStrategyAddress\",\"type\":\"address\"}],\"name\":\"initReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralAsset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"debtAsset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"debtToCover\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"receiveAToken\",\"type\":\"bool\"}],\"name\":\"liquidationCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"name\":\"mintToTreasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"mintUnbacked\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"rebalanceStableBorrowRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"}],\"name\":\"repay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"}],\"name\":\"repayWithATokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"permitV\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"permitR\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"permitS\",\"type\":\"bytes32\"}],\"name\":\"repayWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"rescueTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"resetIsolationModeTotalDebt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"struct DataTypes.ReserveConfigurationMap\",\"name\":\"configuration\",\"type\":\"tuple\"}],\"name\":\"setConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rateStrategyAddress\",\"type\":\"address\"}],\"name\":\"setReserveInterestRateStrategyAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"categoryId\",\"type\":\"uint8\"}],\"name\":\"setUserEMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useAsCollateral\",\"type\":\"bool\"}],\"name\":\"setUserUseReserveAsCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"supply\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"permitV\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"permitR\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"permitS\",\"type\":\"bytes32\"}],\"name\":\"supplyWithPermit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"}],\"name\":\"swapBorrowRateMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bridgeProtocolFee\",\"type\":\"uint256\"}],\"name\":\"updateBridgeProtocolFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"flashLoanPremiumTotal\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"flashLoanPremiumToProtocol\",\"type\":\"uint128\"}],\"name\":\"updateFlashloanPremiums\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Aave\",\"events\":{\"BackUnbacked(address,address,uint256,uint256)\":{\"details\":\"Emitted on backUnbacked()\",\"params\":{\"amount\":\"The amount added as backing\",\"backer\":\"The address paying for the backing\",\"fee\":\"The amount paid in fees\",\"reserve\":\"The address of the underlying asset of the reserve\"}},\"Borrow(address,address,address,uint256,uint8,uint256,uint16)\":{\"details\":\"Emitted on borrow() and flashLoan() when debt needs to be opened\",\"params\":{\"amount\":\"The amount borrowed out\",\"borrowRate\":\"The numeric rate at which the user has borrowed, expressed in ray\",\"interestRateMode\":\"The rate mode: 1 for Stable, 2 for Variable\",\"onBehalfOf\":\"The address that will be getting the debt\",\"referralCode\":\"The referral code used\",\"reserve\":\"The address of the underlying asset being borrowed\",\"user\":\"The address of the user initiating the borrow(), receiving the funds on borrow() or just initiator of the transaction on flashLoan()\"}},\"FlashLoan(address,address,address,uint256,uint8,uint256,uint16)\":{\"details\":\"Emitted on flashLoan()\",\"params\":{\"amount\":\"The amount flash borrowed\",\"asset\":\"The address of the asset being flash borrowed\",\"initiator\":\"The address initiating the flash loan\",\"interestRateMode\":\"The flashloan mode: 0 for regular flashloan, 1 for Stable debt, 2 for Variable debt\",\"premium\":\"The fee flash borrowed\",\"referralCode\":\"The referral code used\",\"target\":\"The address of the flash loan receiver contract\"}},\"IsolationModeTotalDebtUpdated(address,uint256)\":{\"details\":\"Emitted on borrow(), repay() and liquidationCall() when using isolated assets\",\"params\":{\"asset\":\"The address of the underlying asset of the reserve\",\"totalDebt\":\"The total isolation mode debt for the reserve\"}},\"LiquidationCall(address,address,address,uint256,uint256,address,bool)\":{\"details\":\"Emitted when a borrower is liquidated.\",\"params\":{\"collateralAsset\":\"The address of the underlying asset used as collateral, to receive as result of the liquidation\",\"debtAsset\":\"The address of the underlying borrowed asset to be repaid with the liquidation\",\"debtToCover\":\"The debt amount of borrowed `asset` the liquidator wants to cover\",\"liquidatedCollateralAmount\":\"The amount of collateral received by the liquidator\",\"liquidator\":\"The address of the liquidator\",\"receiveAToken\":\"True if the liquidators wants to receive the collateral aTokens, `false` if he wants to receive the underlying collateral asset directly\",\"user\":\"The address of the borrower getting liquidated\"}},\"MintUnbacked(address,address,address,uint256,uint16)\":{\"details\":\"Emitted on mintUnbacked()\",\"params\":{\"amount\":\"The amount of supplied assets\",\"onBehalfOf\":\"The beneficiary of the supplied assets, receiving the aTokens\",\"referralCode\":\"The referral code used\",\"reserve\":\"The address of the underlying asset of the reserve\",\"user\":\"The address initiating the supply\"}},\"MintedToTreasury(address,uint256)\":{\"details\":\"Emitted when the protocol treasury receives minted aTokens from the accrued interest.\",\"params\":{\"amountMinted\":\"The amount minted to the treasury\",\"reserve\":\"The address of the reserve\"}},\"RebalanceStableBorrowRate(address,address)\":{\"details\":\"Emitted on rebalanceStableBorrowRate()\",\"params\":{\"reserve\":\"The address of the underlying asset of the reserve\",\"user\":\"The address of the user for which the rebalance has been executed\"}},\"Repay(address,address,address,uint256,bool)\":{\"details\":\"Emitted on repay()\",\"params\":{\"amount\":\"The amount repaid\",\"repayer\":\"The address of the user initiating the repay(), providing the funds\",\"reserve\":\"The address of the underlying asset of the reserve\",\"useATokens\":\"True if the repayment is done using aTokens, `false` if done with underlying asset directly\",\"user\":\"The beneficiary of the repayment, getting his debt reduced\"}},\"ReserveDataUpdated(address,uint256,uint256,uint256,uint256,uint256)\":{\"details\":\"Emitted when the state of a reserve is updated.\",\"params\":{\"liquidityIndex\":\"The next liquidity index\",\"liquidityRate\":\"The next liquidity rate\",\"reserve\":\"The address of the underlying asset of the reserve\",\"stableBorrowRate\":\"The next stable borrow rate\",\"variableBorrowIndex\":\"The next variable borrow index\",\"variableBorrowRate\":\"The next variable borrow rate\"}},\"ReserveUsedAsCollateralDisabled(address,address)\":{\"details\":\"Emitted on setUserUseReserveAsCollateral()\",\"params\":{\"reserve\":\"The address of the underlying asset of the reserve\",\"user\":\"The address of the user enabling the usage as collateral\"}},\"ReserveUsedAsCollateralEnabled(address,address)\":{\"details\":\"Emitted on setUserUseReserveAsCollateral()\",\"params\":{\"reserve\":\"The address of the underlying asset of the reserve\",\"user\":\"The address of the user enabling the usage as collateral\"}},\"Supply(address,address,address,uint256,uint16)\":{\"details\":\"Emitted on supply()\",\"params\":{\"amount\":\"The amount supplied\",\"onBehalfOf\":\"The beneficiary of the supply, receiving the aTokens\",\"referralCode\":\"The referral code used\",\"reserve\":\"The address of the underlying asset of the reserve\",\"user\":\"The address initiating the supply\"}},\"SwapBorrowRateMode(address,address,uint8)\":{\"details\":\"Emitted on swapBorrowRateMode()\",\"params\":{\"interestRateMode\":\"The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable\",\"reserve\":\"The address of the underlying asset of the reserve\",\"user\":\"The address of the user swapping his rate mode\"}},\"UserEModeSet(address,uint8)\":{\"details\":\"Emitted when the user selects a certain asset category for eMode\",\"params\":{\"categoryId\":\"The category id\",\"user\":\"The address of the user\"}},\"Withdraw(address,address,address,uint256)\":{\"details\":\"Emitted on withdraw()\",\"params\":{\"amount\":\"The amount to be withdrawn\",\"reserve\":\"The address of the underlying asset being withdrawn\",\"to\":\"The address that will receive the underlying\",\"user\":\"The address initiating the withdrawal, owner of aTokens\"}}},\"kind\":\"dev\",\"methods\":{\"ADDRESSES_PROVIDER()\":{\"returns\":{\"_0\":\"The address of the PoolAddressesProvider\"}},\"BRIDGE_PROTOCOL_FEE()\":{\"returns\":{\"_0\":\"The bridge fee sent to the protocol treasury\"}},\"FLASHLOAN_PREMIUM_TOTAL()\":{\"returns\":{\"_0\":\"The total fee on flashloans\"}},\"FLASHLOAN_PREMIUM_TO_PROTOCOL()\":{\"returns\":{\"_0\":\"The flashloan fee sent to the protocol treasury\"}},\"MAX_NUMBER_RESERVES()\":{\"returns\":{\"_0\":\"The maximum number of reserves supported\"}},\"MAX_STABLE_RATE_BORROW_SIZE_PERCENT()\":{\"returns\":{\"_0\":\"The percentage of available liquidity to borrow, expressed in bps\"}},\"backUnbacked(address,uint256,uint256)\":{\"params\":{\"amount\":\"The amount to back\",\"asset\":\"The address of the underlying asset to back\",\"fee\":\"The amount paid in fees\"},\"returns\":{\"_0\":\"The backed amount\"}},\"borrow(address,uint256,uint256,uint16,address)\":{\"params\":{\"amount\":\"The amount to be borrowed\",\"asset\":\"The address of the underlying asset to borrow\",\"interestRateMode\":\"The interest rate mode at which the user wants to borrow: 1 for Stable, 2 for Variable\",\"onBehalfOf\":\"The address of the user who will receive the debt. Should be the address of the borrower itself calling the function if he wants to borrow against his own collateral, or the address of the credit delegator if he has been given credit delegation allowance\",\"referralCode\":\"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\"}},\"configureEModeCategory(uint8,(uint16,uint16,uint16,address,string))\":{\"details\":\"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\",\"params\":{\"config\":\"The configuration of the category\",\"id\":\"The id of the category\"}},\"deposit(address,uint256,address,uint16)\":{\"details\":\"Deprecated: Use the `supply` function instead\",\"params\":{\"amount\":\"The amount to be supplied\",\"asset\":\"The address of the underlying asset to supply\",\"onBehalfOf\":\"The address that will receive the aTokens, same as msg.sender if the user wants to receive them on his own wallet, or a different address if the beneficiary of aTokens is a different wallet\",\"referralCode\":\"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\"}},\"dropReserve(address)\":{\"details\":\"Only callable by the PoolConfigurator contract\",\"params\":{\"asset\":\"The address of the underlying asset of the reserve\"}},\"finalizeTransfer(address,address,address,uint256,uint256,uint256)\":{\"details\":\"Only callable by the overlying aToken of the `asset`\",\"params\":{\"amount\":\"The amount being transferred/withdrawn\",\"asset\":\"The address of the underlying asset of the aToken\",\"balanceFromBefore\":\"The aToken balance of the `from` user before the transfer\",\"balanceToBefore\":\"The aToken balance of the `to` user before the transfer\",\"from\":\"The user from which the aTokens are transferred\",\"to\":\"The user receiving the aTokens\"}},\"flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16)\":{\"details\":\"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/\",\"params\":{\"amounts\":\"The amounts of the assets being flash-borrowed\",\"assets\":\"The addresses of the assets being flash-borrowed\",\"interestRateModes\":\"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 -> Open debt at stable rate for the value of the amount flash-borrowed to the `onBehalfOf` address 2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address\",\"onBehalfOf\":\"The address that will receive the debt in the case of using on `modes` 1 or 2\",\"params\":\"Variadic packed params to pass to the receiver as extra information\",\"receiverAddress\":\"The address of the contract receiving the funds, implementing IFlashLoanReceiver interface\",\"referralCode\":\"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(address,address,uint256,bytes,uint16)\":{\"details\":\"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/\",\"params\":{\"amount\":\"The amount of the asset being flash-borrowed\",\"asset\":\"The address of the asset being flash-borrowed\",\"params\":\"Variadic packed params to pass to the receiver as extra information\",\"receiverAddress\":\"The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface\",\"referralCode\":\"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\"}},\"getConfiguration(address)\":{\"params\":{\"asset\":\"The address of the underlying asset of the reserve\"},\"returns\":{\"_0\":\"The configuration of the reserve\"}},\"getEModeCategoryData(uint8)\":{\"params\":{\"id\":\"The id of the category\"},\"returns\":{\"_0\":\"The configuration data of the category\"}},\"getReserveAddressById(uint16)\":{\"params\":{\"id\":\"The id of the reserve as stored in the DataTypes.ReserveData struct\"},\"returns\":{\"_0\":\"The address of the reserve associated with id\"}},\"getReserveData(address)\":{\"params\":{\"asset\":\"The address of the underlying asset of the reserve\"},\"returns\":{\"_0\":\"The state and configuration data of the reserve\"}},\"getReserveNormalizedIncome(address)\":{\"params\":{\"asset\":\"The address of the underlying asset of the reserve\"},\"returns\":{\"_0\":\"The reserve's normalized income\"}},\"getReserveNormalizedVariableDebt(address)\":{\"details\":\"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)\",\"params\":{\"asset\":\"The address of the underlying asset of the reserve\"},\"returns\":{\"_0\":\"The reserve normalized variable debt\"}},\"getReservesList()\":{\"details\":\"It does not include dropped reserves\",\"returns\":{\"_0\":\"The addresses of the underlying assets of the initialized reserves\"}},\"getUserAccountData(address)\":{\"params\":{\"user\":\"The address of the user\"},\"returns\":{\"availableBorrowsBase\":\"The borrowing power left of the user in the base currency used by the price feed\",\"currentLiquidationThreshold\":\"The liquidation threshold of the user\",\"healthFactor\":\"The current health factor of the user\",\"ltv\":\"The loan to value of The user\",\"totalCollateralBase\":\"The total collateral of the user in the base currency used by the price feed\",\"totalDebtBase\":\"The total debt of the user in the base currency used by the price feed\"}},\"getUserConfiguration(address)\":{\"params\":{\"user\":\"The user address\"},\"returns\":{\"_0\":\"The configuration of the user\"}},\"getUserEMode(address)\":{\"params\":{\"user\":\"The address of the user\"},\"returns\":{\"_0\":\"The eMode id\"}},\"initReserve(address,address,address,address,address)\":{\"details\":\"Only callable by the PoolConfigurator contract\",\"params\":{\"aTokenAddress\":\"The address of the aToken that will be assigned to the reserve\",\"asset\":\"The address of the underlying asset of the reserve\",\"interestRateStrategyAddress\":\"The address of the interest rate strategy contract\",\"stableDebtAddress\":\"The address of the StableDebtToken that will be assigned to the reserve\",\"variableDebtAddress\":\"The address of the VariableDebtToken that will be assigned to the reserve\"}},\"liquidationCall(address,address,address,uint256,bool)\":{\"params\":{\"collateralAsset\":\"The address of the underlying asset used as collateral, to receive as result of the liquidation\",\"debtAsset\":\"The address of the underlying borrowed asset to be repaid with the liquidation\",\"debtToCover\":\"The debt amount of borrowed `asset` the liquidator wants to cover\",\"receiveAToken\":\"True if the liquidators wants to receive the collateral aTokens, `false` if he wants to receive the underlying collateral asset directly\",\"user\":\"The address of the borrower getting liquidated\"}},\"mintToTreasury(address[])\":{\"params\":{\"assets\":\"The list of reserves for which the minting needs to be executed\"}},\"mintUnbacked(address,uint256,address,uint16)\":{\"params\":{\"amount\":\"The amount to mint\",\"asset\":\"The address of the underlying asset to mint\",\"onBehalfOf\":\"The address that will receive the aTokens\",\"referralCode\":\"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\"}},\"rebalanceStableBorrowRate(address,address)\":{\"params\":{\"asset\":\"The address of the underlying asset borrowed\",\"user\":\"The address of the user to be rebalanced\"}},\"repay(address,uint256,uint256,address)\":{\"params\":{\"amount\":\"The amount to repay - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\",\"asset\":\"The address of the borrowed underlying asset previously borrowed\",\"interestRateMode\":\"The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\",\"onBehalfOf\":\"The address of the user who will get his debt reduced/removed. Should be the address of the user calling the function if he wants to reduce/remove his own debt, or the address of any other other borrower whose debt should be removed\"},\"returns\":{\"_0\":\"The final amount repaid\"}},\"repayWithATokens(address,uint256,uint256)\":{\"details\":\"Passing uint256.max as amount will clean up any residual aToken dust balance, if the user aToken balance is not enough to cover the whole debt\",\"params\":{\"amount\":\"The amount to repay - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\",\"asset\":\"The address of the borrowed underlying asset previously borrowed\",\"interestRateMode\":\"The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\"},\"returns\":{\"_0\":\"The final amount repaid\"}},\"repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32)\":{\"params\":{\"amount\":\"The amount to repay - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\",\"asset\":\"The address of the borrowed underlying asset previously borrowed\",\"deadline\":\"The deadline timestamp that the permit is valid\",\"interestRateMode\":\"The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\",\"onBehalfOf\":\"Address of the user who will get his debt reduced/removed. Should be the address of the user calling the function if he wants to reduce/remove his own debt, or the address of any other other borrower whose debt should be removed\",\"permitR\":\"The R parameter of ERC712 permit sig\",\"permitS\":\"The S parameter of ERC712 permit sig\",\"permitV\":\"The V parameter of ERC712 permit sig\"},\"returns\":{\"_0\":\"The final amount repaid\"}},\"rescueTokens(address,address,uint256)\":{\"params\":{\"amount\":\"The amount of token to transfer\",\"to\":\"The address of the recipient\",\"token\":\"The address of the token\"}},\"resetIsolationModeTotalDebt(address)\":{\"details\":\"It requires the given asset has zero debt ceiling\",\"params\":{\"asset\":\"The address of the underlying asset to reset the isolationModeTotalDebt\"}},\"setConfiguration(address,(uint256))\":{\"details\":\"Only callable by the PoolConfigurator contract\",\"params\":{\"asset\":\"The address of the underlying asset of the reserve\",\"configuration\":\"The new configuration bitmap\"}},\"setReserveInterestRateStrategyAddress(address,address)\":{\"details\":\"Only callable by the PoolConfigurator contract\",\"params\":{\"asset\":\"The address of the underlying asset of the reserve\",\"rateStrategyAddress\":\"The address of the interest rate strategy contract\"}},\"setUserEMode(uint8)\":{\"params\":{\"categoryId\":\"The id of the category\"}},\"setUserUseReserveAsCollateral(address,bool)\":{\"params\":{\"asset\":\"The address of the underlying asset supplied\",\"useAsCollateral\":\"True if the user wants to use the supply as collateral, false otherwise\"}},\"supply(address,uint256,address,uint16)\":{\"params\":{\"amount\":\"The amount to be supplied\",\"asset\":\"The address of the underlying asset to supply\",\"onBehalfOf\":\"The address that will receive the aTokens, same as msg.sender if the user wants to receive them on his own wallet, or a different address if the beneficiary of aTokens is a different wallet\",\"referralCode\":\"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\"}},\"supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32)\":{\"params\":{\"amount\":\"The amount to be supplied\",\"asset\":\"The address of the underlying asset to supply\",\"deadline\":\"The deadline timestamp that the permit is valid\",\"onBehalfOf\":\"The address that will receive the aTokens, same as msg.sender if the user wants to receive them on his own wallet, or a different address if the beneficiary of aTokens is a different wallet\",\"permitR\":\"The R parameter of ERC712 permit sig\",\"permitS\":\"The S parameter of ERC712 permit sig\",\"permitV\":\"The V parameter of ERC712 permit sig\",\"referralCode\":\"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\"}},\"swapBorrowRateMode(address,uint256)\":{\"params\":{\"asset\":\"The address of the underlying asset borrowed\",\"interestRateMode\":\"The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable\"}},\"updateBridgeProtocolFee(uint256)\":{\"params\":{\"bridgeProtocolFee\":\"The part of the premium sent to the protocol treasury\"}},\"updateFlashloanPremiums(uint128,uint128)\":{\"details\":\"The total premium is calculated on the total borrowed amountThe premium to protocol is calculated on the total premium, being a percentage of `flashLoanPremiumTotal`Only callable by the PoolConfigurator contract\",\"params\":{\"flashLoanPremiumToProtocol\":\"The part of the premium sent to the protocol treasury, expressed in bps\",\"flashLoanPremiumTotal\":\"The total premium, expressed in bps\"}},\"withdraw(address,uint256,address)\":{\"params\":{\"amount\":\"The underlying amount to be withdrawn - Send the value type(uint256).max in order to withdraw the whole aToken balance\",\"asset\":\"The address of the underlying asset to withdraw\",\"to\":\"The address that will receive the underlying, same as msg.sender if the user wants to receive it on his own wallet, or a different address if the beneficiary is a different wallet\"},\"returns\":{\"_0\":\"The final amount withdrawn\"}}},\"title\":\"IPool\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"ADDRESSES_PROVIDER()\":{\"notice\":\"Returns the PoolAddressesProvider connected to this contract\"},\"BRIDGE_PROTOCOL_FEE()\":{\"notice\":\"Returns the part of the bridge fees sent to protocol\"},\"FLASHLOAN_PREMIUM_TOTAL()\":{\"notice\":\"Returns the total fee on flash loans\"},\"FLASHLOAN_PREMIUM_TO_PROTOCOL()\":{\"notice\":\"Returns the part of the flashloan fees sent to protocol\"},\"MAX_NUMBER_RESERVES()\":{\"notice\":\"Returns the maximum number of reserves supported to be listed in this Pool\"},\"MAX_STABLE_RATE_BORROW_SIZE_PERCENT()\":{\"notice\":\"Returns the percentage of available liquidity that can be borrowed at once at stable rate\"},\"backUnbacked(address,uint256,uint256)\":{\"notice\":\"Back the current unbacked underlying with `amount` and pay `fee`.\"},\"borrow(address,uint256,uint256,uint16,address)\":{\"notice\":\"Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower already supplied enough collateral, or he was given enough allowance by a credit delegator on the corresponding debt token (StableDebtToken or VariableDebtToken) - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet and 100 stable/variable debt tokens, depending on the `interestRateMode`\"},\"configureEModeCategory(uint8,(uint16,uint16,uint16,address,string))\":{\"notice\":\"Configures a new category for the eMode.\"},\"deposit(address,uint256,address,uint16)\":{\"notice\":\"Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens. - E.g. User supplies 100 USDC and gets in return 100 aUSDC\"},\"dropReserve(address)\":{\"notice\":\"Drop a reserve\"},\"finalizeTransfer(address,address,address,uint256,uint256,uint256)\":{\"notice\":\"Validates and finalizes an aToken transfer\"},\"flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16)\":{\"notice\":\"Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned.\"},\"flashLoanSimple(address,address,uint256,bytes,uint16)\":{\"notice\":\"Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned.\"},\"getConfiguration(address)\":{\"notice\":\"Returns the configuration of the reserve\"},\"getEModeCategoryData(uint8)\":{\"notice\":\"Returns the data of an eMode category\"},\"getReserveAddressById(uint16)\":{\"notice\":\"Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct\"},\"getReserveData(address)\":{\"notice\":\"Returns the state and configuration of the reserve\"},\"getReserveNormalizedIncome(address)\":{\"notice\":\"Returns the normalized income of the reserve\"},\"getReserveNormalizedVariableDebt(address)\":{\"notice\":\"Returns the normalized variable debt per unit of asset\"},\"getReservesList()\":{\"notice\":\"Returns the list of the underlying assets of all the initialized reserves\"},\"getUserAccountData(address)\":{\"notice\":\"Returns the user account data across all the reserves\"},\"getUserConfiguration(address)\":{\"notice\":\"Returns the configuration of the user across all the reserves\"},\"getUserEMode(address)\":{\"notice\":\"Returns the eMode the user is using\"},\"initReserve(address,address,address,address,address)\":{\"notice\":\"Initializes a reserve, activating it, assigning an aToken and debt tokens and an interest rate strategy\"},\"liquidationCall(address,address,address,uint256,bool)\":{\"notice\":\"Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1 - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives a proportionally amount of the `collateralAsset` plus a bonus to cover market risk\"},\"mintToTreasury(address[])\":{\"notice\":\"Mints the assets accrued through the reserve factor to the treasury in the form of aTokens\"},\"mintUnbacked(address,uint256,address,uint16)\":{\"notice\":\"Mints an `amount` of aTokens to the `onBehalfOf`\"},\"rebalanceStableBorrowRate(address,address)\":{\"notice\":\"Rebalances the stable interest rate of a user to the current stable rate defined on the reserve. - Users can be rebalanced if the following conditions are satisfied: 1. Usage ratio is above 95% 2. the current supply APY is below REBALANCE_UP_THRESHOLD * maxVariableBorrowRate, which means that too much has been borrowed at a stable rate and suppliers are not earning enough\"},\"repay(address,uint256,uint256,address)\":{\"notice\":\"Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned - E.g. User repays 100 USDC, burning 100 variable/stable debt tokens of the `onBehalfOf` address\"},\"repayWithATokens(address,uint256,uint256)\":{\"notice\":\"Repays a borrowed `amount` on a specific reserve using the reserve aTokens, burning the equivalent debt tokens - E.g. User repays 100 USDC using 100 aUSDC, burning 100 variable/stable debt tokens\"},\"repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32)\":{\"notice\":\"Repay with transfer approval of asset to be repaid done via permit function see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\"},\"rescueTokens(address,address,uint256)\":{\"notice\":\"Rescue and transfer tokens locked in this contract\"},\"resetIsolationModeTotalDebt(address)\":{\"notice\":\"Resets the isolation mode total debt of the given asset to zero\"},\"setConfiguration(address,(uint256))\":{\"notice\":\"Sets the configuration bitmap of the reserve as a whole\"},\"setReserveInterestRateStrategyAddress(address,address)\":{\"notice\":\"Updates the address of the interest rate strategy contract\"},\"setUserEMode(uint8)\":{\"notice\":\"Allows a user to use the protocol in eMode\"},\"setUserUseReserveAsCollateral(address,bool)\":{\"notice\":\"Allows suppliers to enable/disable a specific supplied asset as collateral\"},\"supply(address,uint256,address,uint16)\":{\"notice\":\"Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens. - E.g. User supplies 100 USDC and gets in return 100 aUSDC\"},\"supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32)\":{\"notice\":\"Supply with transfer approval of asset to be supplied done via permit function see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\"},\"swapBorrowRateMode(address,uint256)\":{\"notice\":\"Allows a borrower to swap his debt between stable and variable mode, or vice versa\"},\"updateBridgeProtocolFee(uint256)\":{\"notice\":\"Updates the protocol fee on the bridging\"},\"updateFlashloanPremiums(uint128,uint128)\":{\"notice\":\"Updates flash loan premiums. Flash loan premium consists of two parts: - A part is sent to aToken holders as extra, one time accumulated interest - A part is collected by the protocol treasury\"},\"withdraw(address,uint256,address)\":{\"notice\":\"Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC\"}},\"notice\":\"Defines the basic interface for an Aave Pool.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IPool.sol\":\"IPool\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IPool.sol\":{\"keccak256\":\"0x91fc8cafd9f6fda5046620662d57c5ab5f724375be08903114576216a4980629\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://87c472da79a61750b3cd010532de6092c6be145591f27ca5436850e9985cf3ae\",\"dweb:/ipfs/QmSVysBKZUepgucokF4Av7i3PJQSj2RSpXKKfYaAcYkR6d\"]},\"contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0xf37b9fdb389d45783acfc16664c06f28af953d4a409d1059bdf10b917d41fd4a\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://bb3c42a324ea0adf0095b1e3ea05df7edd70816cfd472e79a29a4fd5b196fa7b\",\"dweb:/ipfs/QmcSYcH5NZc96EHqAp7sY5Gxvo1229gLnihyBfqme5EdGj\"]},\"contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0xf484b9e835d41d75d2ad32ea241e1cc859f278df49a8c4ceb2c0299036e577be\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://eafa12cff7ec168fd0e868ffee3931cc128c57bab003efbdb30e67e73d477fe3\",\"dweb:/ipfs/QmU6nessQ7F1JLRbeYzZzgkh4E5mRdVh3YqLNN5nxGuUvb\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"ADDRESSES_PROVIDER()": {
|
|
"notice": "Returns the PoolAddressesProvider connected to this contract"
|
|
},
|
|
"BRIDGE_PROTOCOL_FEE()": {
|
|
"notice": "Returns the part of the bridge fees sent to protocol"
|
|
},
|
|
"FLASHLOAN_PREMIUM_TOTAL()": {
|
|
"notice": "Returns the total fee on flash loans"
|
|
},
|
|
"FLASHLOAN_PREMIUM_TO_PROTOCOL()": {
|
|
"notice": "Returns the part of the flashloan fees sent to protocol"
|
|
},
|
|
"MAX_NUMBER_RESERVES()": {
|
|
"notice": "Returns the maximum number of reserves supported to be listed in this Pool"
|
|
},
|
|
"MAX_STABLE_RATE_BORROW_SIZE_PERCENT()": {
|
|
"notice": "Returns the percentage of available liquidity that can be borrowed at once at stable rate"
|
|
},
|
|
"backUnbacked(address,uint256,uint256)": {
|
|
"notice": "Back the current unbacked underlying with `amount` and pay `fee`."
|
|
},
|
|
"borrow(address,uint256,uint256,uint16,address)": {
|
|
"notice": "Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower already supplied enough collateral, or he was given enough allowance by a credit delegator on the corresponding debt token (StableDebtToken or VariableDebtToken) - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet and 100 stable/variable debt tokens, depending on the `interestRateMode`"
|
|
},
|
|
"configureEModeCategory(uint8,(uint16,uint16,uint16,address,string))": {
|
|
"notice": "Configures a new category for the eMode."
|
|
},
|
|
"deposit(address,uint256,address,uint16)": {
|
|
"notice": "Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens. - E.g. User supplies 100 USDC and gets in return 100 aUSDC"
|
|
},
|
|
"dropReserve(address)": {
|
|
"notice": "Drop a reserve"
|
|
},
|
|
"finalizeTransfer(address,address,address,uint256,uint256,uint256)": {
|
|
"notice": "Validates and finalizes an aToken transfer"
|
|
},
|
|
"flashLoan(address,address[],uint256[],uint256[],address,bytes,uint16)": {
|
|
"notice": "Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned."
|
|
},
|
|
"flashLoanSimple(address,address,uint256,bytes,uint16)": {
|
|
"notice": "Allows smartcontracts to access the liquidity of the pool within one transaction, as long as the amount taken plus a fee is returned."
|
|
},
|
|
"getConfiguration(address)": {
|
|
"notice": "Returns the configuration of the reserve"
|
|
},
|
|
"getEModeCategoryData(uint8)": {
|
|
"notice": "Returns the data of an eMode category"
|
|
},
|
|
"getReserveAddressById(uint16)": {
|
|
"notice": "Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct"
|
|
},
|
|
"getReserveData(address)": {
|
|
"notice": "Returns the state and configuration of the reserve"
|
|
},
|
|
"getReserveNormalizedIncome(address)": {
|
|
"notice": "Returns the normalized income of the reserve"
|
|
},
|
|
"getReserveNormalizedVariableDebt(address)": {
|
|
"notice": "Returns the normalized variable debt per unit of asset"
|
|
},
|
|
"getReservesList()": {
|
|
"notice": "Returns the list of the underlying assets of all the initialized reserves"
|
|
},
|
|
"getUserAccountData(address)": {
|
|
"notice": "Returns the user account data across all the reserves"
|
|
},
|
|
"getUserConfiguration(address)": {
|
|
"notice": "Returns the configuration of the user across all the reserves"
|
|
},
|
|
"getUserEMode(address)": {
|
|
"notice": "Returns the eMode the user is using"
|
|
},
|
|
"initReserve(address,address,address,address,address)": {
|
|
"notice": "Initializes a reserve, activating it, assigning an aToken and debt tokens and an interest rate strategy"
|
|
},
|
|
"liquidationCall(address,address,address,uint256,bool)": {
|
|
"notice": "Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1 - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives a proportionally amount of the `collateralAsset` plus a bonus to cover market risk"
|
|
},
|
|
"mintToTreasury(address[])": {
|
|
"notice": "Mints the assets accrued through the reserve factor to the treasury in the form of aTokens"
|
|
},
|
|
"mintUnbacked(address,uint256,address,uint16)": {
|
|
"notice": "Mints an `amount` of aTokens to the `onBehalfOf`"
|
|
},
|
|
"rebalanceStableBorrowRate(address,address)": {
|
|
"notice": "Rebalances the stable interest rate of a user to the current stable rate defined on the reserve. - Users can be rebalanced if the following conditions are satisfied: 1. Usage ratio is above 95% 2. the current supply APY is below REBALANCE_UP_THRESHOLD * maxVariableBorrowRate, which means that too much has been borrowed at a stable rate and suppliers are not earning enough"
|
|
},
|
|
"repay(address,uint256,uint256,address)": {
|
|
"notice": "Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned - E.g. User repays 100 USDC, burning 100 variable/stable debt tokens of the `onBehalfOf` address"
|
|
},
|
|
"repayWithATokens(address,uint256,uint256)": {
|
|
"notice": "Repays a borrowed `amount` on a specific reserve using the reserve aTokens, burning the equivalent debt tokens - E.g. User repays 100 USDC using 100 aUSDC, burning 100 variable/stable debt tokens"
|
|
},
|
|
"repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32)": {
|
|
"notice": "Repay with transfer approval of asset to be repaid done via permit function see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713"
|
|
},
|
|
"rescueTokens(address,address,uint256)": {
|
|
"notice": "Rescue and transfer tokens locked in this contract"
|
|
},
|
|
"resetIsolationModeTotalDebt(address)": {
|
|
"notice": "Resets the isolation mode total debt of the given asset to zero"
|
|
},
|
|
"setConfiguration(address,(uint256))": {
|
|
"notice": "Sets the configuration bitmap of the reserve as a whole"
|
|
},
|
|
"setReserveInterestRateStrategyAddress(address,address)": {
|
|
"notice": "Updates the address of the interest rate strategy contract"
|
|
},
|
|
"setUserEMode(uint8)": {
|
|
"notice": "Allows a user to use the protocol in eMode"
|
|
},
|
|
"setUserUseReserveAsCollateral(address,bool)": {
|
|
"notice": "Allows suppliers to enable/disable a specific supplied asset as collateral"
|
|
},
|
|
"supply(address,uint256,address,uint16)": {
|
|
"notice": "Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens. - E.g. User supplies 100 USDC and gets in return 100 aUSDC"
|
|
},
|
|
"supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32)": {
|
|
"notice": "Supply with transfer approval of asset to be supplied done via permit function see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713"
|
|
},
|
|
"swapBorrowRateMode(address,uint256)": {
|
|
"notice": "Allows a borrower to swap his debt between stable and variable mode, or vice versa"
|
|
},
|
|
"updateBridgeProtocolFee(uint256)": {
|
|
"notice": "Updates the protocol fee on the bridging"
|
|
},
|
|
"updateFlashloanPremiums(uint128,uint128)": {
|
|
"notice": "Updates flash loan premiums. Flash loan premium consists of two parts: - A part is sent to aToken holders as extra, one time accumulated interest - A part is collected by the protocol treasury"
|
|
},
|
|
"withdraw(address,uint256,address)": {
|
|
"notice": "Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC"
|
|
}
|
|
},
|
|
"notice": "Defines the basic interface for an Aave Pool.",
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"contracts/interfaces/IPoolAddressesProvider.sol": {
|
|
"IPoolAddressesProvider": {
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "ACLAdminUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "ACLManagerUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "bytes32",
|
|
"name": "id",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "AddressSet",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "bytes32",
|
|
"name": "id",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "proxyAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "address",
|
|
"name": "oldImplementationAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newImplementationAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "AddressSetAsProxy",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "string",
|
|
"name": "oldMarketId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "string",
|
|
"name": "newMarketId",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "MarketIdSet",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "PoolConfiguratorUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "PoolDataProviderUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "PoolUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "PriceOracleSentinelUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "oldAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "PriceOracleUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "bytes32",
|
|
"name": "id",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "proxyAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "implementationAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "ProxyCreated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getACLAdmin",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getACLManager",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "id",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "getAddress",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getMarketId",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getPool",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getPoolConfigurator",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getPoolDataProvider",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getPriceOracle",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getPriceOracleSentinel",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newAclAdmin",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setACLAdmin",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newAclManager",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setACLManager",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "id",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "newAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setAddress",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "id",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "newImplementationAddress",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setAddressAsProxy",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "newMarketId",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "setMarketId",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newPoolConfiguratorImpl",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setPoolConfiguratorImpl",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newDataProvider",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setPoolDataProvider",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newPoolImpl",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setPoolImpl",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newPriceOracle",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setPriceOracle",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "newPriceOracleSentinel",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setPriceOracleSentinel",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"author": "Aave",
|
|
"events": {
|
|
"ACLAdminUpdated(address,address)": {
|
|
"details": "Emitted when the ACL admin is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the ACLAdmin",
|
|
"oldAddress": "The old address of the ACLAdmin"
|
|
}
|
|
},
|
|
"ACLManagerUpdated(address,address)": {
|
|
"details": "Emitted when the ACL manager is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the ACLManager",
|
|
"oldAddress": "The old address of the ACLManager"
|
|
}
|
|
},
|
|
"AddressSet(bytes32,address,address)": {
|
|
"details": "Emitted when a new non-proxied contract address is registered.",
|
|
"params": {
|
|
"id": "The identifier of the contract",
|
|
"newAddress": "The address of the new contract",
|
|
"oldAddress": "The address of the old contract"
|
|
}
|
|
},
|
|
"AddressSetAsProxy(bytes32,address,address,address)": {
|
|
"details": "Emitted when the implementation of the proxy registered with id is updated",
|
|
"params": {
|
|
"id": "The identifier of the contract",
|
|
"newImplementationAddress": "The address of the new implementation contract",
|
|
"oldImplementationAddress": "The address of the old implementation contract",
|
|
"proxyAddress": "The address of the proxy contract"
|
|
}
|
|
},
|
|
"MarketIdSet(string,string)": {
|
|
"details": "Emitted when the market identifier is updated.",
|
|
"params": {
|
|
"newMarketId": "The new id of the market",
|
|
"oldMarketId": "The old id of the market"
|
|
}
|
|
},
|
|
"PoolConfiguratorUpdated(address,address)": {
|
|
"details": "Emitted when the pool configurator is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the PoolConfigurator",
|
|
"oldAddress": "The old address of the PoolConfigurator"
|
|
}
|
|
},
|
|
"PoolDataProviderUpdated(address,address)": {
|
|
"details": "Emitted when the pool data provider is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the PoolDataProvider",
|
|
"oldAddress": "The old address of the PoolDataProvider"
|
|
}
|
|
},
|
|
"PoolUpdated(address,address)": {
|
|
"details": "Emitted when the pool is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the Pool",
|
|
"oldAddress": "The old address of the Pool"
|
|
}
|
|
},
|
|
"PriceOracleSentinelUpdated(address,address)": {
|
|
"details": "Emitted when the price oracle sentinel is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the PriceOracleSentinel",
|
|
"oldAddress": "The old address of the PriceOracleSentinel"
|
|
}
|
|
},
|
|
"PriceOracleUpdated(address,address)": {
|
|
"details": "Emitted when the price oracle is updated.",
|
|
"params": {
|
|
"newAddress": "The new address of the PriceOracle",
|
|
"oldAddress": "The old address of the PriceOracle"
|
|
}
|
|
},
|
|
"ProxyCreated(bytes32,address,address)": {
|
|
"details": "Emitted when a new proxy is created.",
|
|
"params": {
|
|
"id": "The identifier of the proxy",
|
|
"implementationAddress": "The address of the implementation contract",
|
|
"proxyAddress": "The address of the created proxy contract"
|
|
}
|
|
}
|
|
},
|
|
"kind": "dev",
|
|
"methods": {
|
|
"getACLAdmin()": {
|
|
"returns": {
|
|
"_0": "The address of the ACL admin"
|
|
}
|
|
},
|
|
"getACLManager()": {
|
|
"returns": {
|
|
"_0": "The address of the ACLManager"
|
|
}
|
|
},
|
|
"getAddress(bytes32)": {
|
|
"details": "The returned address might be an EOA or a contract, potentially proxiedIt returns ZERO if there is no registered address with the given id",
|
|
"params": {
|
|
"id": "The id"
|
|
},
|
|
"returns": {
|
|
"_0": "The address of the registered for the specified id"
|
|
}
|
|
},
|
|
"getMarketId()": {
|
|
"returns": {
|
|
"_0": "The market id"
|
|
}
|
|
},
|
|
"getPool()": {
|
|
"returns": {
|
|
"_0": "The Pool proxy address"
|
|
}
|
|
},
|
|
"getPoolConfigurator()": {
|
|
"returns": {
|
|
"_0": "The PoolConfigurator proxy address"
|
|
}
|
|
},
|
|
"getPoolDataProvider()": {
|
|
"returns": {
|
|
"_0": "The address of the DataProvider"
|
|
}
|
|
},
|
|
"getPriceOracle()": {
|
|
"returns": {
|
|
"_0": "The address of the PriceOracle"
|
|
}
|
|
},
|
|
"getPriceOracleSentinel()": {
|
|
"returns": {
|
|
"_0": "The address of the PriceOracleSentinel"
|
|
}
|
|
},
|
|
"setACLAdmin(address)": {
|
|
"params": {
|
|
"newAclAdmin": "The address of the new ACL admin"
|
|
}
|
|
},
|
|
"setACLManager(address)": {
|
|
"params": {
|
|
"newAclManager": "The address of the new ACLManager"
|
|
}
|
|
},
|
|
"setAddress(bytes32,address)": {
|
|
"details": "IMPORTANT Use this function carefully, as it will do a hard replacement",
|
|
"params": {
|
|
"id": "The id",
|
|
"newAddress": "The address to set"
|
|
}
|
|
},
|
|
"setAddressAsProxy(bytes32,address)": {
|
|
"details": "IMPORTANT Use this function carefully, only for ids that don't have an explicit setter function, in order to avoid unexpected consequences",
|
|
"params": {
|
|
"id": "The id",
|
|
"newImplementationAddress": "The address of the new implementation"
|
|
}
|
|
},
|
|
"setMarketId(string)": {
|
|
"details": "This can be used to create an onchain registry of PoolAddressesProviders to identify and validate multiple Aave markets.",
|
|
"params": {
|
|
"newMarketId": "The market id"
|
|
}
|
|
},
|
|
"setPoolConfiguratorImpl(address)": {
|
|
"params": {
|
|
"newPoolConfiguratorImpl": "The new PoolConfigurator implementation"
|
|
}
|
|
},
|
|
"setPoolDataProvider(address)": {
|
|
"params": {
|
|
"newDataProvider": "The address of the new DataProvider"
|
|
}
|
|
},
|
|
"setPoolImpl(address)": {
|
|
"params": {
|
|
"newPoolImpl": "The new Pool implementation"
|
|
}
|
|
},
|
|
"setPriceOracle(address)": {
|
|
"params": {
|
|
"newPriceOracle": "The address of the new PriceOracle"
|
|
}
|
|
},
|
|
"setPriceOracleSentinel(address)": {
|
|
"params": {
|
|
"newPriceOracleSentinel": "The address of the new PriceOracleSentinel"
|
|
}
|
|
}
|
|
},
|
|
"title": "IPoolAddressesProvider",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"getACLAdmin()": "0e67178c",
|
|
"getACLManager()": "707cd716",
|
|
"getAddress(bytes32)": "21f8a721",
|
|
"getMarketId()": "568ef470",
|
|
"getPool()": "026b1d5f",
|
|
"getPoolConfigurator()": "631adfca",
|
|
"getPoolDataProvider()": "e860accb",
|
|
"getPriceOracle()": "fca513a8",
|
|
"getPriceOracleSentinel()": "5eb88d3d",
|
|
"setACLAdmin(address)": "76d84ffc",
|
|
"setACLManager(address)": "ed301ca9",
|
|
"setAddress(bytes32,address)": "ca446dd9",
|
|
"setAddressAsProxy(bytes32,address)": "5dcc528c",
|
|
"setMarketId(string)": "f67b1847",
|
|
"setPoolConfiguratorImpl(address)": "e4ca28b7",
|
|
"setPoolDataProvider(address)": "e44e9ed1",
|
|
"setPoolImpl(address)": "a1564406",
|
|
"setPriceOracle(address)": "530e784f",
|
|
"setPriceOracleSentinel(address)": "74944cec"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"ACLAdminUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"ACLManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"AddressSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldImplementationAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newImplementationAddress\",\"type\":\"address\"}],\"name\":\"AddressSetAsProxy\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"oldMarketId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"newMarketId\",\"type\":\"string\"}],\"name\":\"MarketIdSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"PoolConfiguratorUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"PoolDataProviderUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"PoolUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"PriceOracleSentinelUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"PriceOracleUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementationAddress\",\"type\":\"address\"}],\"name\":\"ProxyCreated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getACLAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getACLManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMarketId\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolConfigurator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolDataProvider\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPriceOracle\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPriceOracleSentinel\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAclAdmin\",\"type\":\"address\"}],\"name\":\"setACLAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAclManager\",\"type\":\"address\"}],\"name\":\"setACLManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"setAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"newImplementationAddress\",\"type\":\"address\"}],\"name\":\"setAddressAsProxy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"newMarketId\",\"type\":\"string\"}],\"name\":\"setMarketId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPoolConfiguratorImpl\",\"type\":\"address\"}],\"name\":\"setPoolConfiguratorImpl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDataProvider\",\"type\":\"address\"}],\"name\":\"setPoolDataProvider\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPoolImpl\",\"type\":\"address\"}],\"name\":\"setPoolImpl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPriceOracle\",\"type\":\"address\"}],\"name\":\"setPriceOracle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPriceOracleSentinel\",\"type\":\"address\"}],\"name\":\"setPriceOracleSentinel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Aave\",\"events\":{\"ACLAdminUpdated(address,address)\":{\"details\":\"Emitted when the ACL admin is updated.\",\"params\":{\"newAddress\":\"The new address of the ACLAdmin\",\"oldAddress\":\"The old address of the ACLAdmin\"}},\"ACLManagerUpdated(address,address)\":{\"details\":\"Emitted when the ACL manager is updated.\",\"params\":{\"newAddress\":\"The new address of the ACLManager\",\"oldAddress\":\"The old address of the ACLManager\"}},\"AddressSet(bytes32,address,address)\":{\"details\":\"Emitted when a new non-proxied contract address is registered.\",\"params\":{\"id\":\"The identifier of the contract\",\"newAddress\":\"The address of the new contract\",\"oldAddress\":\"The address of the old contract\"}},\"AddressSetAsProxy(bytes32,address,address,address)\":{\"details\":\"Emitted when the implementation of the proxy registered with id is updated\",\"params\":{\"id\":\"The identifier of the contract\",\"newImplementationAddress\":\"The address of the new implementation contract\",\"oldImplementationAddress\":\"The address of the old implementation contract\",\"proxyAddress\":\"The address of the proxy contract\"}},\"MarketIdSet(string,string)\":{\"details\":\"Emitted when the market identifier is updated.\",\"params\":{\"newMarketId\":\"The new id of the market\",\"oldMarketId\":\"The old id of the market\"}},\"PoolConfiguratorUpdated(address,address)\":{\"details\":\"Emitted when the pool configurator is updated.\",\"params\":{\"newAddress\":\"The new address of the PoolConfigurator\",\"oldAddress\":\"The old address of the PoolConfigurator\"}},\"PoolDataProviderUpdated(address,address)\":{\"details\":\"Emitted when the pool data provider is updated.\",\"params\":{\"newAddress\":\"The new address of the PoolDataProvider\",\"oldAddress\":\"The old address of the PoolDataProvider\"}},\"PoolUpdated(address,address)\":{\"details\":\"Emitted when the pool is updated.\",\"params\":{\"newAddress\":\"The new address of the Pool\",\"oldAddress\":\"The old address of the Pool\"}},\"PriceOracleSentinelUpdated(address,address)\":{\"details\":\"Emitted when the price oracle sentinel is updated.\",\"params\":{\"newAddress\":\"The new address of the PriceOracleSentinel\",\"oldAddress\":\"The old address of the PriceOracleSentinel\"}},\"PriceOracleUpdated(address,address)\":{\"details\":\"Emitted when the price oracle is updated.\",\"params\":{\"newAddress\":\"The new address of the PriceOracle\",\"oldAddress\":\"The old address of the PriceOracle\"}},\"ProxyCreated(bytes32,address,address)\":{\"details\":\"Emitted when a new proxy is created.\",\"params\":{\"id\":\"The identifier of the proxy\",\"implementationAddress\":\"The address of the implementation contract\",\"proxyAddress\":\"The address of the created proxy contract\"}}},\"kind\":\"dev\",\"methods\":{\"getACLAdmin()\":{\"returns\":{\"_0\":\"The address of the ACL admin\"}},\"getACLManager()\":{\"returns\":{\"_0\":\"The address of the ACLManager\"}},\"getAddress(bytes32)\":{\"details\":\"The returned address might be an EOA or a contract, potentially proxiedIt returns ZERO if there is no registered address with the given id\",\"params\":{\"id\":\"The id\"},\"returns\":{\"_0\":\"The address of the registered for the specified id\"}},\"getMarketId()\":{\"returns\":{\"_0\":\"The market id\"}},\"getPool()\":{\"returns\":{\"_0\":\"The Pool proxy address\"}},\"getPoolConfigurator()\":{\"returns\":{\"_0\":\"The PoolConfigurator proxy address\"}},\"getPoolDataProvider()\":{\"returns\":{\"_0\":\"The address of the DataProvider\"}},\"getPriceOracle()\":{\"returns\":{\"_0\":\"The address of the PriceOracle\"}},\"getPriceOracleSentinel()\":{\"returns\":{\"_0\":\"The address of the PriceOracleSentinel\"}},\"setACLAdmin(address)\":{\"params\":{\"newAclAdmin\":\"The address of the new ACL admin\"}},\"setACLManager(address)\":{\"params\":{\"newAclManager\":\"The address of the new ACLManager\"}},\"setAddress(bytes32,address)\":{\"details\":\"IMPORTANT Use this function carefully, as it will do a hard replacement\",\"params\":{\"id\":\"The id\",\"newAddress\":\"The address to set\"}},\"setAddressAsProxy(bytes32,address)\":{\"details\":\"IMPORTANT Use this function carefully, only for ids that don't have an explicit setter function, in order to avoid unexpected consequences\",\"params\":{\"id\":\"The id\",\"newImplementationAddress\":\"The address of the new implementation\"}},\"setMarketId(string)\":{\"details\":\"This can be used to create an onchain registry of PoolAddressesProviders to identify and validate multiple Aave markets.\",\"params\":{\"newMarketId\":\"The market id\"}},\"setPoolConfiguratorImpl(address)\":{\"params\":{\"newPoolConfiguratorImpl\":\"The new PoolConfigurator implementation\"}},\"setPoolDataProvider(address)\":{\"params\":{\"newDataProvider\":\"The address of the new DataProvider\"}},\"setPoolImpl(address)\":{\"params\":{\"newPoolImpl\":\"The new Pool implementation\"}},\"setPriceOracle(address)\":{\"params\":{\"newPriceOracle\":\"The address of the new PriceOracle\"}},\"setPriceOracleSentinel(address)\":{\"params\":{\"newPriceOracleSentinel\":\"The address of the new PriceOracleSentinel\"}}},\"title\":\"IPoolAddressesProvider\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getACLAdmin()\":{\"notice\":\"Returns the address of the ACL admin.\"},\"getACLManager()\":{\"notice\":\"Returns the address of the ACL manager.\"},\"getAddress(bytes32)\":{\"notice\":\"Returns an address by its identifier.\"},\"getMarketId()\":{\"notice\":\"Returns the id of the Aave market to which this contract points to.\"},\"getPool()\":{\"notice\":\"Returns the address of the Pool proxy.\"},\"getPoolConfigurator()\":{\"notice\":\"Returns the address of the PoolConfigurator proxy.\"},\"getPoolDataProvider()\":{\"notice\":\"Returns the address of the data provider.\"},\"getPriceOracle()\":{\"notice\":\"Returns the address of the price oracle.\"},\"getPriceOracleSentinel()\":{\"notice\":\"Returns the address of the price oracle sentinel.\"},\"setACLAdmin(address)\":{\"notice\":\"Updates the address of the ACL admin.\"},\"setACLManager(address)\":{\"notice\":\"Updates the address of the ACL manager.\"},\"setAddress(bytes32,address)\":{\"notice\":\"Sets an address for an id replacing the address saved in the addresses map.\"},\"setAddressAsProxy(bytes32,address)\":{\"notice\":\"General function to update the implementation of a proxy registered with certain `id`. If there is no proxy registered, it will instantiate one and set as implementation the `newImplementationAddress`.\"},\"setMarketId(string)\":{\"notice\":\"Associates an id with a specific PoolAddressesProvider.\"},\"setPoolConfiguratorImpl(address)\":{\"notice\":\"Updates the implementation of the PoolConfigurator, or creates a proxy setting the new `PoolConfigurator` implementation when the function is called for the first time.\"},\"setPoolDataProvider(address)\":{\"notice\":\"Updates the address of the data provider.\"},\"setPoolImpl(address)\":{\"notice\":\"Updates the implementation of the Pool, or creates a proxy setting the new `pool` implementation when the function is called for the first time.\"},\"setPriceOracle(address)\":{\"notice\":\"Updates the address of the price oracle.\"},\"setPriceOracleSentinel(address)\":{\"notice\":\"Updates the address of the price oracle sentinel.\"}},\"notice\":\"Defines the basic interface for a Pool Addresses Provider.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IPoolAddressesProvider.sol\":\"IPoolAddressesProvider\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0xf37b9fdb389d45783acfc16664c06f28af953d4a409d1059bdf10b917d41fd4a\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://bb3c42a324ea0adf0095b1e3ea05df7edd70816cfd472e79a29a4fd5b196fa7b\",\"dweb:/ipfs/QmcSYcH5NZc96EHqAp7sY5Gxvo1229gLnihyBfqme5EdGj\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"getACLAdmin()": {
|
|
"notice": "Returns the address of the ACL admin."
|
|
},
|
|
"getACLManager()": {
|
|
"notice": "Returns the address of the ACL manager."
|
|
},
|
|
"getAddress(bytes32)": {
|
|
"notice": "Returns an address by its identifier."
|
|
},
|
|
"getMarketId()": {
|
|
"notice": "Returns the id of the Aave market to which this contract points to."
|
|
},
|
|
"getPool()": {
|
|
"notice": "Returns the address of the Pool proxy."
|
|
},
|
|
"getPoolConfigurator()": {
|
|
"notice": "Returns the address of the PoolConfigurator proxy."
|
|
},
|
|
"getPoolDataProvider()": {
|
|
"notice": "Returns the address of the data provider."
|
|
},
|
|
"getPriceOracle()": {
|
|
"notice": "Returns the address of the price oracle."
|
|
},
|
|
"getPriceOracleSentinel()": {
|
|
"notice": "Returns the address of the price oracle sentinel."
|
|
},
|
|
"setACLAdmin(address)": {
|
|
"notice": "Updates the address of the ACL admin."
|
|
},
|
|
"setACLManager(address)": {
|
|
"notice": "Updates the address of the ACL manager."
|
|
},
|
|
"setAddress(bytes32,address)": {
|
|
"notice": "Sets an address for an id replacing the address saved in the addresses map."
|
|
},
|
|
"setAddressAsProxy(bytes32,address)": {
|
|
"notice": "General function to update the implementation of a proxy registered with certain `id`. If there is no proxy registered, it will instantiate one and set as implementation the `newImplementationAddress`."
|
|
},
|
|
"setMarketId(string)": {
|
|
"notice": "Associates an id with a specific PoolAddressesProvider."
|
|
},
|
|
"setPoolConfiguratorImpl(address)": {
|
|
"notice": "Updates the implementation of the PoolConfigurator, or creates a proxy setting the new `PoolConfigurator` implementation when the function is called for the first time."
|
|
},
|
|
"setPoolDataProvider(address)": {
|
|
"notice": "Updates the address of the data provider."
|
|
},
|
|
"setPoolImpl(address)": {
|
|
"notice": "Updates the implementation of the Pool, or creates a proxy setting the new `pool` implementation when the function is called for the first time."
|
|
},
|
|
"setPriceOracle(address)": {
|
|
"notice": "Updates the address of the price oracle."
|
|
},
|
|
"setPriceOracleSentinel(address)": {
|
|
"notice": "Updates the address of the price oracle sentinel."
|
|
}
|
|
},
|
|
"notice": "Defines the basic interface for a Pool Addresses Provider.",
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"contracts/protocol/libraries/types/DataTypes.sol": {
|
|
"DataTypes": {
|
|
"abi": [],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": " /* \"contracts/protocol/libraries/types/DataTypes.sol\":65:7632 library DataTypes {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/protocol/libraries/types/DataTypes.sol\":65:7632 library DataTypes {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa26469706673582212205cf4522f3a43ae7f8c838b4e87eb5d29cb88a6ca9310e743831ea2578b79050b64736f6c634300081a0033\n}\n",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea26469706673582212205cf4522f3a43ae7f8c838b4e87eb5d29cb88a6ca9310e743831ea2578b79050b64736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x55 PUSH1 0x4B PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH0 BYTE PUSH1 0x73 EQ PUSH1 0x3F JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST ADDRESS PUSH0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 TLOAD DELEGATECALL MSTORE 0x2F GASPRICE NUMBER 0xAE PUSH32 0x8C838B4E87EB5D29CB88A6CA9310E743831EA2578B79050B64736F6C63430008 BYTE STOP CALLER ",
|
|
"sourceMap": "65:7567:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea26469706673582212205cf4522f3a43ae7f8c838b4e87eb5d29cb88a6ca9310e743831ea2578b79050b64736f6c634300081a0033",
|
|
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 TLOAD DELEGATECALL MSTORE 0x2F GASPRICE NUMBER 0xAE PUSH32 0x8C838B4E87EB5D29CB88A6CA9310E743831EA2578B79050B64736F6C63430008 BYTE STOP CALLER ",
|
|
"sourceMap": "65:7567:3:-:0;;;;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "17000",
|
|
"executionCost": "92",
|
|
"totalCost": "17092"
|
|
}
|
|
},
|
|
"legacyAssembly": {
|
|
".code": [
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH #[$]",
|
|
"source": 3,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH [$]",
|
|
"source": 3,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "B"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "CODECOPY",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "MLOAD",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "BYTE",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "EQ",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH [tag]",
|
|
"source": 3,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "JUMPI",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "MSTORE",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "4"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "MSTORE",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "24"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "REVERT",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "tag",
|
|
"source": 3,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "JUMPDEST",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "ADDRESS",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "MSTORE",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "MSTORE8",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP3",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP2",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "RETURN",
|
|
"source": 3
|
|
}
|
|
],
|
|
".data": {
|
|
"0": {
|
|
".auxdata": "a26469706673582212205cf4522f3a43ae7f8c838b4e87eb5d29cb88a6ca9310e743831ea2578b79050b64736f6c634300081a0033",
|
|
".code": [
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSHDEPLOYADDRESS",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "ADDRESS",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "EQ",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "MSTORE",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "PUSH",
|
|
"source": 3,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "DUP1",
|
|
"source": 3
|
|
},
|
|
{
|
|
"begin": 65,
|
|
"end": 7632,
|
|
"name": "REVERT",
|
|
"source": 3
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sourceList": [
|
|
"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
|
|
"contracts/interfaces/IPool.sol",
|
|
"contracts/interfaces/IPoolAddressesProvider.sol",
|
|
"contracts/protocol/libraries/types/DataTypes.sol",
|
|
"#utility.yul"
|
|
]
|
|
},
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/protocol/libraries/types/DataTypes.sol\":\"DataTypes\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0xf484b9e835d41d75d2ad32ea241e1cc859f278df49a8c4ceb2c0299036e577be\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://eafa12cff7ec168fd0e868ffee3931cc128c57bab003efbdb30e67e73d477fe3\",\"dweb:/ipfs/QmU6nessQ7F1JLRbeYzZzgkh4E5mRdVh3YqLNN5nxGuUvb\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
|
|
"exportedSymbols": {
|
|
"IFlashLoanSimpleReceiver": [
|
|
35
|
|
],
|
|
"IPool": [
|
|
674
|
|
],
|
|
"IPoolAddressesProvider": [
|
|
883
|
|
]
|
|
},
|
|
"id": 36,
|
|
"license": "AGPL-3.0",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "38:23:0"
|
|
},
|
|
{
|
|
"absolutePath": "contracts/interfaces/IPoolAddressesProvider.sol",
|
|
"file": "../../interfaces/IPoolAddressesProvider.sol",
|
|
"id": 3,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 36,
|
|
"sourceUnit": 884,
|
|
"src": "65:83:0",
|
|
"symbolAliases": [
|
|
{
|
|
"foreign": {
|
|
"id": 2,
|
|
"name": "IPoolAddressesProvider",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "73:22:0",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nameLocation": "-1:-1:-1"
|
|
}
|
|
],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "contracts/interfaces/IPool.sol",
|
|
"file": "../../interfaces/IPool.sol",
|
|
"id": 5,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 36,
|
|
"sourceUnit": 675,
|
|
"src": "150:49:0",
|
|
"symbolAliases": [
|
|
{
|
|
"foreign": {
|
|
"id": 4,
|
|
"name": "IPool",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 674,
|
|
"src": "158:5:0",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nameLocation": "-1:-1:-1"
|
|
}
|
|
],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IFlashLoanSimpleReceiver",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 6,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "203:230:0",
|
|
"text": " @title IFlashLoanSimpleReceiver\n @author Aave\n @notice Defines the basic interface of a flashloan-receiver contract.\n @dev Implement this interface to develop a flashloan-compatible flashLoanReceiver contract"
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 35,
|
|
"linearizedBaseContracts": [
|
|
35
|
|
],
|
|
"name": "IFlashLoanSimpleReceiver",
|
|
"nameLocation": "445:24:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"documentation": {
|
|
"id": 7,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "475:645:0",
|
|
"text": " @notice Executes an operation after receiving the flash-borrowed asset\n @dev Ensure that the contract can return the debt + premium, e.g., has\n enough funds to repay and has approved the Pool to pull the total amount\n @param asset The address of the flash-borrowed asset\n @param amount The amount of the flash-borrowed asset\n @param premium The fee of the flash-borrowed asset\n @param initiator The address of the flashloan initiator\n @param params The byte-encoded params passed when initiating the flashloan\n @return True if the execution of the operation succeeds, false otherwise"
|
|
},
|
|
"functionSelector": "1b11d0ff",
|
|
"id": 22,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "executeOperation",
|
|
"nameLocation": "1133:16:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 18,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 9,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "1164:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1156:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 8,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1156:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 11,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "1184:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1176:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 10,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1176:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"mutability": "mutable",
|
|
"name": "premium",
|
|
"nameLocation": "1205:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1197:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 12,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1197:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 15,
|
|
"mutability": "mutable",
|
|
"name": "initiator",
|
|
"nameLocation": "1227:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1219:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 14,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1219:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 17,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "1258:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1243:21:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 16,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1243:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1149:120:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 21,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 20,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 22,
|
|
"src": "1288:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 19,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1288:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1287:6:0"
|
|
},
|
|
"scope": 35,
|
|
"src": "1124:170:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "0542975c",
|
|
"id": 28,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "ADDRESSES_PROVIDER",
|
|
"nameLocation": "1309:18:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 23,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1327:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 27,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 26,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 28,
|
|
"src": "1353:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$883",
|
|
"typeString": "contract IPoolAddressesProvider"
|
|
},
|
|
"typeName": {
|
|
"id": 25,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 24,
|
|
"name": "IPoolAddressesProvider",
|
|
"nameLocations": [
|
|
"1353:22:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 883,
|
|
"src": "1353:22:0"
|
|
},
|
|
"referencedDeclaration": 883,
|
|
"src": "1353:22:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$883",
|
|
"typeString": "contract IPoolAddressesProvider"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1352:24:0"
|
|
},
|
|
"scope": 35,
|
|
"src": "1300:77:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "7535d246",
|
|
"id": 34,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "POOL",
|
|
"nameLocation": "1392:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 29,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1396:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 33,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 32,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 34,
|
|
"src": "1422:5:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IPool_$674",
|
|
"typeString": "contract IPool"
|
|
},
|
|
"typeName": {
|
|
"id": 31,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 30,
|
|
"name": "IPool",
|
|
"nameLocations": [
|
|
"1422:5:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 674,
|
|
"src": "1422:5:0"
|
|
},
|
|
"referencedDeclaration": 674,
|
|
"src": "1422:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IPool_$674",
|
|
"typeString": "contract IPool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1421:7:0"
|
|
},
|
|
"scope": 35,
|
|
"src": "1383:46:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 36,
|
|
"src": "435:997:0",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "38:1396:0"
|
|
},
|
|
"id": 0
|
|
},
|
|
"contracts/interfaces/IPool.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/interfaces/IPool.sol",
|
|
"exportedSymbols": {
|
|
"DataTypes": [
|
|
1235
|
|
],
|
|
"IPool": [
|
|
674
|
|
],
|
|
"IPoolAddressesProvider": [
|
|
883
|
|
]
|
|
},
|
|
"id": 675,
|
|
"license": "AGPL-3.0",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 37,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "38:23:1"
|
|
},
|
|
{
|
|
"absolutePath": "contracts/interfaces/IPoolAddressesProvider.sol",
|
|
"file": "./IPoolAddressesProvider.sol",
|
|
"id": 39,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 675,
|
|
"sourceUnit": 884,
|
|
"src": "65:68:1",
|
|
"symbolAliases": [
|
|
{
|
|
"foreign": {
|
|
"id": 38,
|
|
"name": "IPoolAddressesProvider",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 883,
|
|
"src": "73:22:1",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nameLocation": "-1:-1:-1"
|
|
}
|
|
],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "contracts/protocol/libraries/types/DataTypes.sol",
|
|
"file": "../protocol/libraries/types/DataTypes.sol",
|
|
"id": 41,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 675,
|
|
"sourceUnit": 1236,
|
|
"src": "135:68:1",
|
|
"symbolAliases": [
|
|
{
|
|
"foreign": {
|
|
"id": 40,
|
|
"name": "DataTypes",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 1235,
|
|
"src": "143:9:1",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nameLocation": "-1:-1:-1"
|
|
}
|
|
],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IPool",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 42,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "207:100:1",
|
|
"text": " @title IPool\n @author Aave\n @notice Defines the basic interface for an Aave Pool."
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 674,
|
|
"linearizedBaseContracts": [
|
|
674
|
|
],
|
|
"name": "IPool",
|
|
"nameLocation": "319:5:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 43,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "330:356:1",
|
|
"text": " @dev Emitted on mintUnbacked()\n @param reserve The address of the underlying asset of the reserve\n @param user The address initiating the supply\n @param onBehalfOf The beneficiary of the supplied assets, receiving the aTokens\n @param amount The amount of supplied assets\n @param referralCode The referral code used"
|
|
},
|
|
"eventSelector": "f25af37b3d3ec226063dc9bdc103ece7eb110a50f340fe854bb7bc1b0676d7d0",
|
|
"id": 55,
|
|
"name": "MintUnbacked",
|
|
"nameLocation": "696:12:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 54,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 45,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "731:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "715:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 44,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "715:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 47,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "753:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "745:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 46,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "745:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 49,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "780:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "764:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 48,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "764:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 51,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "805:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "797:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 50,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "797:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 53,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "833:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 55,
|
|
"src": "818:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 52,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "818:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "708:142:1"
|
|
},
|
|
"src": "690:161:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 56,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "857:263:1",
|
|
"text": " @dev Emitted on backUnbacked()\n @param reserve The address of the underlying asset of the reserve\n @param backer The address paying for the backing\n @param amount The amount added as backing\n @param fee The amount paid in fees"
|
|
},
|
|
"eventSelector": "281596e92b2d974beb7d4f124df30a0b39067b096893e95011ce4bdad798b759",
|
|
"id": 66,
|
|
"name": "BackUnbacked",
|
|
"nameLocation": "1130:12:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 65,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 58,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "1159:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 66,
|
|
"src": "1143:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 57,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1143:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 60,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "backer",
|
|
"nameLocation": "1184:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 66,
|
|
"src": "1168:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 59,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1168:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 62,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "1200:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 66,
|
|
"src": "1192:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 61,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1192:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 64,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "1216:3:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 66,
|
|
"src": "1208:11:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 63,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1208:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1142:78:1"
|
|
},
|
|
"src": "1124:97:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 67,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1227:331:1",
|
|
"text": " @dev Emitted on supply()\n @param reserve The address of the underlying asset of the reserve\n @param user The address initiating the supply\n @param onBehalfOf The beneficiary of the supply, receiving the aTokens\n @param amount The amount supplied\n @param referralCode The referral code used"
|
|
},
|
|
"eventSelector": "2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61",
|
|
"id": 79,
|
|
"name": "Supply",
|
|
"nameLocation": "1568:6:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 78,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 69,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "1597:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 79,
|
|
"src": "1581:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 68,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1581:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 71,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "1619:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 79,
|
|
"src": "1611:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 70,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1611:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 73,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "1646:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 79,
|
|
"src": "1630:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 72,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1630:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 75,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "1671:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 79,
|
|
"src": "1663:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 74,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1663:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 77,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "1699:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 79,
|
|
"src": "1684:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 76,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1684:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1574:142:1"
|
|
},
|
|
"src": "1562:155:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 80,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1723:298:1",
|
|
"text": " @dev Emitted on withdraw()\n @param reserve The address of the underlying asset being withdrawn\n @param user The address initiating the withdrawal, owner of aTokens\n @param to The address that will receive the underlying\n @param amount The amount to be withdrawn"
|
|
},
|
|
"eventSelector": "3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7",
|
|
"id": 90,
|
|
"name": "Withdraw",
|
|
"nameLocation": "2031:8:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 89,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 82,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "2056:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 90,
|
|
"src": "2040:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 81,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2040:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 84,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "2081:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 90,
|
|
"src": "2065:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 83,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2065:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 86,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2103:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 90,
|
|
"src": "2087:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 85,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2087:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 88,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "2115:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 90,
|
|
"src": "2107:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 87,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2107:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2039:83:1"
|
|
},
|
|
"src": "2025:98:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 91,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2129:638:1",
|
|
"text": " @dev Emitted on borrow() and flashLoan() when debt needs to be opened\n @param reserve The address of the underlying asset being borrowed\n @param user The address of the user initiating the borrow(), receiving the funds on borrow() or just\n initiator of the transaction on flashLoan()\n @param onBehalfOf The address that will be getting the debt\n @param amount The amount borrowed out\n @param interestRateMode The rate mode: 1 for Stable, 2 for Variable\n @param borrowRate The numeric rate at which the user has borrowed, expressed in ray\n @param referralCode The referral code used"
|
|
},
|
|
"eventSelector": "b3d084820fb1a9decffb176436bd02558d15fac9b0ddfed8c465bc7359d7dce0",
|
|
"id": 108,
|
|
"name": "Borrow",
|
|
"nameLocation": "2777:6:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 107,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 93,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "2806:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2790:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 92,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2790:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 95,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "2828:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2820:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 94,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2820:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 97,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "2855:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2839:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 96,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2839:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 99,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "2880:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2872:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 98,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2872:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 102,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "2920:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2893:43:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 101,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 100,
|
|
"name": "DataTypes.InterestRateMode",
|
|
"nameLocations": [
|
|
"2893:9:1",
|
|
"2903:16:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 939,
|
|
"src": "2893:26:1"
|
|
},
|
|
"referencedDeclaration": 939,
|
|
"src": "2893:26:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 104,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "borrowRate",
|
|
"nameLocation": "2951:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2943:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 103,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2943:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 106,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "2983:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 108,
|
|
"src": "2968:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 105,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2968:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2783:217:1"
|
|
},
|
|
"src": "2771:230:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 109,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3007:432:1",
|
|
"text": " @dev Emitted on repay()\n @param reserve The address of the underlying asset of the reserve\n @param user The beneficiary of the repayment, getting his debt reduced\n @param repayer The address of the user initiating the repay(), providing the funds\n @param amount The amount repaid\n @param useATokens True if the repayment is done using aTokens, `false` if done with underlying asset directly"
|
|
},
|
|
"eventSelector": "a534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051",
|
|
"id": 121,
|
|
"name": "Repay",
|
|
"nameLocation": "3449:5:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 120,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 111,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "3477:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 121,
|
|
"src": "3461:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 110,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3461:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 113,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "3507:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 121,
|
|
"src": "3491:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 112,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3491:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 115,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "repayer",
|
|
"nameLocation": "3534:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 121,
|
|
"src": "3518:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 114,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3518:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 117,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "3556:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 121,
|
|
"src": "3548:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 116,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3548:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 119,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "useATokens",
|
|
"nameLocation": "3574:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 121,
|
|
"src": "3569:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 118,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3569:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3454:135:1"
|
|
},
|
|
"src": "3443:147:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 122,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3596:311:1",
|
|
"text": " @dev Emitted on swapBorrowRateMode()\n @param reserve The address of the underlying asset of the reserve\n @param user The address of the user swapping his rate mode\n @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable"
|
|
},
|
|
"eventSelector": "7962b394d85a534033ba2efcf43cd36de57b7ebeb3de0ca4428965d9b3ddc481",
|
|
"id": 131,
|
|
"name": "SwapBorrowRateMode",
|
|
"nameLocation": "3917:18:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 130,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 124,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "3958:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 131,
|
|
"src": "3942:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 123,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3942:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 126,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "3988:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 131,
|
|
"src": "3972:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 125,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3972:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 129,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "4026:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 131,
|
|
"src": "3999:43:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 128,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 127,
|
|
"name": "DataTypes.InterestRateMode",
|
|
"nameLocations": [
|
|
"3999:9:1",
|
|
"4009:16:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 939,
|
|
"src": "3999:26:1"
|
|
},
|
|
"referencedDeclaration": 939,
|
|
"src": "3999:26:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3935:112:1"
|
|
},
|
|
"src": "3911:137:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 132,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4054:238:1",
|
|
"text": " @dev Emitted on borrow(), repay() and liquidationCall() when using isolated assets\n @param asset The address of the underlying asset of the reserve\n @param totalDebt The total isolation mode debt for the reserve"
|
|
},
|
|
"eventSelector": "aef84d3b40895fd58c561f3998000f0583abb992a52fbdc99ace8e8de4d676a5",
|
|
"id": 138,
|
|
"name": "IsolationModeTotalDebtUpdated",
|
|
"nameLocation": "4302:29:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 137,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 134,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4348:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 138,
|
|
"src": "4332:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 133,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4332:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 136,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "totalDebt",
|
|
"nameLocation": "4363:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 138,
|
|
"src": "4355:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 135,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4355:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4331:42:1"
|
|
},
|
|
"src": "4296:78:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 139,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4380:168:1",
|
|
"text": " @dev Emitted when the user selects a certain asset category for eMode\n @param user The address of the user\n @param categoryId The category id"
|
|
},
|
|
"eventSelector": "d728da875fc88944cbf17638bcbe4af0eedaef63becd1d1c57cc097eb4608d84",
|
|
"id": 145,
|
|
"name": "UserEModeSet",
|
|
"nameLocation": "4558:12:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 144,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 141,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "4587:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 145,
|
|
"src": "4571:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 140,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4571:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 143,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "categoryId",
|
|
"nameLocation": "4599:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 145,
|
|
"src": "4593:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 142,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4593:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4570:40:1"
|
|
},
|
|
"src": "4552:59:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 146,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4617:211:1",
|
|
"text": " @dev Emitted on setUserUseReserveAsCollateral()\n @param reserve The address of the underlying asset of the reserve\n @param user The address of the user enabling the usage as collateral"
|
|
},
|
|
"eventSelector": "00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2",
|
|
"id": 152,
|
|
"name": "ReserveUsedAsCollateralEnabled",
|
|
"nameLocation": "4838:30:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 151,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 148,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "4885:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 152,
|
|
"src": "4869:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 147,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4869:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 150,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "4910:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 152,
|
|
"src": "4894:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 149,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4894:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4868:47:1"
|
|
},
|
|
"src": "4832:84:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 153,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4922:211:1",
|
|
"text": " @dev Emitted on setUserUseReserveAsCollateral()\n @param reserve The address of the underlying asset of the reserve\n @param user The address of the user enabling the usage as collateral"
|
|
},
|
|
"eventSelector": "44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd",
|
|
"id": 159,
|
|
"name": "ReserveUsedAsCollateralDisabled",
|
|
"nameLocation": "5143:31:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 158,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 155,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "5191:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 159,
|
|
"src": "5175:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 154,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5175:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 157,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "5216:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 159,
|
|
"src": "5200:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 156,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5200:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5174:47:1"
|
|
},
|
|
"src": "5137:85:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 160,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5228:216:1",
|
|
"text": " @dev Emitted on rebalanceStableBorrowRate()\n @param reserve The address of the underlying asset of the reserve\n @param user The address of the user for which the rebalance has been executed"
|
|
},
|
|
"eventSelector": "9f439ae0c81e41a04d3fdfe07aed54e6a179fb0db15be7702eb66fa8ef6f5300",
|
|
"id": 166,
|
|
"name": "RebalanceStableBorrowRate",
|
|
"nameLocation": "5454:25:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 165,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 162,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "5496:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 166,
|
|
"src": "5480:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 161,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5480:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 164,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "5521:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 166,
|
|
"src": "5505:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 163,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5505:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5479:47:1"
|
|
},
|
|
"src": "5448:79:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 167,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5533:491:1",
|
|
"text": " @dev Emitted on flashLoan()\n @param target The address of the flash loan receiver contract\n @param initiator The address initiating the flash loan\n @param asset The address of the asset being flash borrowed\n @param amount The amount flash borrowed\n @param interestRateMode The flashloan mode: 0 for regular flashloan, 1 for Stable debt, 2 for Variable debt\n @param premium The fee flash borrowed\n @param referralCode The referral code used"
|
|
},
|
|
"eventSelector": "efefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0",
|
|
"id": 184,
|
|
"name": "FlashLoan",
|
|
"nameLocation": "6034:9:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 183,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 169,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "target",
|
|
"nameLocation": "6066:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6050:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 168,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6050:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 171,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "initiator",
|
|
"nameLocation": "6087:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6079:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 170,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6079:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 173,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "6119:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6103:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 172,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6103:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 175,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "6139:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6131:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 174,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6131:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 178,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "6179:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6152:43:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 177,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 176,
|
|
"name": "DataTypes.InterestRateMode",
|
|
"nameLocations": [
|
|
"6152:9:1",
|
|
"6162:16:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 939,
|
|
"src": "6152:26:1"
|
|
},
|
|
"referencedDeclaration": 939,
|
|
"src": "6152:26:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 180,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "premium",
|
|
"nameLocation": "6210:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6202:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 179,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6202:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 182,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "6239:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 184,
|
|
"src": "6224:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 181,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6224:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6043:213:1"
|
|
},
|
|
"src": "6028:229:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 185,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "6263:759:1",
|
|
"text": " @dev Emitted when a borrower is liquidated.\n @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation\n @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation\n @param user The address of the borrower getting liquidated\n @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover\n @param liquidatedCollateralAmount The amount of collateral received by the liquidator\n @param liquidator The address of the liquidator\n @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants\n to receive the underlying collateral asset directly"
|
|
},
|
|
"eventSelector": "e413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286",
|
|
"id": 201,
|
|
"name": "LiquidationCall",
|
|
"nameLocation": "7032:15:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 200,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 187,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "collateralAsset",
|
|
"nameLocation": "7070:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7054:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 186,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7054:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 189,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "debtAsset",
|
|
"nameLocation": "7108:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7092:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 188,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7092:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 191,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "7140:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7124:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 190,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7124:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 193,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "debtToCover",
|
|
"nameLocation": "7159:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7151:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 192,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7151:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 195,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "liquidatedCollateralAmount",
|
|
"nameLocation": "7185:26:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7177:34:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 194,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7177:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 197,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "liquidator",
|
|
"nameLocation": "7226:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7218:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 196,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7218:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 199,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "receiveAToken",
|
|
"nameLocation": "7248:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 201,
|
|
"src": "7243:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 198,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7243:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7047:219:1"
|
|
},
|
|
"src": "7026:241:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 202,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7273:429:1",
|
|
"text": " @dev Emitted when the state of a reserve is updated.\n @param reserve The address of the underlying asset of the reserve\n @param liquidityRate The next liquidity rate\n @param stableBorrowRate The next stable borrow rate\n @param variableBorrowRate The next variable borrow rate\n @param liquidityIndex The next liquidity index\n @param variableBorrowIndex The next variable borrow index"
|
|
},
|
|
"eventSelector": "804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a",
|
|
"id": 216,
|
|
"name": "ReserveDataUpdated",
|
|
"nameLocation": "7712:18:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 215,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 204,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "7753:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 216,
|
|
"src": "7737:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 203,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7737:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 206,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "liquidityRate",
|
|
"nameLocation": "7775:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 216,
|
|
"src": "7767:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 205,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7767:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 208,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "stableBorrowRate",
|
|
"nameLocation": "7803:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 216,
|
|
"src": "7795:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 207,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7795:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 210,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "variableBorrowRate",
|
|
"nameLocation": "7834:18:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 216,
|
|
"src": "7826:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 209,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7826:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 212,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "liquidityIndex",
|
|
"nameLocation": "7867:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 216,
|
|
"src": "7859:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 211,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7859:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 214,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "variableBorrowIndex",
|
|
"nameLocation": "7896:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 216,
|
|
"src": "7888:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 213,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7888:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7730:190:1"
|
|
},
|
|
"src": "7706:215:1"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 217,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7927:215:1",
|
|
"text": " @dev Emitted when the protocol treasury receives minted aTokens from the accrued interest.\n @param reserve The address of the reserve\n @param amountMinted The amount minted to the treasury"
|
|
},
|
|
"eventSelector": "bfa21aa5d5f9a1f0120a95e7c0749f389863cbdbfff531aa7339077a5bc919de",
|
|
"id": 223,
|
|
"name": "MintedToTreasury",
|
|
"nameLocation": "8152:16:1",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 222,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 219,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "8185:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 223,
|
|
"src": "8169:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 218,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8169:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 221,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "amountMinted",
|
|
"nameLocation": "8202:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 223,
|
|
"src": "8194:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 220,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8194:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "8168:47:1"
|
|
},
|
|
"src": "8146:70:1"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 224,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "8222:435:1",
|
|
"text": " @notice Mints an `amount` of aTokens to the `onBehalfOf`\n @param asset The address of the underlying asset to mint\n @param amount The amount to mint\n @param onBehalfOf The address that will receive the aTokens\n @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man"
|
|
},
|
|
"functionSelector": "69a933a5",
|
|
"id": 235,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mintUnbacked",
|
|
"nameLocation": "8670:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 233,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 226,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "8697:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 235,
|
|
"src": "8689:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 225,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8689:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 228,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "8717:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 235,
|
|
"src": "8709:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 227,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8709:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 230,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "8738:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 235,
|
|
"src": "8730:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 229,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8730:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 232,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "8762:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 235,
|
|
"src": "8755:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 231,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8755:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "8682:97:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 234,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "8788:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "8661:128:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 236,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "8795:265:1",
|
|
"text": " @notice Back the current unbacked underlying with `amount` and pay `fee`.\n @param asset The address of the underlying asset to back\n @param amount The amount to back\n @param fee The amount paid in fees\n @return The backed amount"
|
|
},
|
|
"functionSelector": "d65dc7a1",
|
|
"id": 247,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "backUnbacked",
|
|
"nameLocation": "9073:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 243,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 238,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "9094:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 247,
|
|
"src": "9086:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 237,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9086:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 240,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "9109:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 247,
|
|
"src": "9101:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 239,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9101:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 242,
|
|
"mutability": "mutable",
|
|
"name": "fee",
|
|
"nameLocation": "9125:3:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 247,
|
|
"src": "9117:11:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 241,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9117:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "9085:44:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 246,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 245,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 247,
|
|
"src": "9148:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 244,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9148:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "9147:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "9064:93:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 248,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "9163:722:1",
|
|
"text": " @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\n - E.g. User supplies 100 USDC and gets in return 100 aUSDC\n @param asset The address of the underlying asset to supply\n @param amount The amount to be supplied\n @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n is a different wallet\n @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man"
|
|
},
|
|
"functionSelector": "617ba037",
|
|
"id": 259,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "supply",
|
|
"nameLocation": "9898:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 257,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 250,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "9913:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 259,
|
|
"src": "9905:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 249,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9905:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 252,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "9928:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 259,
|
|
"src": "9920:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 251,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9920:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 254,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "9944:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 259,
|
|
"src": "9936:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 253,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9936:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 256,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "9963:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 259,
|
|
"src": "9956:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 255,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "9956:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "9904:72:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 258,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "9985:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "9889:97:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 260,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "9992:976:1",
|
|
"text": " @notice Supply with transfer approval of asset to be supplied done via permit function\n see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\n @param asset The address of the underlying asset to supply\n @param amount The amount to be supplied\n @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n is a different wallet\n @param deadline The deadline timestamp that the permit is valid\n @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man\n @param permitV The V parameter of ERC712 permit sig\n @param permitR The R parameter of ERC712 permit sig\n @param permitS The S parameter of ERC712 permit sig"
|
|
},
|
|
"functionSelector": "02c205f0",
|
|
"id": 279,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "supplyWithPermit",
|
|
"nameLocation": "10981:16:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 277,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 262,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "11012:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11004:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 261,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11004:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 264,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "11032:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11024:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 263,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11024:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 266,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "11053:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11045:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 265,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11045:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 268,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "11077:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11070:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 267,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11070:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 270,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "11104:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11096:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 269,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11096:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 272,
|
|
"mutability": "mutable",
|
|
"name": "permitV",
|
|
"nameLocation": "11125:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11119:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 271,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11119:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 274,
|
|
"mutability": "mutable",
|
|
"name": "permitR",
|
|
"nameLocation": "11147:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11139:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 273,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11139:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 276,
|
|
"mutability": "mutable",
|
|
"name": "permitS",
|
|
"nameLocation": "11169:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 279,
|
|
"src": "11161:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 275,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11161:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "10997:184:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 278,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "11190:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "10972:219:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 280,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "11197:681:1",
|
|
"text": " @notice Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned\n E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC\n @param asset The address of the underlying asset to withdraw\n @param amount The underlying amount to be withdrawn\n - Send the value type(uint256).max in order to withdraw the whole aToken balance\n @param to The address that will receive the underlying, same as msg.sender if the user\n wants to receive it on his own wallet, or a different address if the beneficiary is a\n different wallet\n @return The final amount withdrawn"
|
|
},
|
|
"functionSelector": "69328dec",
|
|
"id": 291,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "withdraw",
|
|
"nameLocation": "11891:8:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 287,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 282,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "11908:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 291,
|
|
"src": "11900:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 281,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11900:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 284,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "11923:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 291,
|
|
"src": "11915:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 283,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11915:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 286,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "11939:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 291,
|
|
"src": "11931:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 285,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11931:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "11899:43:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 290,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 289,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 291,
|
|
"src": "11961:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 288,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "11961:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "11960:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "11882:88:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 292,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "11976:1212:1",
|
|
"text": " @notice Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower\n already supplied enough collateral, or he was given enough allowance by a credit delegator on the\n corresponding debt token (StableDebtToken or VariableDebtToken)\n - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet\n and 100 stable/variable debt tokens, depending on the `interestRateMode`\n @param asset The address of the underlying asset to borrow\n @param amount The amount to be borrowed\n @param interestRateMode The interest rate mode at which the user wants to borrow: 1 for Stable, 2 for Variable\n @param referralCode The code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man\n @param onBehalfOf The address of the user who will receive the debt. Should be the address of the borrower itself\n calling the function if he wants to borrow against his own collateral, or the address of the credit delegator\n if he has been given credit delegation allowance"
|
|
},
|
|
"functionSelector": "a415bcad",
|
|
"id": 305,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "borrow",
|
|
"nameLocation": "13201:6:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 303,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 294,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "13222:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 305,
|
|
"src": "13214:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 293,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "13214:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 296,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "13242:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 305,
|
|
"src": "13234:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 295,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "13234:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 298,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "13263:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 305,
|
|
"src": "13255:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 297,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "13255:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 300,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "13293:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 305,
|
|
"src": "13286:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 299,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "13286:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 302,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "13320:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 305,
|
|
"src": "13312:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 301,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "13312:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "13207:128:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 304,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "13344:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "13192:153:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 306,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "13351:884:1",
|
|
"text": " @notice Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned\n - E.g. User repays 100 USDC, burning 100 variable/stable debt tokens of the `onBehalfOf` address\n @param asset The address of the borrowed underlying asset previously borrowed\n @param amount The amount to repay\n - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\n @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\n @param onBehalfOf The address of the user who will get his debt reduced/removed. Should be the address of the\n user calling the function if he wants to reduce/remove his own debt, or the address of any other\n other borrower whose debt should be removed\n @return The final amount repaid"
|
|
},
|
|
"functionSelector": "573ade81",
|
|
"id": 319,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "repay",
|
|
"nameLocation": "14248:5:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 315,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 308,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "14268:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 319,
|
|
"src": "14260:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 307,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "14260:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 310,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "14288:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 319,
|
|
"src": "14280:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 309,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "14280:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 312,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "14309:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 319,
|
|
"src": "14301:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 311,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "14301:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 314,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "14340:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 319,
|
|
"src": "14332:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 313,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "14332:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "14253:102:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 318,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 317,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 319,
|
|
"src": "14374:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 316,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "14374:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "14373:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "14239:144:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 320,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "14389:1100:1",
|
|
"text": " @notice Repay with transfer approval of asset to be repaid done via permit function\n see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\n @param asset The address of the borrowed underlying asset previously borrowed\n @param amount The amount to repay\n - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\n @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\n @param onBehalfOf Address of the user who will get his debt reduced/removed. Should be the address of the\n user calling the function if he wants to reduce/remove his own debt, or the address of any other\n other borrower whose debt should be removed\n @param deadline The deadline timestamp that the permit is valid\n @param permitV The V parameter of ERC712 permit sig\n @param permitR The R parameter of ERC712 permit sig\n @param permitS The S parameter of ERC712 permit sig\n @return The final amount repaid"
|
|
},
|
|
"functionSelector": "ee3e210b",
|
|
"id": 341,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "repayWithPermit",
|
|
"nameLocation": "15502:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 337,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 322,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "15532:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15524:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 321,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15524:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 324,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "15552:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15544:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 323,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15544:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 326,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "15573:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15565:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 325,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15565:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 328,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "15604:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15596:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 327,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15596:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 330,
|
|
"mutability": "mutable",
|
|
"name": "deadline",
|
|
"nameLocation": "15629:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15621:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 329,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15621:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 332,
|
|
"mutability": "mutable",
|
|
"name": "permitV",
|
|
"nameLocation": "15650:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15644:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 331,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15644:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 334,
|
|
"mutability": "mutable",
|
|
"name": "permitR",
|
|
"nameLocation": "15672:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15664:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 333,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15664:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 336,
|
|
"mutability": "mutable",
|
|
"name": "permitS",
|
|
"nameLocation": "15694:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15686:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 335,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15686:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "15517:189:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 340,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 339,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 341,
|
|
"src": "15725:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 338,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "15725:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "15724:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "15493:241:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 342,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "15740:790:1",
|
|
"text": " @notice Repays a borrowed `amount` on a specific reserve using the reserve aTokens, burning the\n equivalent debt tokens\n - E.g. User repays 100 USDC using 100 aUSDC, burning 100 variable/stable debt tokens\n @dev Passing uint256.max as amount will clean up any residual aToken dust balance, if the user aToken\n balance is not enough to cover the whole debt\n @param asset The address of the borrowed underlying asset previously borrowed\n @param amount The amount to repay\n - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\n @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable\n @return The final amount repaid"
|
|
},
|
|
"functionSelector": "2dad97d4",
|
|
"id": 353,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "repayWithATokens",
|
|
"nameLocation": "16543:16:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 349,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 344,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "16574:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 353,
|
|
"src": "16566:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 343,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "16566:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 346,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "16594:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 353,
|
|
"src": "16586:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 345,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "16586:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 348,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "16615:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 353,
|
|
"src": "16607:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 347,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "16607:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "16559:77:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 352,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 351,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 353,
|
|
"src": "16655:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 350,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "16655:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "16654:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "16534:130:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 354,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "16670:292:1",
|
|
"text": " @notice Allows a borrower to swap his debt between stable and variable mode, or vice versa\n @param asset The address of the underlying asset borrowed\n @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable"
|
|
},
|
|
"functionSelector": "94ba89a2",
|
|
"id": 361,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "swapBorrowRateMode",
|
|
"nameLocation": "16975:18:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 359,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 356,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "17002:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 361,
|
|
"src": "16994:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 355,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "16994:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 358,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "17017:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 361,
|
|
"src": "17009:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 357,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "17009:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "16993:41:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 360,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "17043:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "16966:78:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 362,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "17050:561:1",
|
|
"text": " @notice Rebalances the stable interest rate of a user to the current stable rate defined on the reserve.\n - Users can be rebalanced if the following conditions are satisfied:\n 1. Usage ratio is above 95%\n 2. the current supply APY is below REBALANCE_UP_THRESHOLD * maxVariableBorrowRate, which means that too\n much has been borrowed at a stable rate and suppliers are not earning enough\n @param asset The address of the underlying asset borrowed\n @param user The address of the user to be rebalanced"
|
|
},
|
|
"functionSelector": "cd112382",
|
|
"id": 369,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "rebalanceStableBorrowRate",
|
|
"nameLocation": "17624:25:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 367,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 364,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "17658:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 369,
|
|
"src": "17650:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 363,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "17650:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 366,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "17673:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 369,
|
|
"src": "17665:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 365,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "17665:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "17649:29:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 368,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "17687:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "17615:73:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 370,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "17694:264:1",
|
|
"text": " @notice Allows suppliers to enable/disable a specific supplied asset as collateral\n @param asset The address of the underlying asset supplied\n @param useAsCollateral True if the user wants to use the supply as collateral, false otherwise"
|
|
},
|
|
"functionSelector": "5a3b74b9",
|
|
"id": 377,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setUserUseReserveAsCollateral",
|
|
"nameLocation": "17971:29:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 375,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 372,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "18009:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 377,
|
|
"src": "18001:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 371,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "18001:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 374,
|
|
"mutability": "mutable",
|
|
"name": "useAsCollateral",
|
|
"nameLocation": "18021:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 377,
|
|
"src": "18016:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 373,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "18016:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "18000:37:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 376,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "18046:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "17962:85:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 378,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "18053:870:1",
|
|
"text": " @notice Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1\n - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives\n a proportionally amount of the `collateralAsset` plus a bonus to cover market risk\n @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation\n @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation\n @param user The address of the borrower getting liquidated\n @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover\n @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants\n to receive the underlying collateral asset directly"
|
|
},
|
|
"functionSelector": "00a718a9",
|
|
"id": 391,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "liquidationCall",
|
|
"nameLocation": "18936:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 389,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 380,
|
|
"mutability": "mutable",
|
|
"name": "collateralAsset",
|
|
"nameLocation": "18966:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 391,
|
|
"src": "18958:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 379,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "18958:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 382,
|
|
"mutability": "mutable",
|
|
"name": "debtAsset",
|
|
"nameLocation": "18996:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 391,
|
|
"src": "18988:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 381,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "18988:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 384,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "19020:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 391,
|
|
"src": "19012:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 383,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "19012:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 386,
|
|
"mutability": "mutable",
|
|
"name": "debtToCover",
|
|
"nameLocation": "19039:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 391,
|
|
"src": "19031:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 385,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "19031:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 388,
|
|
"mutability": "mutable",
|
|
"name": "receiveAToken",
|
|
"nameLocation": "19062:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 391,
|
|
"src": "19057:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 387,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "19057:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "18951:129:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 390,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "19089:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "18927:163:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 392,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "19096:1423:1",
|
|
"text": " @notice Allows smartcontracts to access the liquidity of the pool within one transaction,\n as long as the amount taken plus a fee is returned.\n @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept\n into consideration. For further details please visit https://docs.aave.com/developers/\n @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanReceiver interface\n @param assets The addresses of the assets being flash-borrowed\n @param amounts The amounts of the assets being flash-borrowed\n @param interestRateModes Types of the debt to open if the flash loan is not returned:\n 0 -> Don't open any debt, just revert if funds can't be transferred from the receiver\n 1 -> Open debt at stable rate for the value of the amount flash-borrowed to the `onBehalfOf` address\n 2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address\n @param onBehalfOf The address that will receive the debt in the case of using on `modes` 1 or 2\n @param params Variadic packed params to pass to the receiver as extra information\n @param referralCode The code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man"
|
|
},
|
|
"functionSelector": "ab9c4b5d",
|
|
"id": 412,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "flashLoan",
|
|
"nameLocation": "20532:9:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 410,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 394,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "20556:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20548:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 393,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20548:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 397,
|
|
"mutability": "mutable",
|
|
"name": "assets",
|
|
"nameLocation": "20597:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20578:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 395,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20578:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 396,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "20578:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 400,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "20629:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20610:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 398,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20610:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 399,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "20610:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 403,
|
|
"mutability": "mutable",
|
|
"name": "interestRateModes",
|
|
"nameLocation": "20662:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20643:36:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 401,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20643:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 402,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "20643:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 405,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "20694:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20686:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 404,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20686:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 407,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "20726:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20711:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 406,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20711:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 409,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "20746:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 412,
|
|
"src": "20739:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 408,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "20739:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "20541:222:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 411,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "20772:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "20523:250:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 413,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "20779:913:1",
|
|
"text": " @notice Allows smartcontracts to access the liquidity of the pool within one transaction,\n as long as the amount taken plus a fee is returned.\n @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept\n into consideration. For further details please visit https://docs.aave.com/developers/\n @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface\n @param asset The address of the asset being flash-borrowed\n @param amount The amount of the asset being flash-borrowed\n @param params Variadic packed params to pass to the receiver as extra information\n @param referralCode The code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man"
|
|
},
|
|
"functionSelector": "42b0b77c",
|
|
"id": 426,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "flashLoanSimple",
|
|
"nameLocation": "21705:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 424,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 415,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "21735:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 426,
|
|
"src": "21727:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 414,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "21727:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 417,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "21765:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 426,
|
|
"src": "21757:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 416,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "21757:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 419,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "21785:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 426,
|
|
"src": "21777:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 418,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "21777:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 421,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "21813:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 426,
|
|
"src": "21798:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 420,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "21798:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 423,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "21833:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 426,
|
|
"src": "21826:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 422,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "21826:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "21720:130:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 425,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "21859:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "21696:164:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 427,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "21866:639:1",
|
|
"text": " @notice Returns the user account data across all the reserves\n @param user The address of the user\n @return totalCollateralBase The total collateral of the user in the base currency used by the price feed\n @return totalDebtBase The total debt of the user in the base currency used by the price feed\n @return availableBorrowsBase The borrowing power left of the user in the base currency used by the price feed\n @return currentLiquidationThreshold The liquidation threshold of the user\n @return ltv The loan to value of The user\n @return healthFactor The current health factor of the user"
|
|
},
|
|
"functionSelector": "bf92857c",
|
|
"id": 444,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getUserAccountData",
|
|
"nameLocation": "22518:18:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 430,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 429,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "22551:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22543:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 428,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22543:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "22536:24:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 443,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 432,
|
|
"mutability": "mutable",
|
|
"name": "totalCollateralBase",
|
|
"nameLocation": "22615:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22607:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 431,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22607:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 434,
|
|
"mutability": "mutable",
|
|
"name": "totalDebtBase",
|
|
"nameLocation": "22651:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22643:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 433,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22643:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 436,
|
|
"mutability": "mutable",
|
|
"name": "availableBorrowsBase",
|
|
"nameLocation": "22681:20:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22673:28:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 435,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22673:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 438,
|
|
"mutability": "mutable",
|
|
"name": "currentLiquidationThreshold",
|
|
"nameLocation": "22718:27:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22710:35:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 437,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22710:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 440,
|
|
"mutability": "mutable",
|
|
"name": "ltv",
|
|
"nameLocation": "22762:3:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22754:11:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 439,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22754:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 442,
|
|
"mutability": "mutable",
|
|
"name": "healthFactor",
|
|
"nameLocation": "22782:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 444,
|
|
"src": "22774:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 441,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "22774:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "22598:203:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "22509:293:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 445,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "22808:654:1",
|
|
"text": " @notice Initializes a reserve, activating it, assigning an aToken and debt tokens and an\n interest rate strategy\n @dev Only callable by the PoolConfigurator contract\n @param asset The address of the underlying asset of the reserve\n @param aTokenAddress The address of the aToken that will be assigned to the reserve\n @param stableDebtAddress The address of the StableDebtToken that will be assigned to the reserve\n @param variableDebtAddress The address of the VariableDebtToken that will be assigned to the reserve\n @param interestRateStrategyAddress The address of the interest rate strategy contract"
|
|
},
|
|
"functionSelector": "7a708e92",
|
|
"id": 458,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "initReserve",
|
|
"nameLocation": "23475:11:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 456,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 447,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "23501:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 458,
|
|
"src": "23493:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 446,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "23493:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 449,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "23521:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 458,
|
|
"src": "23513:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 448,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "23513:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 451,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtAddress",
|
|
"nameLocation": "23549:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 458,
|
|
"src": "23541:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 450,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "23541:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 453,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtAddress",
|
|
"nameLocation": "23581:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 458,
|
|
"src": "23573:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 452,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "23573:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 455,
|
|
"mutability": "mutable",
|
|
"name": "interestRateStrategyAddress",
|
|
"nameLocation": "23615:27:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 458,
|
|
"src": "23607:35:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 454,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "23607:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "23486:161:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 457,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "23656:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "23466:191:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 459,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "23663:167:1",
|
|
"text": " @notice Drop a reserve\n @dev Only callable by the PoolConfigurator contract\n @param asset The address of the underlying asset of the reserve"
|
|
},
|
|
"functionSelector": "63c9b860",
|
|
"id": 464,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "dropReserve",
|
|
"nameLocation": "23843:11:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 462,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 461,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "23863:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 464,
|
|
"src": "23855:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 460,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "23855:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "23854:15:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 463,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "23878:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "23834:45:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 465,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "23885:295:1",
|
|
"text": " @notice Updates the address of the interest rate strategy contract\n @dev Only callable by the PoolConfigurator contract\n @param asset The address of the underlying asset of the reserve\n @param rateStrategyAddress The address of the interest rate strategy contract"
|
|
},
|
|
"functionSelector": "1d2118f9",
|
|
"id": 472,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setReserveInterestRateStrategyAddress",
|
|
"nameLocation": "24193:37:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 470,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 467,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "24245:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 472,
|
|
"src": "24237:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 466,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "24237:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 469,
|
|
"mutability": "mutable",
|
|
"name": "rateStrategyAddress",
|
|
"nameLocation": "24265:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 472,
|
|
"src": "24257:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 468,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "24257:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "24230:59:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 471,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "24298:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "24184:115:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 473,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "24305:264:1",
|
|
"text": " @notice Sets the configuration bitmap of the reserve as a whole\n @dev Only callable by the PoolConfigurator contract\n @param asset The address of the underlying asset of the reserve\n @param configuration The new configuration bitmap"
|
|
},
|
|
"functionSelector": "f51e435b",
|
|
"id": 481,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setConfiguration",
|
|
"nameLocation": "24582:16:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 479,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 475,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "24613:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 481,
|
|
"src": "24605:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 474,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "24605:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 478,
|
|
"mutability": "mutable",
|
|
"name": "configuration",
|
|
"nameLocation": "24668:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 481,
|
|
"src": "24625:56:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_calldata_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 477,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 476,
|
|
"name": "DataTypes.ReserveConfigurationMap",
|
|
"nameLocations": [
|
|
"24625:9:1",
|
|
"24635:23:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 920,
|
|
"src": "24625:33:1"
|
|
},
|
|
"referencedDeclaration": 920,
|
|
"src": "24625:33:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "24598:88:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 480,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "24695:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "24573:123:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 482,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "24702:182:1",
|
|
"text": " @notice Returns the configuration of the reserve\n @param asset The address of the underlying asset of the reserve\n @return The configuration of the reserve"
|
|
},
|
|
"functionSelector": "c44b11f7",
|
|
"id": 490,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getConfiguration",
|
|
"nameLocation": "24897:16:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 485,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 484,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "24928:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 490,
|
|
"src": "24920:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 483,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "24920:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "24913:25:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 489,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 488,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 490,
|
|
"src": "24962:40:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_memory_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 487,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 486,
|
|
"name": "DataTypes.ReserveConfigurationMap",
|
|
"nameLocations": [
|
|
"24962:9:1",
|
|
"24972:23:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 920,
|
|
"src": "24962:33:1"
|
|
},
|
|
"referencedDeclaration": 920,
|
|
"src": "24962:33:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "24961:42:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "24888:116:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 491,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "25010:165:1",
|
|
"text": " @notice Returns the configuration of the user across all the reserves\n @param user The user address\n @return The configuration of the user"
|
|
},
|
|
"functionSelector": "4417a583",
|
|
"id": 499,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getUserConfiguration",
|
|
"nameLocation": "25188:20:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 494,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 493,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "25223:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 499,
|
|
"src": "25215:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 492,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "25215:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "25208:24:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 498,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 497,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 499,
|
|
"src": "25256:37:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$924_memory_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 496,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 495,
|
|
"name": "DataTypes.UserConfigurationMap",
|
|
"nameLocations": [
|
|
"25256:9:1",
|
|
"25266:20:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 924,
|
|
"src": "25256:30:1"
|
|
},
|
|
"referencedDeclaration": 924,
|
|
"src": "25256:30:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$924_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "25255:39:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "25179:116:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 500,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "25301:185:1",
|
|
"text": " @notice Returns the normalized income of the reserve\n @param asset The address of the underlying asset of the reserve\n @return The reserve's normalized income"
|
|
},
|
|
"functionSelector": "d15e0053",
|
|
"id": 507,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReserveNormalizedIncome",
|
|
"nameLocation": "25499:26:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 503,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 502,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "25534:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 507,
|
|
"src": "25526:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 501,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "25526:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "25525:15:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 506,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 505,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 507,
|
|
"src": "25564:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 504,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "25564:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "25563:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "25490:83:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 508,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "25579:816:1",
|
|
"text": " @notice Returns the normalized variable debt per unit of asset\n @dev WARNING: This function is intended to be used primarily by the protocol itself to get a\n \"dynamic\" variable index based on time, current stored index and virtual rate at the current\n moment (approx. a borrower would get if opening a position). This means that is always used in\n combination with variable debt supply/balances.\n If using this function externally, consider that is possible to have an increasing normalized\n variable debt that is not equivalent to how the variable debt index would be updated in storage\n (e.g. only updates with non-zero variable debt supply)\n @param asset The address of the underlying asset of the reserve\n @return The reserve normalized variable debt"
|
|
},
|
|
"functionSelector": "386497fd",
|
|
"id": 515,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReserveNormalizedVariableDebt",
|
|
"nameLocation": "26408:32:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 511,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 510,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "26449:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 515,
|
|
"src": "26441:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 509,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "26441:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "26440:15:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 514,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 513,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 515,
|
|
"src": "26479:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 512,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "26479:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "26478:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "26399:89:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 516,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "26494:207:1",
|
|
"text": " @notice Returns the state and configuration of the reserve\n @param asset The address of the underlying asset of the reserve\n @return The state and configuration data of the reserve"
|
|
},
|
|
"functionSelector": "35ea6a75",
|
|
"id": 524,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReserveData",
|
|
"nameLocation": "26714:14:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 519,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 518,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "26737:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 524,
|
|
"src": "26729:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 517,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "26729:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "26728:15:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 523,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 522,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 524,
|
|
"src": "26767:28:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveData_$917_memory_ptr",
|
|
"typeString": "struct DataTypes.ReserveData"
|
|
},
|
|
"typeName": {
|
|
"id": 521,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 520,
|
|
"name": "DataTypes.ReserveData",
|
|
"nameLocations": [
|
|
"26767:9:1",
|
|
"26777:11:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 917,
|
|
"src": "26767:21:1"
|
|
},
|
|
"referencedDeclaration": 917,
|
|
"src": "26767:21:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveData_$917_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveData"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "26766:30:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "26705:92:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 525,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "26803:546:1",
|
|
"text": " @notice Validates and finalizes an aToken transfer\n @dev Only callable by the overlying aToken of the `asset`\n @param asset The address of the underlying asset of the aToken\n @param from The user from which the aTokens are transferred\n @param to The user receiving the aTokens\n @param amount The amount being transferred/withdrawn\n @param balanceFromBefore The aToken balance of the `from` user before the transfer\n @param balanceToBefore The aToken balance of the `to` user before the transfer"
|
|
},
|
|
"functionSelector": "d5ed3933",
|
|
"id": 540,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "finalizeTransfer",
|
|
"nameLocation": "27362:16:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 538,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 527,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "27393:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 540,
|
|
"src": "27385:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 526,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27385:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 529,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "27413:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 540,
|
|
"src": "27405:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 528,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27405:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 531,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "27432:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 540,
|
|
"src": "27424:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 530,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27424:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 533,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "27449:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 540,
|
|
"src": "27441:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 532,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27441:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 535,
|
|
"mutability": "mutable",
|
|
"name": "balanceFromBefore",
|
|
"nameLocation": "27470:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 540,
|
|
"src": "27462:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 534,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27462:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 537,
|
|
"mutability": "mutable",
|
|
"name": "balanceToBefore",
|
|
"nameLocation": "27502:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 540,
|
|
"src": "27494:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 536,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27494:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "27378:144:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 539,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "27531:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "27353:179:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 541,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "27538:227:1",
|
|
"text": " @notice Returns the list of the underlying assets of all the initialized reserves\n @dev It does not include dropped reserves\n @return The addresses of the underlying assets of the initialized reserves"
|
|
},
|
|
"functionSelector": "d1946dbc",
|
|
"id": 547,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReservesList",
|
|
"nameLocation": "27778:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 542,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "27793:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 546,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 545,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 547,
|
|
"src": "27819:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 543,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "27819:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 544,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "27819:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "27818:18:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "27769:68:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 548,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "27843:289:1",
|
|
"text": " @notice Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct\n @param id The id of the reserve as stored in the DataTypes.ReserveData struct\n @return The address of the reserve associated with id"
|
|
},
|
|
"functionSelector": "52751797",
|
|
"id": 555,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getReserveAddressById",
|
|
"nameLocation": "28145:21:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 551,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 550,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "28174:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 555,
|
|
"src": "28167:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 549,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "28167:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "28166:11:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 554,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 553,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 555,
|
|
"src": "28201:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 552,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "28201:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "28200:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "28136:74:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 556,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "28216:140:1",
|
|
"text": " @notice Returns the PoolAddressesProvider connected to this contract\n @return The address of the PoolAddressesProvider"
|
|
},
|
|
"functionSelector": "0542975c",
|
|
"id": 562,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "ADDRESSES_PROVIDER",
|
|
"nameLocation": "28369:18:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 557,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "28387:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 561,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 560,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 562,
|
|
"src": "28413:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$883",
|
|
"typeString": "contract IPoolAddressesProvider"
|
|
},
|
|
"typeName": {
|
|
"id": 559,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 558,
|
|
"name": "IPoolAddressesProvider",
|
|
"nameLocations": [
|
|
"28413:22:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 883,
|
|
"src": "28413:22:1"
|
|
},
|
|
"referencedDeclaration": 883,
|
|
"src": "28413:22:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$883",
|
|
"typeString": "contract IPoolAddressesProvider"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "28412:24:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "28360:77:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 563,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "28443:150:1",
|
|
"text": " @notice Updates the protocol fee on the bridging\n @param bridgeProtocolFee The part of the premium sent to the protocol treasury"
|
|
},
|
|
"functionSelector": "3036b439",
|
|
"id": 568,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "updateBridgeProtocolFee",
|
|
"nameLocation": "28606:23:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 566,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 565,
|
|
"mutability": "mutable",
|
|
"name": "bridgeProtocolFee",
|
|
"nameLocation": "28638:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 568,
|
|
"src": "28630:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 564,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "28630:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "28629:27:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 567,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "28665:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "28597:69:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 569,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "28672:659:1",
|
|
"text": " @notice Updates flash loan premiums. Flash loan premium consists of two parts:\n - A part is sent to aToken holders as extra, one time accumulated interest\n - A part is collected by the protocol treasury\n @dev The total premium is calculated on the total borrowed amount\n @dev The premium to protocol is calculated on the total premium, being a percentage of `flashLoanPremiumTotal`\n @dev Only callable by the PoolConfigurator contract\n @param flashLoanPremiumTotal The total premium, expressed in bps\n @param flashLoanPremiumToProtocol The part of the premium sent to the protocol treasury, expressed in bps"
|
|
},
|
|
"functionSelector": "bcb6e522",
|
|
"id": 576,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "updateFlashloanPremiums",
|
|
"nameLocation": "29344:23:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 574,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 571,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumTotal",
|
|
"nameLocation": "29382:21:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 576,
|
|
"src": "29374:29:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 570,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "29374:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 573,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "29418:26:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 576,
|
|
"src": "29410:34:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 572,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "29410:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "29367:82:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 575,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "29458:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "29335:124:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 577,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "29465:337:1",
|
|
"text": " @notice Configures a new category for the eMode.\n @dev In eMode, the protocol allows very high borrowing power to borrow assets of the same category.\n The category 0 is reserved as it's the default for volatile assets\n @param id The id of the category\n @param config The configuration of the category"
|
|
},
|
|
"functionSelector": "d579ea7d",
|
|
"id": 585,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "configureEModeCategory",
|
|
"nameLocation": "29815:22:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 583,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 579,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "29844:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 585,
|
|
"src": "29838:8:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 578,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "29838:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 582,
|
|
"mutability": "mutable",
|
|
"name": "config",
|
|
"nameLocation": "29879:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 585,
|
|
"src": "29848:37:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_EModeCategory_$935_memory_ptr",
|
|
"typeString": "struct DataTypes.EModeCategory"
|
|
},
|
|
"typeName": {
|
|
"id": 581,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 580,
|
|
"name": "DataTypes.EModeCategory",
|
|
"nameLocations": [
|
|
"29848:9:1",
|
|
"29858:13:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 935,
|
|
"src": "29848:23:1"
|
|
},
|
|
"referencedDeclaration": 935,
|
|
"src": "29848:23:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_EModeCategory_$935_storage_ptr",
|
|
"typeString": "struct DataTypes.EModeCategory"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "29837:49:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 584,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "29895:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "29806:90:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 586,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "29902:154:1",
|
|
"text": " @notice Returns the data of an eMode category\n @param id The id of the category\n @return The configuration data of the category"
|
|
},
|
|
"functionSelector": "6c6f6ae1",
|
|
"id": 594,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getEModeCategoryData",
|
|
"nameLocation": "30069:20:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 589,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 588,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "30096:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 594,
|
|
"src": "30090:8:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 587,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "30090:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "30089:10:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 593,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 592,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 594,
|
|
"src": "30123:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_EModeCategory_$935_memory_ptr",
|
|
"typeString": "struct DataTypes.EModeCategory"
|
|
},
|
|
"typeName": {
|
|
"id": 591,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 590,
|
|
"name": "DataTypes.EModeCategory",
|
|
"nameLocations": [
|
|
"30123:9:1",
|
|
"30133:13:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 935,
|
|
"src": "30123:23:1"
|
|
},
|
|
"referencedDeclaration": 935,
|
|
"src": "30123:23:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_EModeCategory_$935_storage_ptr",
|
|
"typeString": "struct DataTypes.EModeCategory"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "30122:32:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "30060:95:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 595,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "30161:114:1",
|
|
"text": " @notice Allows a user to use the protocol in eMode\n @param categoryId The id of the category"
|
|
},
|
|
"functionSelector": "28530a47",
|
|
"id": 600,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setUserEMode",
|
|
"nameLocation": "30288:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 598,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 597,
|
|
"mutability": "mutable",
|
|
"name": "categoryId",
|
|
"nameLocation": "30307:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 600,
|
|
"src": "30301:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 596,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "30301:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "30300:18:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 599,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "30327:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "30279:49:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 601,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "30334:129:1",
|
|
"text": " @notice Returns the eMode the user is using\n @param user The address of the user\n @return The eMode id"
|
|
},
|
|
"functionSelector": "eddf1b79",
|
|
"id": 608,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getUserEMode",
|
|
"nameLocation": "30476:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 604,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 603,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "30497:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 608,
|
|
"src": "30489:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 602,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "30489:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "30488:14:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 607,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 606,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 608,
|
|
"src": "30526:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 605,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "30526:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "30525:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "30467:68:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 609,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "30541:240:1",
|
|
"text": " @notice Resets the isolation mode total debt of the given asset to zero\n @dev It requires the given asset has zero debt ceiling\n @param asset The address of the underlying asset to reset the isolationModeTotalDebt"
|
|
},
|
|
"functionSelector": "e43e88a1",
|
|
"id": 614,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "resetIsolationModeTotalDebt",
|
|
"nameLocation": "30794:27:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 612,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 611,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "30830:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 614,
|
|
"src": "30822:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 610,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "30822:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "30821:15:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 613,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "30845:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "30785:61:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 615,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "30852:194:1",
|
|
"text": " @notice Returns the percentage of available liquidity that can be borrowed at once at stable rate\n @return The percentage of available liquidity to borrow, expressed in bps"
|
|
},
|
|
"functionSelector": "e82fec2f",
|
|
"id": 620,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "MAX_STABLE_RATE_BORROW_SIZE_PERCENT",
|
|
"nameLocation": "31059:35:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 616,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "31094:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 619,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 618,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 620,
|
|
"src": "31120:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 617,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "31120:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "31119:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "31050:79:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 621,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "31135:103:1",
|
|
"text": " @notice Returns the total fee on flash loans\n @return The total fee on flashloans"
|
|
},
|
|
"functionSelector": "074b2e43",
|
|
"id": 626,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "FLASHLOAN_PREMIUM_TOTAL",
|
|
"nameLocation": "31251:23:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 622,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "31274:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 625,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 624,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 626,
|
|
"src": "31300:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 623,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "31300:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "31299:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "31242:67:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 627,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "31315:136:1",
|
|
"text": " @notice Returns the part of the bridge fees sent to protocol\n @return The bridge fee sent to the protocol treasury"
|
|
},
|
|
"functionSelector": "272d9072",
|
|
"id": 632,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "BRIDGE_PROTOCOL_FEE",
|
|
"nameLocation": "31464:19:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 628,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "31483:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 631,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 630,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 632,
|
|
"src": "31509:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 629,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "31509:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "31508:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "31455:63:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 633,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "31524:142:1",
|
|
"text": " @notice Returns the part of the flashloan fees sent to protocol\n @return The flashloan fee sent to the protocol treasury"
|
|
},
|
|
"functionSelector": "6a99c036",
|
|
"id": 638,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "FLASHLOAN_PREMIUM_TO_PROTOCOL",
|
|
"nameLocation": "31679:29:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 634,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "31708:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 637,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 636,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 638,
|
|
"src": "31734:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 635,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "31734:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "31733:9:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "31670:73:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 639,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "31749:154:1",
|
|
"text": " @notice Returns the maximum number of reserves supported to be listed in this Pool\n @return The maximum number of reserves supported"
|
|
},
|
|
"functionSelector": "f8119d51",
|
|
"id": 644,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "MAX_NUMBER_RESERVES",
|
|
"nameLocation": "31916:19:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 640,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "31935:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 643,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 642,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 644,
|
|
"src": "31961:6:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 641,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "31961:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "31960:8:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "31907:62:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 645,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "31975:199:1",
|
|
"text": " @notice Mints the assets accrued through the reserve factor to the treasury in the form of aTokens\n @param assets The list of reserves for which the minting needs to be executed"
|
|
},
|
|
"functionSelector": "9cd19996",
|
|
"id": 651,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "mintToTreasury",
|
|
"nameLocation": "32187:14:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 649,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 648,
|
|
"mutability": "mutable",
|
|
"name": "assets",
|
|
"nameLocation": "32221:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 651,
|
|
"src": "32202:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 646,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "32202:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 647,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "32202:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "32201:27:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 650,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "32237:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "32178:60:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 652,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "32244:216:1",
|
|
"text": " @notice Rescue and transfer tokens locked in this contract\n @param token The address of the token\n @param to The address of the recipient\n @param amount The amount of token to transfer"
|
|
},
|
|
"functionSelector": "cea9d26f",
|
|
"id": 661,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "rescueTokens",
|
|
"nameLocation": "32473:12:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 659,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 654,
|
|
"mutability": "mutable",
|
|
"name": "token",
|
|
"nameLocation": "32494:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 661,
|
|
"src": "32486:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 653,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "32486:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 656,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "32509:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 661,
|
|
"src": "32501:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 655,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "32501:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 658,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "32521:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 661,
|
|
"src": "32513:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 657,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "32513:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "32485:43:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 660,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "32537:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "32464:74:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 662,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "32544:779:1",
|
|
"text": " @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\n - E.g. User supplies 100 USDC and gets in return 100 aUSDC\n @dev Deprecated: Use the `supply` function instead\n @param asset The address of the underlying asset to supply\n @param amount The amount to be supplied\n @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n is a different wallet\n @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n 0 if the action is executed directly by the user, without any middle-man"
|
|
},
|
|
"functionSelector": "e8eda9df",
|
|
"id": 673,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "deposit",
|
|
"nameLocation": "33336:7:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 671,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 664,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "33352:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 673,
|
|
"src": "33344:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 663,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "33344:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 666,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "33367:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 673,
|
|
"src": "33359:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 665,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "33359:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 668,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "33383:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 673,
|
|
"src": "33375:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 667,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "33375:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 670,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "33402:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 673,
|
|
"src": "33395:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 669,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "33395:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "33343:72:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 672,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "33424:0:1"
|
|
},
|
|
"scope": 674,
|
|
"src": "33327:98:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 675,
|
|
"src": "309:33119:1",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
55,
|
|
66,
|
|
79,
|
|
90,
|
|
108,
|
|
121,
|
|
131,
|
|
138,
|
|
145,
|
|
152,
|
|
159,
|
|
166,
|
|
184,
|
|
201,
|
|
216,
|
|
223
|
|
]
|
|
}
|
|
],
|
|
"src": "38:33392:1"
|
|
},
|
|
"id": 1
|
|
},
|
|
"contracts/interfaces/IPoolAddressesProvider.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/interfaces/IPoolAddressesProvider.sol",
|
|
"exportedSymbols": {
|
|
"IPoolAddressesProvider": [
|
|
883
|
|
]
|
|
},
|
|
"id": 884,
|
|
"license": "AGPL-3.0",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 676,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "38:23:2"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IPoolAddressesProvider",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 677,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "65:130:2",
|
|
"text": " @title IPoolAddressesProvider\n @author Aave\n @notice Defines the basic interface for a Pool Addresses Provider."
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 883,
|
|
"linearizedBaseContracts": [
|
|
883
|
|
],
|
|
"name": "IPoolAddressesProvider",
|
|
"nameLocation": "207:22:2",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 678,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "235:168:2",
|
|
"text": " @dev Emitted when the market identifier is updated.\n @param oldMarketId The old id of the market\n @param newMarketId The new id of the market"
|
|
},
|
|
"eventSelector": "e685c8cdecc6030c45030fd54778812cb84ed8e4467c38294403d68ba7860823",
|
|
"id": 684,
|
|
"name": "MarketIdSet",
|
|
"nameLocation": "413:11:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 683,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 680,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldMarketId",
|
|
"nameLocation": "440:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 684,
|
|
"src": "425:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 679,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "425:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 682,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newMarketId",
|
|
"nameLocation": "468:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 684,
|
|
"src": "453:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 681,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "453:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "424:56:2"
|
|
},
|
|
"src": "407:74:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 685,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "487:159:2",
|
|
"text": " @dev Emitted when the pool is updated.\n @param oldAddress The old address of the Pool\n @param newAddress The new address of the Pool"
|
|
},
|
|
"eventSelector": "90affc163f1a2dfedcd36aa02ed992eeeba8100a4014f0b4cdc20ea265a66627",
|
|
"id": 691,
|
|
"name": "PoolUpdated",
|
|
"nameLocation": "656:11:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 690,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 687,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "684:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 691,
|
|
"src": "668:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 686,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "668:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 689,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "712:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 691,
|
|
"src": "696:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 688,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "696:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "667:56:2"
|
|
},
|
|
"src": "650:74:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 692,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "730:196:2",
|
|
"text": " @dev Emitted when the pool configurator is updated.\n @param oldAddress The old address of the PoolConfigurator\n @param newAddress The new address of the PoolConfigurator"
|
|
},
|
|
"eventSelector": "8932892569eba59c8382a089d9b732d1f49272878775235761a2a6b0309cd465",
|
|
"id": 698,
|
|
"name": "PoolConfiguratorUpdated",
|
|
"nameLocation": "936:23:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 697,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 694,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "976:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 698,
|
|
"src": "960:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 693,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "960:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 696,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "1004:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 698,
|
|
"src": "988:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 695,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "988:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "959:56:2"
|
|
},
|
|
"src": "930:86:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 699,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1022:181:2",
|
|
"text": " @dev Emitted when the price oracle is updated.\n @param oldAddress The old address of the PriceOracle\n @param newAddress The new address of the PriceOracle"
|
|
},
|
|
"eventSelector": "56b5f80d8cac1479698aa7d01605fd6111e90b15fc4d2b377417f46034876cbd",
|
|
"id": 705,
|
|
"name": "PriceOracleUpdated",
|
|
"nameLocation": "1213:18:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 704,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 701,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "1248:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 705,
|
|
"src": "1232:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 700,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1232:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 703,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "1276:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 705,
|
|
"src": "1260:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 702,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1260:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1231:56:2"
|
|
},
|
|
"src": "1207:81:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 706,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1294:178:2",
|
|
"text": " @dev Emitted when the ACL manager is updated.\n @param oldAddress The old address of the ACLManager\n @param newAddress The new address of the ACLManager"
|
|
},
|
|
"eventSelector": "b30efa04327bb8a537d61cc1e5c48095345ad18ef7cc04e6bacf7dfb6caaf507",
|
|
"id": 712,
|
|
"name": "ACLManagerUpdated",
|
|
"nameLocation": "1482:17:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 711,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 708,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "1516:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 712,
|
|
"src": "1500:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 707,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1500:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 710,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "1544:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 712,
|
|
"src": "1528:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 709,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1528:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1499:56:2"
|
|
},
|
|
"src": "1476:80:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 713,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1562:172:2",
|
|
"text": " @dev Emitted when the ACL admin is updated.\n @param oldAddress The old address of the ACLAdmin\n @param newAddress The new address of the ACLAdmin"
|
|
},
|
|
"eventSelector": "e9cf53972264dc95304fd424458745019ddfca0e37ae8f703d74772c41ad115b",
|
|
"id": 719,
|
|
"name": "ACLAdminUpdated",
|
|
"nameLocation": "1744:15:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 718,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 715,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "1776:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 719,
|
|
"src": "1760:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 714,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1760:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 717,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "1804:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 719,
|
|
"src": "1788:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 716,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1788:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1759:56:2"
|
|
},
|
|
"src": "1738:78:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 720,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1822:206:2",
|
|
"text": " @dev Emitted when the price oracle sentinel is updated.\n @param oldAddress The old address of the PriceOracleSentinel\n @param newAddress The new address of the PriceOracleSentinel"
|
|
},
|
|
"eventSelector": "5326514eeca90494a14bedabcff812a0e683029ee85d1e23824d44fd14cd6ae7",
|
|
"id": 726,
|
|
"name": "PriceOracleSentinelUpdated",
|
|
"nameLocation": "2038:26:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 725,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 722,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "2081:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 726,
|
|
"src": "2065:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 721,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2065:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 724,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "2109:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 726,
|
|
"src": "2093:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 723,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2093:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2064:56:2"
|
|
},
|
|
"src": "2032:89:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 727,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2127:197:2",
|
|
"text": " @dev Emitted when the pool data provider is updated.\n @param oldAddress The old address of the PoolDataProvider\n @param newAddress The new address of the PoolDataProvider"
|
|
},
|
|
"eventSelector": "c853974cfbf81487a14a23565917bee63f527853bcb5fa54f2ae1cdf8a38356d",
|
|
"id": 733,
|
|
"name": "PoolDataProviderUpdated",
|
|
"nameLocation": "2334:23:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 732,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 729,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "2374:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 733,
|
|
"src": "2358:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 728,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2358:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 731,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "2402:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 733,
|
|
"src": "2386:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 730,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2386:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2357:56:2"
|
|
},
|
|
"src": "2328:86:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 734,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2420:248:2",
|
|
"text": " @dev Emitted when a new proxy is created.\n @param id The identifier of the proxy\n @param proxyAddress The address of the created proxy contract\n @param implementationAddress The address of the implementation contract"
|
|
},
|
|
"eventSelector": "4a465a9bd819d9662563c1e11ae958f8109e437e7f4bf1c6ef0b9a7b3f35d478",
|
|
"id": 742,
|
|
"name": "ProxyCreated",
|
|
"nameLocation": "2678:12:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 741,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 736,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "2713:2:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 742,
|
|
"src": "2697:18:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 735,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2697:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 738,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "proxyAddress",
|
|
"nameLocation": "2738:12:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 742,
|
|
"src": "2722:28:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 737,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2722:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 740,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "implementationAddress",
|
|
"nameLocation": "2773:21:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 742,
|
|
"src": "2757:37:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 739,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2757:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2690:109:2"
|
|
},
|
|
"src": "2672:128:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 743,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2806:243:2",
|
|
"text": " @dev Emitted when a new non-proxied contract address is registered.\n @param id The identifier of the contract\n @param oldAddress The address of the old contract\n @param newAddress The address of the new contract"
|
|
},
|
|
"eventSelector": "9ef0e8c8e52743bb38b83b17d9429141d494b8041ca6d616a6c77cebae9cd8b7",
|
|
"id": 751,
|
|
"name": "AddressSet",
|
|
"nameLocation": "3059:10:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 750,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 745,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "3086:2:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 751,
|
|
"src": "3070:18:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 744,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3070:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 747,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "oldAddress",
|
|
"nameLocation": "3106:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 751,
|
|
"src": "3090:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 746,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3090:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 749,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "3134:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 751,
|
|
"src": "3118:26:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 748,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3118:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3069:76:2"
|
|
},
|
|
"src": "3053:93:2"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 752,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3152:373:2",
|
|
"text": " @dev Emitted when the implementation of the proxy registered with id is updated\n @param id The identifier of the contract\n @param proxyAddress The address of the proxy contract\n @param oldImplementationAddress The address of the old implementation contract\n @param newImplementationAddress The address of the new implementation contract"
|
|
},
|
|
"eventSelector": "3bbd45b5429b385e3fb37ad5cd1cd1435a3c8ec32196c7937597365a3fd3e99c",
|
|
"id": 762,
|
|
"name": "AddressSetAsProxy",
|
|
"nameLocation": "3535:17:2",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 761,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 754,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "3575:2:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 762,
|
|
"src": "3559:18:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 753,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3559:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 756,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "proxyAddress",
|
|
"nameLocation": "3600:12:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 762,
|
|
"src": "3584:28:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 755,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3584:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 758,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "oldImplementationAddress",
|
|
"nameLocation": "3627:24:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 762,
|
|
"src": "3619:32:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 757,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3619:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 760,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newImplementationAddress",
|
|
"nameLocation": "3674:24:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 762,
|
|
"src": "3658:40:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 759,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3658:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3552:151:2"
|
|
},
|
|
"src": "3529:175:2"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 763,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3710:120:2",
|
|
"text": " @notice Returns the id of the Aave market to which this contract points to.\n @return The market id"
|
|
},
|
|
"functionSelector": "568ef470",
|
|
"id": 768,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getMarketId",
|
|
"nameLocation": "3843:11:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 764,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "3854:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 767,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 766,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 768,
|
|
"src": "3880:13:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 765,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3880:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "3879:15:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "3834:61:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 769,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "3901:257:2",
|
|
"text": " @notice Associates an id with a specific PoolAddressesProvider.\n @dev This can be used to create an onchain registry of PoolAddressesProviders to\n identify and validate multiple Aave markets.\n @param newMarketId The market id"
|
|
},
|
|
"functionSelector": "f67b1847",
|
|
"id": 774,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setMarketId",
|
|
"nameLocation": "4171:11:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 772,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 771,
|
|
"mutability": "mutable",
|
|
"name": "newMarketId",
|
|
"nameLocation": "4199:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 774,
|
|
"src": "4183:27:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_calldata_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 770,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4183:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4182:29:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 773,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "4220:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "4162:59:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 775,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4227:312:2",
|
|
"text": " @notice Returns an address by its identifier.\n @dev The returned address might be an EOA or a contract, potentially proxied\n @dev It returns ZERO if there is no registered address with the given id\n @param id The id\n @return The address of the registered for the specified id"
|
|
},
|
|
"functionSelector": "21f8a721",
|
|
"id": 782,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getAddress",
|
|
"nameLocation": "4552:10:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 778,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 777,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "4571:2:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 782,
|
|
"src": "4563:10:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 776,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4563:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4562:12:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 781,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 780,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 782,
|
|
"src": "4598:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 779,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4598:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "4597:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "4543:64:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 783,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "4613:493:2",
|
|
"text": " @notice General function to update the implementation of a proxy registered with\n certain `id`. If there is no proxy registered, it will instantiate one and\n set as implementation the `newImplementationAddress`.\n @dev IMPORTANT Use this function carefully, only for ids that don't have an explicit\n setter function, in order to avoid unexpected consequences\n @param id The id\n @param newImplementationAddress The address of the new implementation"
|
|
},
|
|
"functionSelector": "5dcc528c",
|
|
"id": 790,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setAddressAsProxy",
|
|
"nameLocation": "5119:17:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 788,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 785,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "5145:2:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 790,
|
|
"src": "5137:10:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 784,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5137:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 787,
|
|
"mutability": "mutable",
|
|
"name": "newImplementationAddress",
|
|
"nameLocation": "5157:24:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 790,
|
|
"src": "5149:32:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 786,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5149:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5136:46:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 789,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "5191:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "5110:82:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 791,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5198:249:2",
|
|
"text": " @notice Sets an address for an id replacing the address saved in the addresses map.\n @dev IMPORTANT Use this function carefully, as it will do a hard replacement\n @param id The id\n @param newAddress The address to set"
|
|
},
|
|
"functionSelector": "ca446dd9",
|
|
"id": 798,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setAddress",
|
|
"nameLocation": "5460:10:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 796,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 793,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "5479:2:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 798,
|
|
"src": "5471:10:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 792,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5471:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 795,
|
|
"mutability": "mutable",
|
|
"name": "newAddress",
|
|
"nameLocation": "5491:10:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 798,
|
|
"src": "5483:18:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 794,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5483:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5470:32:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 797,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "5511:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "5451:61:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 799,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5518:100:2",
|
|
"text": " @notice Returns the address of the Pool proxy.\n @return The Pool proxy address"
|
|
},
|
|
"functionSelector": "026b1d5f",
|
|
"id": 804,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPool",
|
|
"nameLocation": "5631:7:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 800,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "5638:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 803,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 802,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 804,
|
|
"src": "5664:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 801,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5664:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5663:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "5622:51:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 805,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5679:228:2",
|
|
"text": " @notice Updates the implementation of the Pool, or creates a proxy\n setting the new `pool` implementation when the function is called for the first time.\n @param newPoolImpl The new Pool implementation"
|
|
},
|
|
"functionSelector": "a1564406",
|
|
"id": 810,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setPoolImpl",
|
|
"nameLocation": "5920:11:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 808,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 807,
|
|
"mutability": "mutable",
|
|
"name": "newPoolImpl",
|
|
"nameLocation": "5940:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 810,
|
|
"src": "5932:19:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 806,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5932:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "5931:21:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 809,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "5961:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "5911:51:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 811,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "5968:124:2",
|
|
"text": " @notice Returns the address of the PoolConfigurator proxy.\n @return The PoolConfigurator proxy address"
|
|
},
|
|
"functionSelector": "631adfca",
|
|
"id": 816,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPoolConfigurator",
|
|
"nameLocation": "6105:19:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 812,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "6124:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 815,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 814,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 816,
|
|
"src": "6150:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 813,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6150:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6149:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "6096:63:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 817,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "6165:276:2",
|
|
"text": " @notice Updates the implementation of the PoolConfigurator, or creates a proxy\n setting the new `PoolConfigurator` implementation when the function is called for the first time.\n @param newPoolConfiguratorImpl The new PoolConfigurator implementation"
|
|
},
|
|
"functionSelector": "e4ca28b7",
|
|
"id": 822,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setPoolConfiguratorImpl",
|
|
"nameLocation": "6454:23:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 820,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 819,
|
|
"mutability": "mutable",
|
|
"name": "newPoolConfiguratorImpl",
|
|
"nameLocation": "6486:23:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 822,
|
|
"src": "6478:31:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 818,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6478:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6477:33:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 821,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "6519:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "6445:75:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 823,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "6526:110:2",
|
|
"text": " @notice Returns the address of the price oracle.\n @return The address of the PriceOracle"
|
|
},
|
|
"functionSelector": "fca513a8",
|
|
"id": 828,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPriceOracle",
|
|
"nameLocation": "6649:14:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 824,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "6663:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 827,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 826,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 828,
|
|
"src": "6689:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 825,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6689:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6688:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "6640:58:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 829,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "6704:128:2",
|
|
"text": " @notice Updates the address of the price oracle.\n @param newPriceOracle The address of the new PriceOracle"
|
|
},
|
|
"functionSelector": "530e784f",
|
|
"id": 834,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setPriceOracle",
|
|
"nameLocation": "6845:14:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 832,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 831,
|
|
"mutability": "mutable",
|
|
"name": "newPriceOracle",
|
|
"nameLocation": "6868:14:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 834,
|
|
"src": "6860:22:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 830,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6860:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "6859:24:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 833,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "6892:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "6836:57:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 835,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "6899:108:2",
|
|
"text": " @notice Returns the address of the ACL manager.\n @return The address of the ACLManager"
|
|
},
|
|
"functionSelector": "707cd716",
|
|
"id": 840,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getACLManager",
|
|
"nameLocation": "7020:13:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 836,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "7033:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 839,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 838,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 840,
|
|
"src": "7059:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 837,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7059:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7058:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "7011:57:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 841,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7074:125:2",
|
|
"text": " @notice Updates the address of the ACL manager.\n @param newAclManager The address of the new ACLManager"
|
|
},
|
|
"functionSelector": "ed301ca9",
|
|
"id": 846,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setACLManager",
|
|
"nameLocation": "7212:13:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 844,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 843,
|
|
"mutability": "mutable",
|
|
"name": "newAclManager",
|
|
"nameLocation": "7234:13:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 846,
|
|
"src": "7226:21:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 842,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7226:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7225:23:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 845,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "7257:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "7203:55:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 847,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7264:105:2",
|
|
"text": " @notice Returns the address of the ACL admin.\n @return The address of the ACL admin"
|
|
},
|
|
"functionSelector": "0e67178c",
|
|
"id": 852,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getACLAdmin",
|
|
"nameLocation": "7382:11:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 848,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "7393:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 851,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 850,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 852,
|
|
"src": "7419:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 849,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7419:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7418:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "7373:55:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 853,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7434:120:2",
|
|
"text": " @notice Updates the address of the ACL admin.\n @param newAclAdmin The address of the new ACL admin"
|
|
},
|
|
"functionSelector": "76d84ffc",
|
|
"id": 858,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setACLAdmin",
|
|
"nameLocation": "7567:11:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 856,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 855,
|
|
"mutability": "mutable",
|
|
"name": "newAclAdmin",
|
|
"nameLocation": "7587:11:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 858,
|
|
"src": "7579:19:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 854,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7579:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7578:21:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 857,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "7608:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "7558:51:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 859,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7615:127:2",
|
|
"text": " @notice Returns the address of the price oracle sentinel.\n @return The address of the PriceOracleSentinel"
|
|
},
|
|
"functionSelector": "5eb88d3d",
|
|
"id": 864,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPriceOracleSentinel",
|
|
"nameLocation": "7755:22:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 860,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "7777:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 863,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 862,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 864,
|
|
"src": "7803:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 861,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7803:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "7802:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "7746:66:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 865,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "7818:153:2",
|
|
"text": " @notice Updates the address of the price oracle sentinel.\n @param newPriceOracleSentinel The address of the new PriceOracleSentinel"
|
|
},
|
|
"functionSelector": "74944cec",
|
|
"id": 870,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setPriceOracleSentinel",
|
|
"nameLocation": "7984:22:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 868,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 867,
|
|
"mutability": "mutable",
|
|
"name": "newPriceOracleSentinel",
|
|
"nameLocation": "8015:22:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 870,
|
|
"src": "8007:30:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 866,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8007:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "8006:32:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 869,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "8047:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "7975:73:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 871,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "8054:112:2",
|
|
"text": " @notice Returns the address of the data provider.\n @return The address of the DataProvider"
|
|
},
|
|
"functionSelector": "e860accb",
|
|
"id": 876,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPoolDataProvider",
|
|
"nameLocation": "8179:19:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 872,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "8198:2:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 875,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 874,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 876,
|
|
"src": "8224:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 873,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8224:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "8223:9:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "8170:63:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 877,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "8239:131:2",
|
|
"text": " @notice Updates the address of the data provider.\n @param newDataProvider The address of the new DataProvider"
|
|
},
|
|
"functionSelector": "e44e9ed1",
|
|
"id": 882,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setPoolDataProvider",
|
|
"nameLocation": "8383:19:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 880,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 879,
|
|
"mutability": "mutable",
|
|
"name": "newDataProvider",
|
|
"nameLocation": "8411:15:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 882,
|
|
"src": "8403:23:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 878,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "8403:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "8402:25:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 881,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "8436:0:2"
|
|
},
|
|
"scope": 883,
|
|
"src": "8374:63:2",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 884,
|
|
"src": "197:8243:2",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
684,
|
|
691,
|
|
698,
|
|
705,
|
|
712,
|
|
719,
|
|
726,
|
|
733,
|
|
742,
|
|
751,
|
|
762
|
|
]
|
|
}
|
|
],
|
|
"src": "38:8404:2"
|
|
},
|
|
"id": 2
|
|
},
|
|
"contracts/protocol/libraries/types/DataTypes.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/protocol/libraries/types/DataTypes.sol",
|
|
"exportedSymbols": {
|
|
"DataTypes": [
|
|
1235
|
|
]
|
|
},
|
|
"id": 1236,
|
|
"license": "BUSL-1.1",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 885,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "38:23:3"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "DataTypes",
|
|
"contractDependencies": [],
|
|
"contractKind": "library",
|
|
"fullyImplemented": true,
|
|
"id": 1235,
|
|
"linearizedBaseContracts": [
|
|
1235
|
|
],
|
|
"name": "DataTypes",
|
|
"nameLocation": "73:9:3",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "DataTypes.ReserveData",
|
|
"id": 917,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 888,
|
|
"mutability": "mutable",
|
|
"name": "configuration",
|
|
"nameLocation": "178:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "154:37:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 887,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 886,
|
|
"name": "ReserveConfigurationMap",
|
|
"nameLocations": [
|
|
"154:23:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 920,
|
|
"src": "154:23:3"
|
|
},
|
|
"referencedDeclaration": 920,
|
|
"src": "154:23:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 890,
|
|
"mutability": "mutable",
|
|
"name": "liquidityIndex",
|
|
"nameLocation": "251:14:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "243:22:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 889,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "243:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 892,
|
|
"mutability": "mutable",
|
|
"name": "currentLiquidityRate",
|
|
"nameLocation": "329:20:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "321:28:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 891,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "321:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 894,
|
|
"mutability": "mutable",
|
|
"name": "variableBorrowIndex",
|
|
"nameLocation": "411:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "403:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 893,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "403:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 896,
|
|
"mutability": "mutable",
|
|
"name": "currentVariableBorrowRate",
|
|
"nameLocation": "503:25:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "495:33:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 895,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "495:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 898,
|
|
"mutability": "mutable",
|
|
"name": "currentStableBorrowRate",
|
|
"nameLocation": "599:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "591:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 897,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "591:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 900,
|
|
"mutability": "mutable",
|
|
"name": "lastUpdateTimestamp",
|
|
"nameLocation": "668:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "661:26:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
},
|
|
"typeName": {
|
|
"id": 899,
|
|
"name": "uint40",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "661:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 902,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "790:2:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "783:9:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 901,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "783:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 904,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "829:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "821:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 903,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "821:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 906,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtTokenAddress",
|
|
"nameLocation": "888:22:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "880:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 905,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "880:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 908,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtTokenAddress",
|
|
"nameLocation": "958:24:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "950:32:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 907,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "950:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 910,
|
|
"mutability": "mutable",
|
|
"name": "interestRateStrategyAddress",
|
|
"nameLocation": "1042:27:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "1034:35:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 909,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1034:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 912,
|
|
"mutability": "mutable",
|
|
"name": "accruedToTreasury",
|
|
"nameLocation": "1128:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "1120:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 911,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1120:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 914,
|
|
"mutability": "mutable",
|
|
"name": "unbacked",
|
|
"nameLocation": "1236:8:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "1228:16:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 913,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1228:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 916,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeTotalDebt",
|
|
"nameLocation": "1333:22:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 917,
|
|
"src": "1325:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 915,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1325:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ReserveData",
|
|
"nameLocation": "95:11:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "88:1273:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ReserveConfigurationMap",
|
|
"id": 920,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 919,
|
|
"mutability": "mutable",
|
|
"name": "data",
|
|
"nameLocation": "2319:4:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 920,
|
|
"src": "2311:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 918,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2311:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ReserveConfigurationMap",
|
|
"nameLocation": "1374:23:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "1367:962:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.UserConfigurationMap",
|
|
"id": 924,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 923,
|
|
"mutability": "mutable",
|
|
"name": "data",
|
|
"nameLocation": "2646:4:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 924,
|
|
"src": "2638:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 922,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2638:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "UserConfigurationMap",
|
|
"nameLocation": "2342:20:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "2335:321:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.EModeCategory",
|
|
"id": 935,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 926,
|
|
"mutability": "mutable",
|
|
"name": "ltv",
|
|
"nameLocation": "2768:3:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 935,
|
|
"src": "2761:10:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 925,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2761:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 928,
|
|
"mutability": "mutable",
|
|
"name": "liquidationThreshold",
|
|
"nameLocation": "2785:20:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 935,
|
|
"src": "2778:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 927,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2778:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 930,
|
|
"mutability": "mutable",
|
|
"name": "liquidationBonus",
|
|
"nameLocation": "2819:16:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 935,
|
|
"src": "2812:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 929,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2812:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 932,
|
|
"mutability": "mutable",
|
|
"name": "priceSource",
|
|
"nameLocation": "2962:11:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 935,
|
|
"src": "2954:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 931,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2954:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 934,
|
|
"mutability": "mutable",
|
|
"name": "label",
|
|
"nameLocation": "2987:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 935,
|
|
"src": "2980:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 933,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2980:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "EModeCategory",
|
|
"nameLocation": "2669:13:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "2662:336:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.InterestRateMode",
|
|
"id": 939,
|
|
"members": [
|
|
{
|
|
"id": 936,
|
|
"name": "NONE",
|
|
"nameLocation": "3027:4:3",
|
|
"nodeType": "EnumValue",
|
|
"src": "3027:4:3"
|
|
},
|
|
{
|
|
"id": 937,
|
|
"name": "STABLE",
|
|
"nameLocation": "3033:6:3",
|
|
"nodeType": "EnumValue",
|
|
"src": "3033:6:3"
|
|
},
|
|
{
|
|
"id": 938,
|
|
"name": "VARIABLE",
|
|
"nameLocation": "3041:8:3",
|
|
"nodeType": "EnumValue",
|
|
"src": "3041:8:3"
|
|
}
|
|
],
|
|
"name": "InterestRateMode",
|
|
"nameLocation": "3009:16:3",
|
|
"nodeType": "EnumDefinition",
|
|
"src": "3004:46:3"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ReserveCache",
|
|
"id": 981,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 941,
|
|
"mutability": "mutable",
|
|
"name": "currScaledVariableDebt",
|
|
"nameLocation": "3091:22:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3083:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 940,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3083:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 943,
|
|
"mutability": "mutable",
|
|
"name": "nextScaledVariableDebt",
|
|
"nameLocation": "3128:22:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3120:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 942,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3120:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 945,
|
|
"mutability": "mutable",
|
|
"name": "currPrincipalStableDebt",
|
|
"nameLocation": "3165:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3157:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 944,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3157:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 947,
|
|
"mutability": "mutable",
|
|
"name": "currAvgStableBorrowRate",
|
|
"nameLocation": "3203:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3195:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 946,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3195:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 949,
|
|
"mutability": "mutable",
|
|
"name": "currTotalStableDebt",
|
|
"nameLocation": "3241:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3233:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 948,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3233:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 951,
|
|
"mutability": "mutable",
|
|
"name": "nextAvgStableBorrowRate",
|
|
"nameLocation": "3275:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3267:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 950,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3267:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 953,
|
|
"mutability": "mutable",
|
|
"name": "nextTotalStableDebt",
|
|
"nameLocation": "3313:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3305:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 952,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3305:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 955,
|
|
"mutability": "mutable",
|
|
"name": "currLiquidityIndex",
|
|
"nameLocation": "3347:18:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3339:26:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 954,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3339:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 957,
|
|
"mutability": "mutable",
|
|
"name": "nextLiquidityIndex",
|
|
"nameLocation": "3380:18:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3372:26:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 956,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3372:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 959,
|
|
"mutability": "mutable",
|
|
"name": "currVariableBorrowIndex",
|
|
"nameLocation": "3413:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3405:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 958,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3405:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 961,
|
|
"mutability": "mutable",
|
|
"name": "nextVariableBorrowIndex",
|
|
"nameLocation": "3451:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3443:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 960,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3443:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 963,
|
|
"mutability": "mutable",
|
|
"name": "currLiquidityRate",
|
|
"nameLocation": "3489:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3481:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 962,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3481:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 965,
|
|
"mutability": "mutable",
|
|
"name": "currVariableBorrowRate",
|
|
"nameLocation": "3521:22:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3513:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 964,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3513:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 967,
|
|
"mutability": "mutable",
|
|
"name": "reserveFactor",
|
|
"nameLocation": "3558:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3550:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 966,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3550:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 970,
|
|
"mutability": "mutable",
|
|
"name": "reserveConfiguration",
|
|
"nameLocation": "3602:20:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3578:44:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 969,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 968,
|
|
"name": "ReserveConfigurationMap",
|
|
"nameLocations": [
|
|
"3578:23:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 920,
|
|
"src": "3578:23:3"
|
|
},
|
|
"referencedDeclaration": 920,
|
|
"src": "3578:23:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$920_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 972,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "3637:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3629:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 971,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3629:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 974,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtTokenAddress",
|
|
"nameLocation": "3665:22:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3657:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 973,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3657:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 976,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtTokenAddress",
|
|
"nameLocation": "3702:24:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3694:32:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 975,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3694:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 978,
|
|
"mutability": "mutable",
|
|
"name": "reserveLastUpdateTimestamp",
|
|
"nameLocation": "3740:26:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3733:33:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
},
|
|
"typeName": {
|
|
"id": 977,
|
|
"name": "uint40",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3733:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 980,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtLastUpdateTimestamp",
|
|
"nameLocation": "3780:29:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 981,
|
|
"src": "3773:36:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
},
|
|
"typeName": {
|
|
"id": 979,
|
|
"name": "uint40",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3773:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ReserveCache",
|
|
"nameLocation": "3063:12:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "3056:759:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteLiquidationCallParams",
|
|
"id": 1000,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 983,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "3872:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "3864:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 982,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3864:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 985,
|
|
"mutability": "mutable",
|
|
"name": "debtToCover",
|
|
"nameLocation": "3900:11:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "3892:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 984,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3892:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 987,
|
|
"mutability": "mutable",
|
|
"name": "collateralAsset",
|
|
"nameLocation": "3926:15:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "3918:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 986,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3918:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 989,
|
|
"mutability": "mutable",
|
|
"name": "debtAsset",
|
|
"nameLocation": "3956:9:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "3948:17:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 988,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3948:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 991,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "3980:4:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "3972:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 990,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3972:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 993,
|
|
"mutability": "mutable",
|
|
"name": "receiveAToken",
|
|
"nameLocation": "3996:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "3991:18:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 992,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3991:4:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 995,
|
|
"mutability": "mutable",
|
|
"name": "priceOracle",
|
|
"nameLocation": "4024:11:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "4016:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 994,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4016:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 997,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "4048:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "4042:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 996,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4042:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 999,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "4080:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1000,
|
|
"src": "4072:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 998,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4072:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteLiquidationCallParams",
|
|
"nameLocation": "3828:28:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "3821:284:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteSupplyParams",
|
|
"id": 1009,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1002,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4153:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1009,
|
|
"src": "4145:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1001,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4145:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1004,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4173:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1009,
|
|
"src": "4165:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1003,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4165:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1006,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "4194:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1009,
|
|
"src": "4186:18:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1005,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4186:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1008,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "4218:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1009,
|
|
"src": "4211:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1007,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4211:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteSupplyParams",
|
|
"nameLocation": "4118:19:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "4111:125:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteBorrowParams",
|
|
"id": 1035,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1011,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4284:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4276:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1010,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4276:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1013,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "4304:4:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4296:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1012,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4296:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1015,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "4323:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4315:18:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1014,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4315:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1017,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4348:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4340:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1016,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4340:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1020,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "4378:16:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4361:33:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 1019,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1018,
|
|
"name": "InterestRateMode",
|
|
"nameLocations": [
|
|
"4361:16:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 939,
|
|
"src": "4361:16:3"
|
|
},
|
|
"referencedDeclaration": 939,
|
|
"src": "4361:16:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1022,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "4408:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4401:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1021,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4401:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1024,
|
|
"mutability": "mutable",
|
|
"name": "releaseUnderlying",
|
|
"nameLocation": "4432:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4427:22:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 1023,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4427:4:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1026,
|
|
"mutability": "mutable",
|
|
"name": "maxStableRateBorrowSizePercent",
|
|
"nameLocation": "4464:30:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4456:38:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1025,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4456:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1028,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "4509:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4501:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1027,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4501:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1030,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "4537:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4529:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1029,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4529:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1032,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "4556:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4550:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1031,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4550:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1034,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "4588:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1035,
|
|
"src": "4580:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1033,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4580:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteBorrowParams",
|
|
"nameLocation": "4249:19:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "4242:371:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteRepayParams",
|
|
"id": 1047,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1037,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4660:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1047,
|
|
"src": "4652:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1036,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4652:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1039,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4680:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1047,
|
|
"src": "4672:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1038,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4672:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1042,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "4710:16:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1047,
|
|
"src": "4693:33:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 1041,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1040,
|
|
"name": "InterestRateMode",
|
|
"nameLocations": [
|
|
"4693:16:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 939,
|
|
"src": "4693:16:3"
|
|
},
|
|
"referencedDeclaration": 939,
|
|
"src": "4693:16:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1044,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "4741:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1047,
|
|
"src": "4733:18:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1043,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4733:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1046,
|
|
"mutability": "mutable",
|
|
"name": "useATokens",
|
|
"nameLocation": "4763:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1047,
|
|
"src": "4758:15:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 1045,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4758:4:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteRepayParams",
|
|
"nameLocation": "4626:18:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "4619:160:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteWithdrawParams",
|
|
"id": 1060,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1049,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4829:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1060,
|
|
"src": "4821:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1048,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4821:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1051,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4849:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1060,
|
|
"src": "4841:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1050,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4841:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1053,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "4870:2:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1060,
|
|
"src": "4862:10:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1052,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4862:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1055,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "4887:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1060,
|
|
"src": "4879:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1054,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4879:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1057,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "4915:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1060,
|
|
"src": "4907:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1056,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4907:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1059,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "4934:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1060,
|
|
"src": "4928:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1058,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4928:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteWithdrawParams",
|
|
"nameLocation": "4792:21:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "4785:172:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteSetUserEModeParams",
|
|
"id": 1067,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1062,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "5011:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1067,
|
|
"src": "5003:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1061,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5003:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1064,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "5039:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1067,
|
|
"src": "5031:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1063,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5031:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1066,
|
|
"mutability": "mutable",
|
|
"name": "categoryId",
|
|
"nameLocation": "5058:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1067,
|
|
"src": "5052:16:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1065,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5052:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteSetUserEModeParams",
|
|
"nameLocation": "4970:25:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "4963:111:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FinalizeTransferParams",
|
|
"id": 1086,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1069,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "5125:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5117:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1068,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5117:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1071,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "5145:4:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5137:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1070,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5137:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1073,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "5164:2:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5156:10:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1072,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5156:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1075,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "5181:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5173:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1074,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5173:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1077,
|
|
"mutability": "mutable",
|
|
"name": "balanceFromBefore",
|
|
"nameLocation": "5202:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5194:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1076,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5194:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1079,
|
|
"mutability": "mutable",
|
|
"name": "balanceToBefore",
|
|
"nameLocation": "5234:15:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5226:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1078,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5226:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1081,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "5264:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5256:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1080,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5256:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1083,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "5292:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5284:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1082,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5284:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1085,
|
|
"mutability": "mutable",
|
|
"name": "fromEModeCategory",
|
|
"nameLocation": "5311:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1086,
|
|
"src": "5305:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1084,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5305:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FinalizeTransferParams",
|
|
"nameLocation": "5087:22:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "5080:254:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FlashloanParams",
|
|
"id": 1118,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1088,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "5378:15:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5370:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1087,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5370:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1091,
|
|
"mutability": "mutable",
|
|
"name": "assets",
|
|
"nameLocation": "5410:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5400:16:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 1089,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5400:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 1090,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "5400:9:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1094,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "5433:7:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5423:17:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 1092,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5423:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1093,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "5423:9:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1097,
|
|
"mutability": "mutable",
|
|
"name": "interestRateModes",
|
|
"nameLocation": "5457:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5447:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 1095,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5447:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 1096,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "5447:9:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1099,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "5489:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5481:18:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1098,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5481:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1101,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "5512:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5506:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 1100,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5506:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1103,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "5532:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5525:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1102,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5525:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1105,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "5559:26:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5551:34:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1104,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5551:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1107,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumTotal",
|
|
"nameLocation": "5600:21:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5592:29:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1106,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5592:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1109,
|
|
"mutability": "mutable",
|
|
"name": "maxStableRateBorrowSizePercent",
|
|
"nameLocation": "5636:30:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5628:38:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1108,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5628:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1111,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "5681:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5673:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1110,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5673:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1113,
|
|
"mutability": "mutable",
|
|
"name": "addressesProvider",
|
|
"nameLocation": "5709:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5701:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1112,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5701:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1115,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "5739:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5733:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1114,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5733:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1117,
|
|
"mutability": "mutable",
|
|
"name": "isAuthorizedFlashBorrower",
|
|
"nameLocation": "5768:25:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1118,
|
|
"src": "5763:30:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 1116,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5763:4:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FlashloanParams",
|
|
"nameLocation": "5347:15:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "5340:459:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FlashloanSimpleParams",
|
|
"id": 1133,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1120,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "5849:15:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5841:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1119,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5841:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1122,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "5879:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5871:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1121,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5871:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1124,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "5899:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5891:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1123,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5891:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1126,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "5918:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5912:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 1125,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5912:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1128,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "5938:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5931:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1127,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5931:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1130,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "5965:26:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5957:34:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1129,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5957:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1132,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumTotal",
|
|
"nameLocation": "6006:21:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1133,
|
|
"src": "5998:29:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1131,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5998:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FlashloanSimpleParams",
|
|
"nameLocation": "5812:21:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "5805:228:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FlashLoanRepaymentParams",
|
|
"id": 1146,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1135,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "6086:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1146,
|
|
"src": "6078:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1134,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6078:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1137,
|
|
"mutability": "mutable",
|
|
"name": "totalPremium",
|
|
"nameLocation": "6107:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1146,
|
|
"src": "6099:20:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1136,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6099:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1139,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "6134:26:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1146,
|
|
"src": "6126:34:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1138,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6126:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1141,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "6175:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1146,
|
|
"src": "6167:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1140,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6167:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1143,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "6195:15:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1146,
|
|
"src": "6187:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1142,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6187:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1145,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "6224:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1146,
|
|
"src": "6217:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1144,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6217:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FlashLoanRepaymentParams",
|
|
"nameLocation": "6046:24:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "6039:203:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.CalculateUserAccountDataParams",
|
|
"id": 1158,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1149,
|
|
"mutability": "mutable",
|
|
"name": "userConfig",
|
|
"nameLocation": "6314:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1158,
|
|
"src": "6293:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$924_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 1148,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1147,
|
|
"name": "UserConfigurationMap",
|
|
"nameLocations": [
|
|
"6293:20:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 924,
|
|
"src": "6293:20:3"
|
|
},
|
|
"referencedDeclaration": 924,
|
|
"src": "6293:20:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$924_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1151,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "6339:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1158,
|
|
"src": "6331:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1150,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6331:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1153,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "6367:4:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1158,
|
|
"src": "6359:12:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1152,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6359:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1155,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "6386:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1158,
|
|
"src": "6378:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1154,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6378:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1157,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "6405:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1158,
|
|
"src": "6399:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1156,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6399:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "CalculateUserAccountDataParams",
|
|
"nameLocation": "6255:30:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "6248:180:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ValidateBorrowParams",
|
|
"id": 1190,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1161,
|
|
"mutability": "mutable",
|
|
"name": "reserveCache",
|
|
"nameLocation": "6482:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6469:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$981_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
},
|
|
"typeName": {
|
|
"id": 1160,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1159,
|
|
"name": "ReserveCache",
|
|
"nameLocations": [
|
|
"6469:12:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 981,
|
|
"src": "6469:12:3"
|
|
},
|
|
"referencedDeclaration": 981,
|
|
"src": "6469:12:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$981_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1164,
|
|
"mutability": "mutable",
|
|
"name": "userConfig",
|
|
"nameLocation": "6522:10:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6501:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$924_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 1163,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1162,
|
|
"name": "UserConfigurationMap",
|
|
"nameLocations": [
|
|
"6501:20:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 924,
|
|
"src": "6501:20:3"
|
|
},
|
|
"referencedDeclaration": 924,
|
|
"src": "6501:20:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$924_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1166,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "6547:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6539:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1165,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6539:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1168,
|
|
"mutability": "mutable",
|
|
"name": "userAddress",
|
|
"nameLocation": "6567:11:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6559:19:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1167,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6559:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1170,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "6593:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6585:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1169,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6585:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1173,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "6623:16:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6606:33:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 1172,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1171,
|
|
"name": "InterestRateMode",
|
|
"nameLocations": [
|
|
"6606:16:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 939,
|
|
"src": "6606:16:3"
|
|
},
|
|
"referencedDeclaration": 939,
|
|
"src": "6606:16:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$939",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1175,
|
|
"mutability": "mutable",
|
|
"name": "maxStableLoanPercent",
|
|
"nameLocation": "6654:20:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6646:28:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1174,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6646:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1177,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "6689:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6681:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1176,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6681:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1179,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "6717:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6709:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1178,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6709:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1181,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "6736:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6730:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 1180,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6730:5:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1183,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "6768:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6760:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1182,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6760:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1185,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeActive",
|
|
"nameLocation": "6799:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6794:24:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 1184,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6794:4:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1187,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeCollateralAddress",
|
|
"nameLocation": "6833:30:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6825:38:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1186,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6825:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1189,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeDebtCeiling",
|
|
"nameLocation": "6878:24:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1190,
|
|
"src": "6870:32:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1188,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6870:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ValidateBorrowParams",
|
|
"nameLocation": "6441:20:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "6434:474:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ValidateLiquidationCallParams",
|
|
"id": 1200,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1193,
|
|
"mutability": "mutable",
|
|
"name": "debtReserveCache",
|
|
"nameLocation": "6971:16:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1200,
|
|
"src": "6958:29:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$981_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
},
|
|
"typeName": {
|
|
"id": 1192,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 1191,
|
|
"name": "ReserveCache",
|
|
"nameLocations": [
|
|
"6958:12:3"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 981,
|
|
"src": "6958:12:3"
|
|
},
|
|
"referencedDeclaration": 981,
|
|
"src": "6958:12:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$981_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1195,
|
|
"mutability": "mutable",
|
|
"name": "totalDebt",
|
|
"nameLocation": "7002:9:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1200,
|
|
"src": "6994:17:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1194,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6994:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1197,
|
|
"mutability": "mutable",
|
|
"name": "healthFactor",
|
|
"nameLocation": "7026:12:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1200,
|
|
"src": "7018:20:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1196,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7018:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1199,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "7053:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1200,
|
|
"src": "7045:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1198,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7045:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ValidateLiquidationCallParams",
|
|
"nameLocation": "6921:29:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "6914:164:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.CalculateInterestRatesParams",
|
|
"id": 1219,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1202,
|
|
"mutability": "mutable",
|
|
"name": "unbacked",
|
|
"nameLocation": "7135:8:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7127:16:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1201,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7127:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1204,
|
|
"mutability": "mutable",
|
|
"name": "liquidityAdded",
|
|
"nameLocation": "7158:14:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7150:22:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1203,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7150:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1206,
|
|
"mutability": "mutable",
|
|
"name": "liquidityTaken",
|
|
"nameLocation": "7187:14:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7179:22:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1205,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7179:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1208,
|
|
"mutability": "mutable",
|
|
"name": "totalStableDebt",
|
|
"nameLocation": "7216:15:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7208:23:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1207,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7208:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1210,
|
|
"mutability": "mutable",
|
|
"name": "totalVariableDebt",
|
|
"nameLocation": "7246:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7238:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1209,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7238:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1212,
|
|
"mutability": "mutable",
|
|
"name": "averageStableBorrowRate",
|
|
"nameLocation": "7278:23:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7270:31:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1211,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7270:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1214,
|
|
"mutability": "mutable",
|
|
"name": "reserveFactor",
|
|
"nameLocation": "7316:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7308:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 1213,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7308:7:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1216,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "7344:7:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7336:15:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1215,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7336:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1218,
|
|
"mutability": "mutable",
|
|
"name": "aToken",
|
|
"nameLocation": "7366:6:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1219,
|
|
"src": "7358:14:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1217,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7358:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "CalculateInterestRatesParams",
|
|
"nameLocation": "7091:28:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "7084:294:3",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.InitReserveParams",
|
|
"id": 1234,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 1221,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "7424:5:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7416:13:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1220,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7416:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1223,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "7444:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7436:21:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1222,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7436:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1225,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtAddress",
|
|
"nameLocation": "7472:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7464:25:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1224,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7464:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1227,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtAddress",
|
|
"nameLocation": "7504:19:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7496:27:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1226,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7496:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1229,
|
|
"mutability": "mutable",
|
|
"name": "interestRateStrategyAddress",
|
|
"nameLocation": "7538:27:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7530:35:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 1228,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7530:7:3",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1231,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "7579:13:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7572:20:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1230,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7572:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 1233,
|
|
"mutability": "mutable",
|
|
"name": "maxNumberReserves",
|
|
"nameLocation": "7606:17:3",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 1234,
|
|
"src": "7599:24:3",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 1232,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7599:6:3",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "InitReserveParams",
|
|
"nameLocation": "7391:17:3",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 1235,
|
|
"src": "7384:245:3",
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 1236,
|
|
"src": "65:7567:3",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "38:7596:3"
|
|
},
|
|
"id": 3
|
|
}
|
|
}
|
|
}
|
|
} |