openlend/contracts/adapters/paraswap/artifacts/build-info/6c98d1fd4e9b4f0eae472f66d995d662.json
2024-08-24 12:34:34 +03:00

39213 lines
1.4 MiB

{
"id": "6c98d1fd4e9b4f0eae472f66d995d662",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/adapters/paraswap/BaseParaSwapAdapter.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\r\npragma solidity ^0.8.10;\r\n\r\nimport {DataTypes} from '@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol';\r\nimport {FlashLoanSimpleReceiverBase} from '@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol';\r\nimport {GPv2SafeERC20} from '@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol';\r\nimport {IERC20} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol';\r\nimport {IERC20Detailed} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol';\r\nimport {IERC20WithPermit} from '@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol';\r\nimport {IPoolAddressesProvider} from '@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol';\r\nimport {IPriceOracleGetter} from '@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol';\r\nimport {SafeMath} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol';\r\nimport {Ownable} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol';\r\n\r\n/**\r\n * @title BaseParaSwapAdapter\r\n * @notice Utility functions for adapters using ParaSwap\r\n * @author Jason Raymond Bell\r\n */\r\nabstract contract BaseParaSwapAdapter is FlashLoanSimpleReceiverBase, Ownable {\r\n using SafeMath for uint256;\r\n using GPv2SafeERC20 for IERC20;\r\n using GPv2SafeERC20 for IERC20Detailed;\r\n using GPv2SafeERC20 for IERC20WithPermit;\r\n\r\n struct PermitSignature {\r\n uint256 amount;\r\n uint256 deadline;\r\n uint8 v;\r\n bytes32 r;\r\n bytes32 s;\r\n }\r\n\r\n // Max slippage percent allowed\r\n uint256 public constant MAX_SLIPPAGE_PERCENT = 3000; // 30%\r\n\r\n IPriceOracleGetter public immutable ORACLE;\r\n\r\n event Swapped(\r\n address indexed fromAsset,\r\n address indexed toAsset,\r\n uint256 fromAmount,\r\n uint256 receivedAmount\r\n );\r\n event Bought(\r\n address indexed fromAsset,\r\n address indexed toAsset,\r\n uint256 amountSold,\r\n uint256 receivedAmount\r\n );\r\n\r\n constructor(\r\n IPoolAddressesProvider addressesProvider\r\n ) FlashLoanSimpleReceiverBase(addressesProvider) {\r\n ORACLE = IPriceOracleGetter(addressesProvider.getPriceOracle());\r\n }\r\n\r\n /**\r\n * @dev Get the price of the asset from the oracle denominated in eth\r\n * @param asset address\r\n * @return eth price for the asset\r\n */\r\n function _getPrice(address asset) internal view returns (uint256) {\r\n return ORACLE.getAssetPrice(asset);\r\n }\r\n\r\n /**\r\n * @dev Get the decimals of an asset\r\n * @return number of decimals of the asset\r\n */\r\n function _getDecimals(IERC20Detailed asset) internal view returns (uint8) {\r\n uint8 decimals = asset.decimals();\r\n // Ensure 10**decimals won't overflow a uint256\r\n require(decimals <= 77, 'TOO_MANY_DECIMALS_ON_TOKEN');\r\n return decimals;\r\n }\r\n\r\n /**\r\n * @dev Get the aToken associated to the asset\r\n * @return address of the aToken\r\n */\r\n function _getReserveData(address asset) internal view returns (DataTypes.ReserveData memory) {\r\n return POOL.getReserveData(asset);\r\n }\r\n\r\n function _pullATokenAndWithdraw(\r\n address reserve,\r\n address user,\r\n uint256 amount,\r\n PermitSignature memory permitSignature\r\n ) internal {\r\n IERC20WithPermit reserveAToken = IERC20WithPermit(\r\n _getReserveData(address(reserve)).aTokenAddress\r\n );\r\n _pullATokenAndWithdraw(reserve, reserveAToken, user, amount, permitSignature);\r\n }\r\n\r\n /**\r\n * @dev Pull the ATokens from the user\r\n * @param reserve address of the asset\r\n * @param reserveAToken address of the aToken of the reserve\r\n * @param user address\r\n * @param amount of tokens to be transferred to the contract\r\n * @param permitSignature struct containing the permit signature\r\n */\r\n function _pullATokenAndWithdraw(\r\n address reserve,\r\n IERC20WithPermit reserveAToken,\r\n address user,\r\n uint256 amount,\r\n PermitSignature memory permitSignature\r\n ) internal {\r\n // If deadline is set to zero, assume there is no signature for permit\r\n if (permitSignature.deadline != 0) {\r\n reserveAToken.permit(\r\n user,\r\n address(this),\r\n permitSignature.amount,\r\n permitSignature.deadline,\r\n permitSignature.v,\r\n permitSignature.r,\r\n permitSignature.s\r\n );\r\n }\r\n\r\n // transfer from user to adapter\r\n reserveAToken.safeTransferFrom(user, address(this), amount);\r\n\r\n // withdraw reserve\r\n require(POOL.withdraw(reserve, amount, address(this)) == amount, 'UNEXPECTED_AMOUNT_WITHDRAWN');\r\n }\r\n\r\n /**\r\n * @dev Emergency rescue for token stucked on this contract, as failsafe mechanism\r\n * - Funds should never remain in this contract more time than during transactions\r\n * - Only callable by the owner\r\n */\r\n function rescueTokens(IERC20 token) external onlyOwner {\r\n token.safeTransfer(owner(), token.balanceOf(address(this)));\r\n }\r\n}\r\n"
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol": {
"content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport './Context.sol';\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\ncontract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(_owner == _msgSender(), 'Ownable: caller is not the owner');\n _;\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n _owner = address(0);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), 'Ownable: new owner is the zero address');\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n}\n"
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\n/// @title Optimized overflow and underflow safe math operations\n/// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost\nlibrary SafeMath {\n /// @notice Returns x + y, reverts if sum overflows uint256\n /// @param x The augend\n /// @param y The addend\n /// @return z The sum of x and y\n function add(uint256 x, uint256 y) internal pure returns (uint256 z) {\n unchecked {\n require((z = x + y) >= x);\n }\n }\n\n /// @notice Returns x - y, reverts if underflows\n /// @param x The minuend\n /// @param y The subtrahend\n /// @return z The difference of x and y\n function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {\n unchecked {\n require((z = x - y) <= x);\n }\n }\n\n /// @notice Returns x - y, reverts if underflows\n /// @param x The minuend\n /// @param y The subtrahend\n /// @param message The error msg\n /// @return z The difference of x and y\n function sub(uint256 x, uint256 y, string memory message) internal pure returns (uint256 z) {\n unchecked {\n require((z = x - y) <= x, message);\n }\n }\n\n /// @notice Returns x * y, reverts if overflows\n /// @param x The multiplicand\n /// @param y The multiplier\n /// @return z The product of x and y\n function mul(uint256 x, uint256 y) internal pure returns (uint256 z) {\n unchecked {\n require(x == 0 || (z = x * y) / x == y);\n }\n }\n\n /// @notice Returns x / y, reverts if overflows - no specific check, solidity reverts on division by 0\n /// @param x The numerator\n /// @param y The denominator\n /// @return z The product of x and y\n function div(uint256 x, uint256 y) internal pure returns (uint256 z) {\n return x / y;\n }\n}\n"
},
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\n/**\n * @title IPriceOracleGetter\n * @author Aave\n * @notice Interface for the Aave price oracle.\n */\ninterface IPriceOracleGetter {\n /**\n * @notice Returns the base currency address\n * @dev Address 0x0 is reserved for USD as base currency.\n * @return Returns the base currency address.\n */\n function BASE_CURRENCY() external view returns (address);\n\n /**\n * @notice Returns the base currency unit\n * @dev 1 ether for ETH, 1e8 for USD.\n * @return Returns the base currency unit.\n */\n function BASE_CURRENCY_UNIT() external view returns (uint256);\n\n /**\n * @notice Returns the asset price in the base currency\n * @param asset The address of the asset\n * @return The price of the asset\n */\n function getAssetPrice(address asset) external view returns (uint256);\n}\n"
},
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\n/**\n * @title IPoolAddressesProvider\n * @author Aave\n * @notice Defines the basic interface for a Pool Addresses Provider.\n */\ninterface IPoolAddressesProvider {\n /**\n * @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\n */\n event MarketIdSet(string indexed oldMarketId, string indexed newMarketId);\n\n /**\n * @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\n */\n event PoolUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event PoolConfiguratorUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event PriceOracleUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event ACLManagerUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event ACLAdminUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event PriceOracleSentinelUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event PoolDataProviderUpdated(address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event ProxyCreated(\n bytes32 indexed id,\n address indexed proxyAddress,\n address indexed implementationAddress\n );\n\n /**\n * @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\n */\n event AddressSet(bytes32 indexed id, address indexed oldAddress, address indexed newAddress);\n\n /**\n * @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\n */\n event AddressSetAsProxy(\n bytes32 indexed id,\n address indexed proxyAddress,\n address oldImplementationAddress,\n address indexed newImplementationAddress\n );\n\n /**\n * @notice Returns the id of the Aave market to which this contract points to.\n * @return The market id\n */\n function getMarketId() external view returns (string memory);\n\n /**\n * @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\n */\n function setMarketId(string calldata newMarketId) external;\n\n /**\n * @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\n */\n function getAddress(bytes32 id) external view returns (address);\n\n /**\n * @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\n */\n function setAddressAsProxy(bytes32 id, address newImplementationAddress) external;\n\n /**\n * @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\n */\n function setAddress(bytes32 id, address newAddress) external;\n\n /**\n * @notice Returns the address of the Pool proxy.\n * @return The Pool proxy address\n */\n function getPool() external view returns (address);\n\n /**\n * @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\n */\n function setPoolImpl(address newPoolImpl) external;\n\n /**\n * @notice Returns the address of the PoolConfigurator proxy.\n * @return The PoolConfigurator proxy address\n */\n function getPoolConfigurator() external view returns (address);\n\n /**\n * @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\n */\n function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external;\n\n /**\n * @notice Returns the address of the price oracle.\n * @return The address of the PriceOracle\n */\n function getPriceOracle() external view returns (address);\n\n /**\n * @notice Updates the address of the price oracle.\n * @param newPriceOracle The address of the new PriceOracle\n */\n function setPriceOracle(address newPriceOracle) external;\n\n /**\n * @notice Returns the address of the ACL manager.\n * @return The address of the ACLManager\n */\n function getACLManager() external view returns (address);\n\n /**\n * @notice Updates the address of the ACL manager.\n * @param newAclManager The address of the new ACLManager\n */\n function setACLManager(address newAclManager) external;\n\n /**\n * @notice Returns the address of the ACL admin.\n * @return The address of the ACL admin\n */\n function getACLAdmin() external view returns (address);\n\n /**\n * @notice Updates the address of the ACL admin.\n * @param newAclAdmin The address of the new ACL admin\n */\n function setACLAdmin(address newAclAdmin) external;\n\n /**\n * @notice Returns the address of the price oracle sentinel.\n * @return The address of the PriceOracleSentinel\n */\n function getPriceOracleSentinel() external view returns (address);\n\n /**\n * @notice Updates the address of the price oracle sentinel.\n * @param newPriceOracleSentinel The address of the new PriceOracleSentinel\n */\n function setPriceOracleSentinel(address newPriceOracleSentinel) external;\n\n /**\n * @notice Returns the address of the data provider.\n * @return The address of the DataProvider\n */\n function getPoolDataProvider() external view returns (address);\n\n /**\n * @notice Updates the address of the data provider.\n * @param newDataProvider The address of the new DataProvider\n */\n function setPoolDataProvider(address newDataProvider) external;\n}\n"
},
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\nimport {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.sol';\n\n/**\n * @title IERC20WithPermit\n * @author Aave\n * @notice Interface for the permit function (EIP-2612)\n */\ninterface IERC20WithPermit is IERC20 {\n /**\n * @notice Allow passing a signed message to approve spending\n * @dev implements the permit function as for\n * https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md\n * @param owner The owner of the funds\n * @param spender The spender\n * @param value The amount\n * @param deadline The deadline timestamp, type(uint256).max for max deadline\n * @param v Signature param\n * @param s Signature param\n * @param r Signature param\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n}\n"
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\nimport {IERC20} from './IERC20.sol';\n\ninterface IERC20Detailed is IERC20 {\n function name() external view returns (string memory);\n\n function symbol() external view returns (string memory);\n\n function decimals() external view returns (uint8);\n}\n"
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"
},
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol": {
"content": "// SPDX-License-Identifier: LGPL-3.0-or-later\npragma solidity ^0.8.0;\n\nimport {IERC20} from '../../openzeppelin/contracts/IERC20.sol';\n\n/// @title Gnosis Protocol v2 Safe ERC20 Transfer Library\n/// @author Gnosis Developers\n/// @dev Gas-efficient version of Openzeppelin's SafeERC20 contract.\nlibrary GPv2SafeERC20 {\n /// @dev Wrapper around a call to the ERC20 function `transfer` that reverts\n /// also when the token returns `false`.\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n bytes4 selector_ = token.transfer.selector;\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let freeMemoryPointer := mload(0x40)\n mstore(freeMemoryPointer, selector_)\n mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff))\n mstore(add(freeMemoryPointer, 36), value)\n\n if iszero(call(gas(), token, 0, freeMemoryPointer, 68, 0, 0)) {\n returndatacopy(0, 0, returndatasize())\n revert(0, returndatasize())\n }\n }\n\n require(getLastTransferResult(token), 'GPv2: failed transfer');\n }\n\n /// @dev Wrapper around a call to the ERC20 function `transferFrom` that\n /// reverts also when the token returns `false`.\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n bytes4 selector_ = token.transferFrom.selector;\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let freeMemoryPointer := mload(0x40)\n mstore(freeMemoryPointer, selector_)\n mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff))\n mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff))\n mstore(add(freeMemoryPointer, 68), value)\n\n if iszero(call(gas(), token, 0, freeMemoryPointer, 100, 0, 0)) {\n returndatacopy(0, 0, returndatasize())\n revert(0, returndatasize())\n }\n }\n\n require(getLastTransferResult(token), 'GPv2: failed transferFrom');\n }\n\n /// @dev Verifies that the last return was a successful `transfer*` call.\n /// This is done by checking that the return data is either empty, or\n /// is a valid ABI encoded boolean.\n function getLastTransferResult(IERC20 token) private view returns (bool success) {\n // NOTE: Inspecting previous return data requires assembly. Note that\n // we write the return data to memory 0 in the case where the return\n // data size is 32, this is OK since the first 64 bytes of memory are\n // reserved by Solidy as a scratch space that can be used within\n // assembly blocks.\n // <https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html>\n // solhint-disable-next-line no-inline-assembly\n assembly {\n /// @dev Revert with an ABI encoded Solidity error with a message\n /// that fits into 32-bytes.\n ///\n /// An ABI encoded Solidity error has the following memory layout:\n ///\n /// ------------+----------------------------------\n /// byte range | value\n /// ------------+----------------------------------\n /// 0x00..0x04 | selector(\"Error(string)\")\n /// 0x04..0x24 | string offset (always 0x20)\n /// 0x24..0x44 | string length\n /// 0x44..0x64 | string value, padded to 32-bytes\n function revertWithMessage(length, message) {\n mstore(0x00, '\\x08\\xc3\\x79\\xa0')\n mstore(0x04, 0x20)\n mstore(0x24, length)\n mstore(0x44, message)\n revert(0x00, 0x64)\n }\n\n switch returndatasize()\n // Non-standard ERC20 transfer without return.\n case 0 {\n // NOTE: When the return data size is 0, verify that there\n // is code at the address. This is done in order to maintain\n // compatibility with Solidity calling conventions.\n // <https://docs.soliditylang.org/en/v0.7.6/control-structures.html#external-function-calls>\n if iszero(extcodesize(token)) {\n revertWithMessage(20, 'GPv2: not a contract')\n }\n\n success := 1\n }\n // Standard ERC20 transfer returning boolean success value.\n case 32 {\n returndatacopy(0, 0, returndatasize())\n\n // NOTE: For ABI encoding v1, any non-zero value is accepted\n // as `true` for a boolean. In order to stay compatible with\n // OpenZeppelin's `SafeERC20` library which is known to work\n // with the existing ERC20 implementation we care about,\n // make sure we return success for any non-zero return value\n // from the `transfer*` call.\n success := iszero(iszero(mload(0)))\n }\n default {\n revertWithMessage(31, 'GPv2: malformed transfer result')\n }\n }\n }\n}\n"
},
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\nimport {IFlashLoanSimpleReceiver} from '../interfaces/IFlashLoanSimpleReceiver.sol';\nimport {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol';\nimport {IPool} from '../../interfaces/IPool.sol';\n\n/**\n * @title FlashLoanSimpleReceiverBase\n * @author Aave\n * @notice Base contract to develop a flashloan-receiver contract.\n */\nabstract contract FlashLoanSimpleReceiverBase is IFlashLoanSimpleReceiver {\n IPoolAddressesProvider public immutable override ADDRESSES_PROVIDER;\n IPool public immutable override POOL;\n\n constructor(IPoolAddressesProvider provider) {\n ADDRESSES_PROVIDER = provider;\n POOL = IPool(provider.getPool());\n }\n}\n"
},
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol": {
"content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.0;\n\nlibrary DataTypes {\n struct ReserveData {\n //stores the reserve configuration\n ReserveConfigurationMap configuration;\n //the liquidity index. Expressed in ray\n uint128 liquidityIndex;\n //the current supply rate. Expressed in ray\n uint128 currentLiquidityRate;\n //variable borrow index. Expressed in ray\n uint128 variableBorrowIndex;\n //the current variable borrow rate. Expressed in ray\n uint128 currentVariableBorrowRate;\n //the current stable borrow rate. Expressed in ray\n uint128 currentStableBorrowRate;\n //timestamp of last update\n uint40 lastUpdateTimestamp;\n //the id of the reserve. Represents the position in the list of the active reserves\n uint16 id;\n //aToken address\n address aTokenAddress;\n //stableDebtToken address\n address stableDebtTokenAddress;\n //variableDebtToken address\n address variableDebtTokenAddress;\n //address of the interest rate strategy\n address interestRateStrategyAddress;\n //the current treasury balance, scaled\n uint128 accruedToTreasury;\n //the outstanding unbacked aTokens minted through the bridging feature\n uint128 unbacked;\n //the outstanding debt borrowed against this asset in isolation mode\n uint128 isolationModeTotalDebt;\n }\n\n struct ReserveConfigurationMap {\n //bit 0-15: LTV\n //bit 16-31: Liq. threshold\n //bit 32-47: Liq. bonus\n //bit 48-55: Decimals\n //bit 56: reserve is active\n //bit 57: reserve is frozen\n //bit 58: borrowing is enabled\n //bit 59: stable rate borrowing enabled\n //bit 60: asset is paused\n //bit 61: borrowing in isolation mode is enabled\n //bit 62: siloed borrowing enabled\n //bit 63: flashloaning enabled\n //bit 64-79: reserve factor\n //bit 80-115 borrow cap in whole tokens, borrowCap == 0 => no cap\n //bit 116-151 supply cap in whole tokens, supplyCap == 0 => no cap\n //bit 152-167 liquidation protocol fee\n //bit 168-175 eMode category\n //bit 176-211 unbacked mint cap in whole tokens, unbackedMintCap == 0 => minting disabled\n //bit 212-251 debt ceiling for isolation mode with (ReserveConfiguration::DEBT_CEILING_DECIMALS) decimals\n //bit 252-255 unused\n\n uint256 data;\n }\n\n struct UserConfigurationMap {\n /**\n * @dev Bitmap of the users collaterals and borrows. It is divided in pairs of bits, one pair per asset.\n * The first bit indicates if an asset is used as collateral by the user, the second whether an\n * asset is borrowed by the user.\n */\n uint256 data;\n }\n\n struct EModeCategory {\n // each eMode category has a custom ltv and liquidation threshold\n uint16 ltv;\n uint16 liquidationThreshold;\n uint16 liquidationBonus;\n // each eMode category may or may not have a custom oracle to override the individual assets price oracles\n address priceSource;\n string label;\n }\n\n enum InterestRateMode {NONE, STABLE, VARIABLE}\n\n struct ReserveCache {\n uint256 currScaledVariableDebt;\n uint256 nextScaledVariableDebt;\n uint256 currPrincipalStableDebt;\n uint256 currAvgStableBorrowRate;\n uint256 currTotalStableDebt;\n uint256 nextAvgStableBorrowRate;\n uint256 nextTotalStableDebt;\n uint256 currLiquidityIndex;\n uint256 nextLiquidityIndex;\n uint256 currVariableBorrowIndex;\n uint256 nextVariableBorrowIndex;\n uint256 currLiquidityRate;\n uint256 currVariableBorrowRate;\n uint256 reserveFactor;\n ReserveConfigurationMap reserveConfiguration;\n address aTokenAddress;\n address stableDebtTokenAddress;\n address variableDebtTokenAddress;\n uint40 reserveLastUpdateTimestamp;\n uint40 stableDebtLastUpdateTimestamp;\n }\n\n struct ExecuteLiquidationCallParams {\n uint256 reservesCount;\n uint256 debtToCover;\n address collateralAsset;\n address debtAsset;\n address user;\n bool receiveAToken;\n address priceOracle;\n uint8 userEModeCategory;\n address priceOracleSentinel;\n }\n\n struct ExecuteSupplyParams {\n address asset;\n uint256 amount;\n address onBehalfOf;\n uint16 referralCode;\n }\n\n struct ExecuteBorrowParams {\n address asset;\n address user;\n address onBehalfOf;\n uint256 amount;\n InterestRateMode interestRateMode;\n uint16 referralCode;\n bool releaseUnderlying;\n uint256 maxStableRateBorrowSizePercent;\n uint256 reservesCount;\n address oracle;\n uint8 userEModeCategory;\n address priceOracleSentinel;\n }\n\n struct ExecuteRepayParams {\n address asset;\n uint256 amount;\n InterestRateMode interestRateMode;\n address onBehalfOf;\n bool useATokens;\n }\n\n struct ExecuteWithdrawParams {\n address asset;\n uint256 amount;\n address to;\n uint256 reservesCount;\n address oracle;\n uint8 userEModeCategory;\n }\n\n struct ExecuteSetUserEModeParams {\n uint256 reservesCount;\n address oracle;\n uint8 categoryId;\n }\n\n struct FinalizeTransferParams {\n address asset;\n address from;\n address to;\n uint256 amount;\n uint256 balanceFromBefore;\n uint256 balanceToBefore;\n uint256 reservesCount;\n address oracle;\n uint8 fromEModeCategory;\n }\n\n struct FlashloanParams {\n address receiverAddress;\n address[] assets;\n uint256[] amounts;\n uint256[] interestRateModes;\n address onBehalfOf;\n bytes params;\n uint16 referralCode;\n uint256 flashLoanPremiumToProtocol;\n uint256 flashLoanPremiumTotal;\n uint256 maxStableRateBorrowSizePercent;\n uint256 reservesCount;\n address addressesProvider;\n uint8 userEModeCategory;\n bool isAuthorizedFlashBorrower;\n }\n\n struct FlashloanSimpleParams {\n address receiverAddress;\n address asset;\n uint256 amount;\n bytes params;\n uint16 referralCode;\n uint256 flashLoanPremiumToProtocol;\n uint256 flashLoanPremiumTotal;\n }\n\n struct FlashLoanRepaymentParams {\n uint256 amount;\n uint256 totalPremium;\n uint256 flashLoanPremiumToProtocol;\n address asset;\n address receiverAddress;\n uint16 referralCode;\n }\n\n struct CalculateUserAccountDataParams {\n UserConfigurationMap userConfig;\n uint256 reservesCount;\n address user;\n address oracle;\n uint8 userEModeCategory;\n }\n\n struct ValidateBorrowParams {\n ReserveCache reserveCache;\n UserConfigurationMap userConfig;\n address asset;\n address userAddress;\n uint256 amount;\n InterestRateMode interestRateMode;\n uint256 maxStableLoanPercent;\n uint256 reservesCount;\n address oracle;\n uint8 userEModeCategory;\n address priceOracleSentinel;\n bool isolationModeActive;\n address isolationModeCollateralAddress;\n uint256 isolationModeDebtCeiling;\n }\n\n struct ValidateLiquidationCallParams {\n ReserveCache debtReserveCache;\n uint256 totalDebt;\n uint256 healthFactor;\n address priceOracleSentinel;\n }\n\n struct CalculateInterestRatesParams {\n uint256 unbacked;\n uint256 liquidityAdded;\n uint256 liquidityTaken;\n uint256 totalStableDebt;\n uint256 totalVariableDebt;\n uint256 averageStableBorrowRate;\n uint256 reserveFactor;\n address reserve;\n address aToken;\n }\n\n struct InitReserveParams {\n address asset;\n address aTokenAddress;\n address stableDebtAddress;\n address variableDebtAddress;\n address interestRateStrategyAddress;\n uint16 reservesCount;\n uint16 maxNumberReserves;\n }\n}\n"
},
"@aave/core-v3/contracts/interfaces/IPool.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\nimport {IPoolAddressesProvider} from './IPoolAddressesProvider.sol';\nimport {DataTypes} from '../protocol/libraries/types/DataTypes.sol';\n\n/**\n * @title IPool\n * @author Aave\n * @notice Defines the basic interface for an Aave Pool.\n */\ninterface IPool {\n /**\n * @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\n */\n event MintUnbacked(\n address indexed reserve,\n address user,\n address indexed onBehalfOf,\n uint256 amount,\n uint16 indexed referralCode\n );\n\n /**\n * @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\n */\n event BackUnbacked(address indexed reserve, address indexed backer, uint256 amount, uint256 fee);\n\n /**\n * @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\n */\n event Supply(\n address indexed reserve,\n address user,\n address indexed onBehalfOf,\n uint256 amount,\n uint16 indexed referralCode\n );\n\n /**\n * @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\n */\n event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount);\n\n /**\n * @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\n */\n event Borrow(\n address indexed reserve,\n address user,\n address indexed onBehalfOf,\n uint256 amount,\n DataTypes.InterestRateMode interestRateMode,\n uint256 borrowRate,\n uint16 indexed referralCode\n );\n\n /**\n * @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\n */\n event Repay(\n address indexed reserve,\n address indexed user,\n address indexed repayer,\n uint256 amount,\n bool useATokens\n );\n\n /**\n * @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\n */\n event SwapBorrowRateMode(\n address indexed reserve,\n address indexed user,\n DataTypes.InterestRateMode interestRateMode\n );\n\n /**\n * @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\n */\n event IsolationModeTotalDebtUpdated(address indexed asset, uint256 totalDebt);\n\n /**\n * @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\n */\n event UserEModeSet(address indexed user, uint8 categoryId);\n\n /**\n * @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\n */\n event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user);\n\n /**\n * @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\n */\n event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user);\n\n /**\n * @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\n */\n event RebalanceStableBorrowRate(address indexed reserve, address indexed user);\n\n /**\n * @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\n */\n event FlashLoan(\n address indexed target,\n address initiator,\n address indexed asset,\n uint256 amount,\n DataTypes.InterestRateMode interestRateMode,\n uint256 premium,\n uint16 indexed referralCode\n );\n\n /**\n * @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\n */\n event LiquidationCall(\n address indexed collateralAsset,\n address indexed debtAsset,\n address indexed user,\n uint256 debtToCover,\n uint256 liquidatedCollateralAmount,\n address liquidator,\n bool receiveAToken\n );\n\n /**\n * @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\n */\n event ReserveDataUpdated(\n address indexed reserve,\n uint256 liquidityRate,\n uint256 stableBorrowRate,\n uint256 variableBorrowRate,\n uint256 liquidityIndex,\n uint256 variableBorrowIndex\n );\n\n /**\n * @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\n */\n event MintedToTreasury(address indexed reserve, uint256 amountMinted);\n\n /**\n * @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\n */\n function mintUnbacked(\n address asset,\n uint256 amount,\n address onBehalfOf,\n uint16 referralCode\n ) external;\n\n /**\n * @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\n */\n function backUnbacked(address asset, uint256 amount, uint256 fee) external returns (uint256);\n\n /**\n * @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\n */\n function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\n\n /**\n * @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\n */\n function supplyWithPermit(\n address asset,\n uint256 amount,\n address onBehalfOf,\n uint16 referralCode,\n uint256 deadline,\n uint8 permitV,\n bytes32 permitR,\n bytes32 permitS\n ) external;\n\n /**\n * @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\n */\n function withdraw(address asset, uint256 amount, address to) external returns (uint256);\n\n /**\n * @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\n */\n function borrow(\n address asset,\n uint256 amount,\n uint256 interestRateMode,\n uint16 referralCode,\n address onBehalfOf\n ) external;\n\n /**\n * @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\n */\n function repay(\n address asset,\n uint256 amount,\n uint256 interestRateMode,\n address onBehalfOf\n ) external returns (uint256);\n\n /**\n * @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\n */\n function repayWithPermit(\n address asset,\n uint256 amount,\n uint256 interestRateMode,\n address onBehalfOf,\n uint256 deadline,\n uint8 permitV,\n bytes32 permitR,\n bytes32 permitS\n ) external returns (uint256);\n\n /**\n * @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\n */\n function repayWithATokens(\n address asset,\n uint256 amount,\n uint256 interestRateMode\n ) external returns (uint256);\n\n /**\n * @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\n */\n function swapBorrowRateMode(address asset, uint256 interestRateMode) external;\n\n /**\n * @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\n */\n function rebalanceStableBorrowRate(address asset, address user) external;\n\n /**\n * @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\n */\n function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) external;\n\n /**\n * @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\n */\n function liquidationCall(\n address collateralAsset,\n address debtAsset,\n address user,\n uint256 debtToCover,\n bool receiveAToken\n ) external;\n\n /**\n * @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\n */\n function flashLoan(\n address receiverAddress,\n address[] calldata assets,\n uint256[] calldata amounts,\n uint256[] calldata interestRateModes,\n address onBehalfOf,\n bytes calldata params,\n uint16 referralCode\n ) external;\n\n /**\n * @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\n */\n function flashLoanSimple(\n address receiverAddress,\n address asset,\n uint256 amount,\n bytes calldata params,\n uint16 referralCode\n ) external;\n\n /**\n * @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\n */\n function getUserAccountData(\n address user\n )\n external\n view\n returns (\n uint256 totalCollateralBase,\n uint256 totalDebtBase,\n uint256 availableBorrowsBase,\n uint256 currentLiquidationThreshold,\n uint256 ltv,\n uint256 healthFactor\n );\n\n /**\n * @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\n */\n function initReserve(\n address asset,\n address aTokenAddress,\n address stableDebtAddress,\n address variableDebtAddress,\n address interestRateStrategyAddress\n ) external;\n\n /**\n * @notice Drop a reserve\n * @dev Only callable by the PoolConfigurator contract\n * @param asset The address of the underlying asset of the reserve\n */\n function dropReserve(address asset) external;\n\n /**\n * @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\n */\n function setReserveInterestRateStrategyAddress(\n address asset,\n address rateStrategyAddress\n ) external;\n\n /**\n * @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\n */\n function setConfiguration(\n address asset,\n DataTypes.ReserveConfigurationMap calldata configuration\n ) external;\n\n /**\n * @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\n */\n function getConfiguration(\n address asset\n ) external view returns (DataTypes.ReserveConfigurationMap memory);\n\n /**\n * @notice Returns the configuration of the user across all the reserves\n * @param user The user address\n * @return The configuration of the user\n */\n function getUserConfiguration(\n address user\n ) external view returns (DataTypes.UserConfigurationMap memory);\n\n /**\n * @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\n */\n function getReserveNormalizedIncome(address asset) external view returns (uint256);\n\n /**\n * @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\n */\n function getReserveNormalizedVariableDebt(address asset) external view returns (uint256);\n\n /**\n * @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\n */\n function getReserveData(address asset) external view returns (DataTypes.ReserveData memory);\n\n /**\n * @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\n */\n function finalizeTransfer(\n address asset,\n address from,\n address to,\n uint256 amount,\n uint256 balanceFromBefore,\n uint256 balanceToBefore\n ) external;\n\n /**\n * @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\n */\n function getReservesList() external view returns (address[] memory);\n\n /**\n * @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\n */\n function getReserveAddressById(uint16 id) external view returns (address);\n\n /**\n * @notice Returns the PoolAddressesProvider connected to this contract\n * @return The address of the PoolAddressesProvider\n */\n function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\n\n /**\n * @notice Updates the protocol fee on the bridging\n * @param bridgeProtocolFee The part of the premium sent to the protocol treasury\n */\n function updateBridgeProtocolFee(uint256 bridgeProtocolFee) external;\n\n /**\n * @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\n */\n function updateFlashloanPremiums(\n uint128 flashLoanPremiumTotal,\n uint128 flashLoanPremiumToProtocol\n ) external;\n\n /**\n * @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\n */\n function configureEModeCategory(uint8 id, DataTypes.EModeCategory memory config) external;\n\n /**\n * @notice Returns the data of an eMode category\n * @param id The id of the category\n * @return The configuration data of the category\n */\n function getEModeCategoryData(uint8 id) external view returns (DataTypes.EModeCategory memory);\n\n /**\n * @notice Allows a user to use the protocol in eMode\n * @param categoryId The id of the category\n */\n function setUserEMode(uint8 categoryId) external;\n\n /**\n * @notice Returns the eMode the user is using\n * @param user The address of the user\n * @return The eMode id\n */\n function getUserEMode(address user) external view returns (uint256);\n\n /**\n * @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\n */\n function resetIsolationModeTotalDebt(address asset) external;\n\n /**\n * @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\n */\n function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() external view returns (uint256);\n\n /**\n * @notice Returns the total fee on flash loans\n * @return The total fee on flashloans\n */\n function FLASHLOAN_PREMIUM_TOTAL() external view returns (uint128);\n\n /**\n * @notice Returns the part of the bridge fees sent to protocol\n * @return The bridge fee sent to the protocol treasury\n */\n function BRIDGE_PROTOCOL_FEE() external view returns (uint256);\n\n /**\n * @notice Returns the part of the flashloan fees sent to protocol\n * @return The flashloan fee sent to the protocol treasury\n */\n function FLASHLOAN_PREMIUM_TO_PROTOCOL() external view returns (uint128);\n\n /**\n * @notice Returns the maximum number of reserves supported to be listed in this Pool\n * @return The maximum number of reserves supported\n */\n function MAX_NUMBER_RESERVES() external view returns (uint16);\n\n /**\n * @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\n */\n function mintToTreasury(address[] calldata assets) external;\n\n /**\n * @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\n */\n function rescueTokens(address token, address to, uint256 amount) external;\n\n /**\n * @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\n */\n function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\n}\n"
},
"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0\npragma solidity ^0.8.0;\n\nimport {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol';\nimport {IPool} from '../../interfaces/IPool.sol';\n\n/**\n * @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\n */\ninterface IFlashLoanSimpleReceiver {\n /**\n * @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\n */\n function executeOperation(\n address asset,\n uint256 amount,\n uint256 premium,\n address initiator,\n bytes calldata params\n ) external returns (bool);\n\n function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\n\n function POOL() external view returns (IPool);\n}\n"
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/*\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with GSN meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address payable) {\n return payable(msg.sender);\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n}\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": {
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol": {
"GPv2SafeERC20": {
"abi": [],
"devdoc": {
"author": "Gnosis Developers",
"details": "Gas-efficient version of Openzeppelin's SafeERC20 contract.",
"kind": "dev",
"methods": {},
"title": "Gnosis Protocol v2 Safe ERC20 Transfer Library",
"version": 1
},
"evm": {
"assembly": " /* \"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol\":293:4724 library GPv2SafeERC20 {... */\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 /* \"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol\":293:4724 library GPv2SafeERC20 {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa26469706673582212202f4c33345085f5bd705ee6fd9814dba12a20e35fab853a3ec43392e7a6e706a764736f6c634300081a0033\n}\n",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea26469706673582212202f4c33345085f5bd705ee6fd9814dba12a20e35fab853a3ec43392e7a6e706a764736f6c634300081a0033",
"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 0x2F 0x4C CALLER CALLVALUE POP DUP6 CREATE2 0xBD PUSH17 0x5EE6FD9814DBA12A20E35FAB853A3EC433 SWAP3 0xE7 0xA6 0xE7 MOD 0xA7 PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
"sourceMap": "293:4431:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea26469706673582212202f4c33345085f5bd705ee6fd9814dba12a20e35fab853a3ec43392e7a6e706a764736f6c634300081a0033",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x2F 0x4C CALLER CALLVALUE POP DUP6 CREATE2 0xBD PUSH17 0x5EE6FD9814DBA12A20E35FAB853A3EC433 SWAP3 0xE7 0xA6 0xE7 MOD 0xA7 PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
"sourceMap": "293:4431:0:-:0;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "17000",
"executionCost": "92",
"totalCost": "17092"
},
"internal": {
"getLastTransferResult(contract IERC20)": "infinite",
"safeTransfer(contract IERC20,address,uint256)": "infinite",
"safeTransferFrom(contract IERC20,address,address,uint256)": "infinite"
}
},
"legacyAssembly": {
".code": [
{
"begin": 293,
"end": 4724,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 293,
"end": 4724,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "B"
},
{
"begin": 293,
"end": 4724,
"name": "DUP3",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "DUP3",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "DUP3",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "CODECOPY",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "DUP1",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "MLOAD",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 293,
"end": 4724,
"name": "BYTE",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "73"
},
{
"begin": 293,
"end": 4724,
"name": "EQ",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 293,
"end": 4724,
"name": "JUMPI",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 293,
"end": 4724,
"name": "MSTORE",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 293,
"end": 4724,
"name": "MSTORE",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "24"
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 293,
"end": 4724,
"name": "REVERT",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 293,
"end": 4724,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "ADDRESS",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 293,
"end": 4724,
"name": "MSTORE",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "73"
},
{
"begin": 293,
"end": 4724,
"name": "DUP2",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "MSTORE8",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "DUP3",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "DUP2",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a26469706673582212202f4c33345085f5bd705ee6fd9814dba12a20e35fab853a3ec43392e7a6e706a764736f6c634300081a0033",
".code": [
{
"begin": 293,
"end": 4724,
"name": "PUSHDEPLOYADDRESS",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "ADDRESS",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "EQ",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 293,
"end": 4724,
"name": "MSTORE",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 293,
"end": 4724,
"name": "DUP1",
"source": 0
},
{
"begin": 293,
"end": 4724,
"name": "REVERT",
"source": 0
}
]
}
},
"sourceList": [
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"@aave/core-v3/contracts/interfaces/IPool.sol",
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"contracts/adapters/paraswap/BaseParaSwapAdapter.sol",
"#utility.yul"
]
},
"methodIdentifiers": {}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Gnosis Developers\",\"details\":\"Gas-efficient version of Openzeppelin's SafeERC20 contract.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Gnosis Protocol v2 Safe ERC20 Transfer Library\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol\":\"GPv2SafeERC20\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol\":{\"keccak256\":\"0xb18337187a2a6c4e64c61f8e4e06f0e932a69bb8f33688943bf50d7f4198e44b\",\"license\":\"LGPL-3.0-or-later\",\"urls\":[\"bzz-raw://38c0769720d226d41fb5a0f504a0b9434ca266acb15d1de9bbc08f1a5c8a7bbc\",\"dweb:/ipfs/QmeskcXDL7cbMXbjEdAdbUamKmjqYKBwRfheFZmm9mpBKJ\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol\":{\"keccak256\":\"0xf57d62241e553696a1324d225663ba2e1a51db0a51ca236d0c1b009d89b6284c\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d327db93b636790909aa137124f30a856ac1631cb79c476aa188f9627fda8d03\",\"dweb:/ipfs/QmaxpmEoBFioeNYmpxJemyZ7aYF2nX1NKW1XDqREm7i6es\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol": {
"Context": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"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\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":\"Context\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":{\"keccak256\":\"0xc0df5ebb2c3d8b4509464c40a88cc51e5e5f5e4a26fafc909330e9bb2658f641\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dc2690f871399de8f14e4cd8ae9b57a67e135afa28ac4be76594eaf4ecd8e244\",\"dweb:/ipfs/Qmb9gKAnQBciUknb3ysnfDpWAdYXGJm51NzFYWNkXwoAZg\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol": {
"IERC20": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Interface of the ERC20 standard as defined in the EIP.",
"events": {
"Approval(address,address,uint256)": {
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
},
"Transfer(address,address,uint256)": {
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
}
},
"kind": "dev",
"methods": {
"allowance(address,address)": {
"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."
},
"approve(address,uint256)": {
"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."
},
"balanceOf(address)": {
"details": "Returns the amount of tokens owned by `account`."
},
"totalSupply()": {
"details": "Returns the amount of tokens in existence."
},
"transfer(address,uint256)": {
"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
},
"transferFrom(address,address,uint256)": {
"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
}
},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of the ERC20 standard as defined in the EIP.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.\"},\"approve(address,uint256)\":{\"details\":\"Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol\":{\"keccak256\":\"0xf57d62241e553696a1324d225663ba2e1a51db0a51ca236d0c1b009d89b6284c\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d327db93b636790909aa137124f30a856ac1631cb79c476aa188f9627fda8d03\",\"dweb:/ipfs/QmaxpmEoBFioeNYmpxJemyZ7aYF2nX1NKW1XDqREm7i6es\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol": {
"IERC20Detailed": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"events": {
"Approval(address,address,uint256)": {
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
},
"Transfer(address,address,uint256)": {
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
}
},
"kind": "dev",
"methods": {
"allowance(address,address)": {
"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."
},
"approve(address,uint256)": {
"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."
},
"balanceOf(address)": {
"details": "Returns the amount of tokens owned by `account`."
},
"totalSupply()": {
"details": "Returns the amount of tokens in existence."
},
"transfer(address,uint256)": {
"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
},
"transferFrom(address,address,uint256)": {
"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
}
},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"decimals()": "313ce567",
"name()": "06fdde03",
"symbol()": "95d89b41",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.\"},\"approve(address,uint256)\":{\"details\":\"Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol\":\"IERC20Detailed\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol\":{\"keccak256\":\"0xf57d62241e553696a1324d225663ba2e1a51db0a51ca236d0c1b009d89b6284c\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d327db93b636790909aa137124f30a856ac1631cb79c476aa188f9627fda8d03\",\"dweb:/ipfs/QmaxpmEoBFioeNYmpxJemyZ7aYF2nX1NKW1XDqREm7i6es\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol\":{\"keccak256\":\"0x9365cd885dc1ed7aed1364ae4dedf8e4660100cba0437061013f64c5002b385a\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://ddc639d67c82e15f76b08588e8ad2ee87eaff6bb9cba5c0e5b08e242c3c4ac00\",\"dweb:/ipfs/QmY1D9WcH3nmg2VVfqSUkEX6Zrkmkmx8oi2pJAvw5BABi7\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol": {
"Ownable": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.",
"kind": "dev",
"methods": {
"constructor": {
"details": "Initializes the contract setting the deployer as the initial owner."
},
"owner()": {
"details": "Returns the address of the current owner."
},
"renounceOwnership()": {
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"version": 1
},
"evm": {
"assembly": " /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":578:2103 contract Ownable is Context {... */\n mstore(0x40, 0x80)\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":815:950 constructor() {... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":835:852 address msgSender */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":855:867 _msgSender() */\n tag_4\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":855:865 _msgSender */\n shl(0x20, tag_5)\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":855:867 _msgSender() */\n 0x20\n shr\n jump\t// in\ntag_4:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":835:867 address msgSender = _msgSender() */\n swap1\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":882:891 msgSender */\n dup1\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":873:879 _owner */\n 0x00\n dup1\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":873:891 _owner = msgSender */\n 0x0100\n exp\n dup2\n sload\n dup2\n 0xffffffffffffffffffffffffffffffffffffffff\n mul\n not\n and\n swap1\n dup4\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n mul\n or\n swap1\n sstore\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":935:944 msgSender */\n dup1\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":902:945 OwnershipTransferred(address(0), msgSender) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":931:932 0 */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":902:945 OwnershipTransferred(address(0), msgSender) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0\n mload(0x40)\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n log3\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":829:950 {... */\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":578:2103 contract Ownable is Context {... */\n jump(tag_6)\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":587:694 function _msgSender() internal view virtual returns (address payable) {... */\ntag_5:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":640:655 address payable */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":678:688 msg.sender */\n caller\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":663:689 return payable(msg.sender) */\n swap1\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":587:694 function _msgSender() internal view virtual returns (address payable) {... */\n swap1\n jump\t// out\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":578:2103 contract Ownable is Context {... */\ntag_6:\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":578:2103 contract Ownable is Context {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\n tag_1:\n pop\n jumpi(tag_2, lt(calldatasize, 0x04))\n shr(0xe0, calldataload(0x00))\n dup1\n 0x715018a6\n eq\n tag_3\n jumpi\n dup1\n 0x8da5cb5b\n eq\n tag_4\n jumpi\n dup1\n 0xf2fde38b\n eq\n tag_5\n jumpi\n tag_2:\n 0x00\n dup1\n revert\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1601:1736 function renounceOwnership() public virtual onlyOwner {... */\n tag_3:\n tag_6\n tag_7\n jump\t// in\n tag_6:\n stop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1018:1089 function owner() public view returns (address) {... */\n tag_4:\n tag_8\n tag_9\n jump\t// in\n tag_8:\n mload(0x40)\n tag_10\n swap2\n swap1\n tag_11\n jump\t// in\n tag_10:\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n return\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1875:2101 function transferOwnership(address newOwner) public virtual onlyOwner {... */\n tag_5:\n tag_12\n 0x04\n dup1\n calldatasize\n sub\n dup2\n add\n swap1\n tag_13\n swap2\n swap1\n tag_14\n jump\t// in\n tag_13:\n tag_15\n jump\t// in\n tag_12:\n stop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1601:1736 function renounceOwnership() public virtual onlyOwner {... */\n tag_7:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1214:1226 _msgSender() */\n tag_17\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1214:1224 _msgSender */\n tag_18\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1214:1226 _msgSender() */\n jump\t// in\n tag_17:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1204:1226 _owner == _msgSender() */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1204:1210 _owner */\n 0x00\n dup1\n sload\n swap1\n 0x0100\n exp\n swap1\n div\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1204:1226 _owner == _msgSender() */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n eq\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1196:1263 require(_owner == _msgSender(), 'Ownable: caller is not the owner') */\n tag_19\n jumpi\n mload(0x40)\n 0x08c379a000000000000000000000000000000000000000000000000000000000\n dup2\n mstore\n 0x04\n add\n tag_20\n swap1\n tag_21\n jump\t// in\n tag_20:\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n revert\n tag_19:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1703:1704 0 */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1666:1706 OwnershipTransferred(_owner, address(0)) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1687:1693 _owner */\n 0x00\n dup1\n sload\n swap1\n 0x0100\n exp\n swap1\n div\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1666:1706 OwnershipTransferred(_owner, address(0)) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0\n mload(0x40)\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n log3\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1729:1730 0 */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1712:1718 _owner */\n dup1\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1712:1731 _owner = address(0) */\n 0x0100\n exp\n dup2\n sload\n dup2\n 0xffffffffffffffffffffffffffffffffffffffff\n mul\n not\n and\n swap1\n dup4\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n mul\n or\n swap1\n sstore\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1601:1736 function renounceOwnership() public virtual onlyOwner {... */\n jump\t// out\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1018:1089 function owner() public view returns (address) {... */\n tag_9:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1056:1063 address */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1078:1084 _owner */\n dup1\n 0x00\n swap1\n sload\n swap1\n 0x0100\n exp\n swap1\n div\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1071:1084 return _owner */\n swap1\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1018:1089 function owner() public view returns (address) {... */\n swap1\n jump\t// out\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1875:2101 function transferOwnership(address newOwner) public virtual onlyOwner {... */\n tag_15:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1214:1226 _msgSender() */\n tag_25\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1214:1224 _msgSender */\n tag_18\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1214:1226 _msgSender() */\n jump\t// in\n tag_25:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1204:1226 _owner == _msgSender() */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1204:1210 _owner */\n 0x00\n dup1\n sload\n swap1\n 0x0100\n exp\n swap1\n div\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1204:1226 _owner == _msgSender() */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n eq\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1196:1263 require(_owner == _msgSender(), 'Ownable: caller is not the owner') */\n tag_26\n jumpi\n mload(0x40)\n 0x08c379a000000000000000000000000000000000000000000000000000000000\n dup2\n mstore\n 0x04\n add\n tag_27\n swap1\n tag_21\n jump\t// in\n tag_27:\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n revert\n tag_26:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1979:1980 0 */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1959:1981 newOwner != address(0) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1959:1967 newOwner */\n dup2\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1959:1981 newOwner != address(0) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n sub\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1951:2024 require(newOwner != address(0), 'Ownable: new owner is the zero address') */\n tag_29\n jumpi\n mload(0x40)\n 0x08c379a000000000000000000000000000000000000000000000000000000000\n dup2\n mstore\n 0x04\n add\n tag_30\n swap1\n tag_31\n jump\t// in\n tag_30:\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n revert\n tag_29:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2064:2072 newOwner */\n dup1\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2035:2073 OwnershipTransferred(_owner, newOwner) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2056:2062 _owner */\n 0x00\n dup1\n sload\n swap1\n 0x0100\n exp\n swap1\n div\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2035:2073 OwnershipTransferred(_owner, newOwner) */\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0\n mload(0x40)\n mload(0x40)\n dup1\n swap2\n sub\n swap1\n log3\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2088:2096 newOwner */\n dup1\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2079:2085 _owner */\n 0x00\n dup1\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":2079:2096 _owner = newOwner */\n 0x0100\n exp\n dup2\n sload\n dup2\n 0xffffffffffffffffffffffffffffffffffffffff\n mul\n not\n and\n swap1\n dup4\n 0xffffffffffffffffffffffffffffffffffffffff\n and\n mul\n or\n swap1\n sstore\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":1875:2101 function transferOwnership(address newOwner) public virtual onlyOwner {... */\n pop\n jump\t// out\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":587:694 function _msgSender() internal view virtual returns (address payable) {... */\n tag_18:\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":640:655 address payable */\n 0x00\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":678:688 msg.sender */\n caller\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":663:689 return payable(msg.sender) */\n swap1\n pop\n /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":587:694 function _msgSender() internal view virtual returns (address payable) {... */\n swap1\n jump\t// out\n /* \"#utility.yul\":7:133 */\n tag_33:\n /* \"#utility.yul\":44:51 */\n 0x00\n /* \"#utility.yul\":84:126 */\n 0xffffffffffffffffffffffffffffffffffffffff\n /* \"#utility.yul\":77:82 */\n dup3\n /* \"#utility.yul\":73:127 */\n and\n /* \"#utility.yul\":62:127 */\n swap1\n pop\n /* \"#utility.yul\":7:133 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":139:235 */\n tag_34:\n /* \"#utility.yul\":176:183 */\n 0x00\n /* \"#utility.yul\":205:229 */\n tag_49\n /* \"#utility.yul\":223:228 */\n dup3\n /* \"#utility.yul\":205:229 */\n tag_33\n jump\t// in\n tag_49:\n /* \"#utility.yul\":194:229 */\n swap1\n pop\n /* \"#utility.yul\":139:235 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":241:359 */\n tag_35:\n /* \"#utility.yul\":328:352 */\n tag_51\n /* \"#utility.yul\":346:351 */\n dup2\n /* \"#utility.yul\":328:352 */\n tag_34\n jump\t// in\n tag_51:\n /* \"#utility.yul\":323:326 */\n dup3\n /* \"#utility.yul\":316:353 */\n mstore\n /* \"#utility.yul\":241:359 */\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":365:587 */\n tag_11:\n /* \"#utility.yul\":458:462 */\n 0x00\n /* \"#utility.yul\":496:498 */\n 0x20\n /* \"#utility.yul\":485:494 */\n dup3\n /* \"#utility.yul\":481:499 */\n add\n /* \"#utility.yul\":473:499 */\n swap1\n pop\n /* \"#utility.yul\":509:580 */\n tag_53\n /* \"#utility.yul\":577:578 */\n 0x00\n /* \"#utility.yul\":566:575 */\n dup4\n /* \"#utility.yul\":562:579 */\n add\n /* \"#utility.yul\":553:559 */\n dup5\n /* \"#utility.yul\":509:580 */\n tag_35\n jump\t// in\n tag_53:\n /* \"#utility.yul\":365:587 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":674:791 */\n tag_37:\n /* \"#utility.yul\":783:784 */\n 0x00\n /* \"#utility.yul\":780:781 */\n dup1\n /* \"#utility.yul\":773:785 */\n revert\n /* \"#utility.yul\":920:1042 */\n tag_39:\n /* \"#utility.yul\":993:1017 */\n tag_58\n /* \"#utility.yul\":1011:1016 */\n dup2\n /* \"#utility.yul\":993:1017 */\n tag_34\n jump\t// in\n tag_58:\n /* \"#utility.yul\":986:991 */\n dup2\n /* \"#utility.yul\":983:1018 */\n eq\n /* \"#utility.yul\":973:1036 */\n tag_59\n jumpi\n /* \"#utility.yul\":1032:1033 */\n 0x00\n /* \"#utility.yul\":1029:1030 */\n dup1\n /* \"#utility.yul\":1022:1034 */\n revert\n /* \"#utility.yul\":973:1036 */\n tag_59:\n /* \"#utility.yul\":920:1042 */\n pop\n jump\t// out\n /* \"#utility.yul\":1048:1187 */\n tag_40:\n /* \"#utility.yul\":1094:1099 */\n 0x00\n /* \"#utility.yul\":1132:1138 */\n dup2\n /* \"#utility.yul\":1119:1139 */\n calldataload\n /* \"#utility.yul\":1110:1139 */\n swap1\n pop\n /* \"#utility.yul\":1148:1181 */\n tag_61\n /* \"#utility.yul\":1175:1180 */\n dup2\n /* \"#utility.yul\":1148:1181 */\n tag_39\n jump\t// in\n tag_61:\n /* \"#utility.yul\":1048:1187 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":1193:1522 */\n tag_14:\n /* \"#utility.yul\":1252:1258 */\n 0x00\n /* \"#utility.yul\":1301:1303 */\n 0x20\n /* \"#utility.yul\":1289:1298 */\n dup3\n /* \"#utility.yul\":1280:1287 */\n dup5\n /* \"#utility.yul\":1276:1299 */\n sub\n /* \"#utility.yul\":1272:1304 */\n slt\n /* \"#utility.yul\":1269:1388 */\n iszero\n tag_63\n jumpi\n /* \"#utility.yul\":1307:1386 */\n tag_64\n tag_37\n jump\t// in\n tag_64:\n /* \"#utility.yul\":1269:1388 */\n tag_63:\n /* \"#utility.yul\":1427:1428 */\n 0x00\n /* \"#utility.yul\":1452:1505 */\n tag_65\n /* \"#utility.yul\":1497:1504 */\n dup5\n /* \"#utility.yul\":1488:1494 */\n dup3\n /* \"#utility.yul\":1477:1486 */\n dup6\n /* \"#utility.yul\":1473:1495 */\n add\n /* \"#utility.yul\":1452:1505 */\n tag_40\n jump\t// in\n tag_65:\n /* \"#utility.yul\":1442:1505 */\n swap2\n pop\n /* \"#utility.yul\":1398:1515 */\n pop\n /* \"#utility.yul\":1193:1522 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":1528:1697 */\n tag_41:\n /* \"#utility.yul\":1612:1623 */\n 0x00\n /* \"#utility.yul\":1646:1652 */\n dup3\n /* \"#utility.yul\":1641:1644 */\n dup3\n /* \"#utility.yul\":1634:1653 */\n mstore\n /* \"#utility.yul\":1686:1690 */\n 0x20\n /* \"#utility.yul\":1681:1684 */\n dup3\n /* \"#utility.yul\":1677:1691 */\n add\n /* \"#utility.yul\":1662:1691 */\n swap1\n pop\n /* \"#utility.yul\":1528:1697 */\n swap3\n swap2\n pop\n pop\n jump\t// out\n /* \"#utility.yul\":1703:1885 */\n tag_42:\n /* \"#utility.yul\":1843:1877 */\n 0x4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572\n /* \"#utility.yul\":1839:1840 */\n 0x00\n /* \"#utility.yul\":1831:1837 */\n dup3\n /* \"#utility.yul\":1827:1841 */\n add\n /* \"#utility.yul\":1820:1878 */\n mstore\n /* \"#utility.yul\":1703:1885 */\n pop\n jump\t// out\n /* \"#utility.yul\":1891:2257 */\n tag_43:\n /* \"#utility.yul\":2033:2036 */\n 0x00\n /* \"#utility.yul\":2054:2121 */\n tag_69\n /* \"#utility.yul\":2118:2120 */\n 0x20\n /* \"#utility.yul\":2113:2116 */\n dup4\n /* \"#utility.yul\":2054:2121 */\n tag_41\n jump\t// in\n tag_69:\n /* \"#utility.yul\":2047:2121 */\n swap2\n pop\n /* \"#utility.yul\":2130:2223 */\n tag_70\n /* \"#utility.yul\":2219:2222 */\n dup3\n /* \"#utility.yul\":2130:2223 */\n tag_42\n jump\t// in\n tag_70:\n /* \"#utility.yul\":2248:2250 */\n 0x20\n /* \"#utility.yul\":2243:2246 */\n dup3\n /* \"#utility.yul\":2239:2251 */\n add\n /* \"#utility.yul\":2232:2251 */\n swap1\n pop\n /* \"#utility.yul\":1891:2257 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":2263:2682 */\n tag_21:\n /* \"#utility.yul\":2429:2433 */\n 0x00\n /* \"#utility.yul\":2467:2469 */\n 0x20\n /* \"#utility.yul\":2456:2465 */\n dup3\n /* \"#utility.yul\":2452:2470 */\n add\n /* \"#utility.yul\":2444:2470 */\n swap1\n pop\n /* \"#utility.yul\":2516:2525 */\n dup2\n /* \"#utility.yul\":2510:2514 */\n dup2\n /* \"#utility.yul\":2506:2526 */\n sub\n /* \"#utility.yul\":2502:2503 */\n 0x00\n /* \"#utility.yul\":2491:2500 */\n dup4\n /* \"#utility.yul\":2487:2504 */\n add\n /* \"#utility.yul\":2480:2527 */\n mstore\n /* \"#utility.yul\":2544:2675 */\n tag_72\n /* \"#utility.yul\":2670:2674 */\n dup2\n /* \"#utility.yul\":2544:2675 */\n tag_43\n jump\t// in\n tag_72:\n /* \"#utility.yul\":2536:2675 */\n swap1\n pop\n /* \"#utility.yul\":2263:2682 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":2688:2913 */\n tag_44:\n /* \"#utility.yul\":2828:2862 */\n 0x4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061\n /* \"#utility.yul\":2824:2825 */\n 0x00\n /* \"#utility.yul\":2816:2822 */\n dup3\n /* \"#utility.yul\":2812:2826 */\n add\n /* \"#utility.yul\":2805:2863 */\n mstore\n /* \"#utility.yul\":2897:2905 */\n 0x6464726573730000000000000000000000000000000000000000000000000000\n /* \"#utility.yul\":2892:2894 */\n 0x20\n /* \"#utility.yul\":2884:2890 */\n dup3\n /* \"#utility.yul\":2880:2895 */\n add\n /* \"#utility.yul\":2873:2906 */\n mstore\n /* \"#utility.yul\":2688:2913 */\n pop\n jump\t// out\n /* \"#utility.yul\":2919:3285 */\n tag_45:\n /* \"#utility.yul\":3061:3064 */\n 0x00\n /* \"#utility.yul\":3082:3149 */\n tag_75\n /* \"#utility.yul\":3146:3148 */\n 0x26\n /* \"#utility.yul\":3141:3144 */\n dup4\n /* \"#utility.yul\":3082:3149 */\n tag_41\n jump\t// in\n tag_75:\n /* \"#utility.yul\":3075:3149 */\n swap2\n pop\n /* \"#utility.yul\":3158:3251 */\n tag_76\n /* \"#utility.yul\":3247:3250 */\n dup3\n /* \"#utility.yul\":3158:3251 */\n tag_44\n jump\t// in\n tag_76:\n /* \"#utility.yul\":3276:3278 */\n 0x40\n /* \"#utility.yul\":3271:3274 */\n dup3\n /* \"#utility.yul\":3267:3279 */\n add\n /* \"#utility.yul\":3260:3279 */\n swap1\n pop\n /* \"#utility.yul\":2919:3285 */\n swap2\n swap1\n pop\n jump\t// out\n /* \"#utility.yul\":3291:3710 */\n tag_31:\n /* \"#utility.yul\":3457:3461 */\n 0x00\n /* \"#utility.yul\":3495:3497 */\n 0x20\n /* \"#utility.yul\":3484:3493 */\n dup3\n /* \"#utility.yul\":3480:3498 */\n add\n /* \"#utility.yul\":3472:3498 */\n swap1\n pop\n /* \"#utility.yul\":3544:3553 */\n dup2\n /* \"#utility.yul\":3538:3542 */\n dup2\n /* \"#utility.yul\":3534:3554 */\n sub\n /* \"#utility.yul\":3530:3531 */\n 0x00\n /* \"#utility.yul\":3519:3528 */\n dup4\n /* \"#utility.yul\":3515:3532 */\n add\n /* \"#utility.yul\":3508:3555 */\n mstore\n /* \"#utility.yul\":3572:3703 */\n tag_78\n /* \"#utility.yul\":3698:3702 */\n dup2\n /* \"#utility.yul\":3572:3703 */\n tag_45\n jump\t// in\n tag_78:\n /* \"#utility.yul\":3564:3703 */\n swap1\n pop\n /* \"#utility.yul\":3291:3710 */\n swap2\n swap1\n pop\n jump\t// out\n\n auxdata: 0xa2646970667358221220c10ba62e2e6825ff3c591bb17b2fc7782bbd94f11c5f0dfdc4ba3966fc677e4764736f6c634300081a0033\n}\n",
"bytecode": {
"functionDebugData": {
"@_232": {
"entryPoint": null,
"id": 232,
"parameterSlots": 0,
"returnSlots": 0
},
"@_msgSender_84": {
"entryPoint": 188,
"id": 84,
"parameterSlots": 0,
"returnSlots": 1
}
},
"generatedSources": [],
"linkReferences": {},
"object": "6080604052348015600e575f80fd5b505f601c60bc60201b60201c565b9050805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060c3565b5f33905090565b6105ad806100d05f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063715018a6146100435780638da5cb5b1461004d578063f2fde38b1461006b575b5f80fd5b61004b610087565b005b6100556101d5565b60405161006291906103ff565b60405180910390f35b61008560048036038101906100809190610446565b6101fc565b005b61008f6103b9565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461011b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610112906104cb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f805f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6102046103b9565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610290576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610287906104cb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f590610559565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103e9826103c0565b9050919050565b6103f9816103df565b82525050565b5f6020820190506104125f8301846103f0565b92915050565b5f80fd5b610425816103df565b811461042f575f80fd5b50565b5f813590506104408161041c565b92915050565b5f6020828403121561045b5761045a610418565b5b5f61046884828501610432565b91505092915050565b5f82825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6104b5602083610471565b91506104c082610481565b602082019050919050565b5f6020820190508181035f8301526104e2816104a9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f610543602683610471565b915061054e826104e9565b604082019050919050565b5f6020820190508181035f83015261057081610537565b905091905056fea2646970667358221220c10ba62e2e6825ff3c591bb17b2fc7782bbd94f11c5f0dfdc4ba3966fc677e4764736f6c634300081a0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xE JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH0 PUSH1 0x1C PUSH1 0xBC PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST SWAP1 POP DUP1 PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP DUP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP PUSH1 0xC3 JUMP JUMPDEST PUSH0 CALLER SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x5AD DUP1 PUSH2 0xD0 PUSH0 CODECOPY PUSH0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0xF JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x3F JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x715018A6 EQ PUSH2 0x43 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x4D JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x6B JUMPI JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0x4B PUSH2 0x87 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x55 PUSH2 0x1D5 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x62 SWAP2 SWAP1 PUSH2 0x3FF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x85 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x80 SWAP2 SWAP1 PUSH2 0x446 JUMP JUMPDEST PUSH2 0x1FC JUMP JUMPDEST STOP JUMPDEST PUSH2 0x8F PUSH2 0x3B9 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x11B JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x112 SWAP1 PUSH2 0x4CB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 PUSH0 DUP1 PUSH0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x204 PUSH2 0x3B9 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x290 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x287 SWAP1 PUSH2 0x4CB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x2FE JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x2F5 SWAP1 PUSH2 0x559 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 DUP1 PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH0 CALLER SWAP1 POP SWAP1 JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0x3E9 DUP3 PUSH2 0x3C0 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x3F9 DUP2 PUSH2 0x3DF JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x412 PUSH0 DUP4 ADD DUP5 PUSH2 0x3F0 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0x425 DUP2 PUSH2 0x3DF JUMP JUMPDEST DUP2 EQ PUSH2 0x42F JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x440 DUP2 PUSH2 0x41C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x45B JUMPI PUSH2 0x45A PUSH2 0x418 JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0x468 DUP5 DUP3 DUP6 ADD PUSH2 0x432 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0x4B5 PUSH1 0x20 DUP4 PUSH2 0x471 JUMP JUMPDEST SWAP2 POP PUSH2 0x4C0 DUP3 PUSH2 0x481 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x4E2 DUP2 PUSH2 0x4A9 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 PUSH0 DUP3 ADD MSTORE PUSH32 0x6464726573730000000000000000000000000000000000000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0x543 PUSH1 0x26 DUP4 PUSH2 0x471 JUMP JUMPDEST SWAP2 POP PUSH2 0x54E DUP3 PUSH2 0x4E9 JUMP JUMPDEST PUSH1 0x40 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x570 DUP2 PUSH2 0x537 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC1 SIGNEXTEND 0xA6 0x2E 0x2E PUSH9 0x25FF3C591BB17B2FC7 PUSH25 0x2BBD94F11C5F0DFDC4BA3966FC677E4764736F6C634300081A STOP CALLER ",
"sourceMap": "578:1525:4:-:0;;;815:135;;;;;;;;;;835:17;855:12;:10;;;:12;;:::i;:::-;835:32;;882:9;873:6;;:18;;;;;;;;;;;;;;;;;;935:9;902:43;;931:1;902:43;;;;;;;;;;;;829:121;578:1525;;587:107:1;640:15;678:10;663:26;;587:107;:::o;578:1525:4:-;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@_msgSender_84": {
"entryPoint": 953,
"id": 84,
"parameterSlots": 0,
"returnSlots": 1
},
"@owner_241": {
"entryPoint": 469,
"id": 241,
"parameterSlots": 0,
"returnSlots": 1
},
"@renounceOwnership_276": {
"entryPoint": 135,
"id": 276,
"parameterSlots": 0,
"returnSlots": 0
},
"@transferOwnership_304": {
"entryPoint": 508,
"id": 304,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_t_address": {
"entryPoint": 1074,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_address": {
"entryPoint": 1094,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 1008,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack": {
"entryPoint": 1335,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack": {
"entryPoint": 1193,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 1023,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 1369,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 1227,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 1137,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 991,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 960,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 1048,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe": {
"entryPoint": 1257,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe": {
"entryPoint": 1153,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_address": {
"entryPoint": 1052,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nativeSrc": "0:3713:14",
"nodeType": "YulBlock",
"src": "0:3713:14",
"statements": [
{
"body": {
"nativeSrc": "52:81:14",
"nodeType": "YulBlock",
"src": "52:81:14",
"statements": [
{
"nativeSrc": "62:65:14",
"nodeType": "YulAssignment",
"src": "62:65:14",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "77:5:14",
"nodeType": "YulIdentifier",
"src": "77:5:14"
},
{
"kind": "number",
"nativeSrc": "84:42:14",
"nodeType": "YulLiteral",
"src": "84:42:14",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nativeSrc": "73:3:14",
"nodeType": "YulIdentifier",
"src": "73:3:14"
},
"nativeSrc": "73:54:14",
"nodeType": "YulFunctionCall",
"src": "73:54:14"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "62:7:14",
"nodeType": "YulIdentifier",
"src": "62:7:14"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nativeSrc": "7:126:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "34:5:14",
"nodeType": "YulTypedName",
"src": "34:5:14",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "44:7:14",
"nodeType": "YulTypedName",
"src": "44:7:14",
"type": ""
}
],
"src": "7:126:14"
},
{
"body": {
"nativeSrc": "184:51:14",
"nodeType": "YulBlock",
"src": "184:51:14",
"statements": [
{
"nativeSrc": "194:35:14",
"nodeType": "YulAssignment",
"src": "194:35:14",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "223:5:14",
"nodeType": "YulIdentifier",
"src": "223:5:14"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nativeSrc": "205:17:14",
"nodeType": "YulIdentifier",
"src": "205:17:14"
},
"nativeSrc": "205:24:14",
"nodeType": "YulFunctionCall",
"src": "205:24:14"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "194:7:14",
"nodeType": "YulIdentifier",
"src": "194:7:14"
}
]
}
]
},
"name": "cleanup_t_address",
"nativeSrc": "139:96:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "166:5:14",
"nodeType": "YulTypedName",
"src": "166:5:14",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "176:7:14",
"nodeType": "YulTypedName",
"src": "176:7:14",
"type": ""
}
],
"src": "139:96:14"
},
{
"body": {
"nativeSrc": "306:53:14",
"nodeType": "YulBlock",
"src": "306:53:14",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "323:3:14",
"nodeType": "YulIdentifier",
"src": "323:3:14"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "346:5:14",
"nodeType": "YulIdentifier",
"src": "346:5:14"
}
],
"functionName": {
"name": "cleanup_t_address",
"nativeSrc": "328:17:14",
"nodeType": "YulIdentifier",
"src": "328:17:14"
},
"nativeSrc": "328:24:14",
"nodeType": "YulFunctionCall",
"src": "328:24:14"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "316:6:14",
"nodeType": "YulIdentifier",
"src": "316:6:14"
},
"nativeSrc": "316:37:14",
"nodeType": "YulFunctionCall",
"src": "316:37:14"
},
"nativeSrc": "316:37:14",
"nodeType": "YulExpressionStatement",
"src": "316:37:14"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "241:118:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "294:5:14",
"nodeType": "YulTypedName",
"src": "294:5:14",
"type": ""
},
{
"name": "pos",
"nativeSrc": "301:3:14",
"nodeType": "YulTypedName",
"src": "301:3:14",
"type": ""
}
],
"src": "241:118:14"
},
{
"body": {
"nativeSrc": "463:124:14",
"nodeType": "YulBlock",
"src": "463:124:14",
"statements": [
{
"nativeSrc": "473:26:14",
"nodeType": "YulAssignment",
"src": "473:26:14",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "485:9:14",
"nodeType": "YulIdentifier",
"src": "485:9:14"
},
{
"kind": "number",
"nativeSrc": "496:2:14",
"nodeType": "YulLiteral",
"src": "496:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "481:3:14",
"nodeType": "YulIdentifier",
"src": "481:3:14"
},
"nativeSrc": "481:18:14",
"nodeType": "YulFunctionCall",
"src": "481:18:14"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "473:4:14",
"nodeType": "YulIdentifier",
"src": "473:4:14"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "553:6:14",
"nodeType": "YulIdentifier",
"src": "553:6:14"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "566:9:14",
"nodeType": "YulIdentifier",
"src": "566:9:14"
},
{
"kind": "number",
"nativeSrc": "577:1:14",
"nodeType": "YulLiteral",
"src": "577:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "562:3:14",
"nodeType": "YulIdentifier",
"src": "562:3:14"
},
"nativeSrc": "562:17:14",
"nodeType": "YulFunctionCall",
"src": "562:17:14"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "509:43:14",
"nodeType": "YulIdentifier",
"src": "509:43:14"
},
"nativeSrc": "509:71:14",
"nodeType": "YulFunctionCall",
"src": "509:71:14"
},
"nativeSrc": "509:71:14",
"nodeType": "YulExpressionStatement",
"src": "509:71:14"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nativeSrc": "365:222:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "435:9:14",
"nodeType": "YulTypedName",
"src": "435:9:14",
"type": ""
},
{
"name": "value0",
"nativeSrc": "447:6:14",
"nodeType": "YulTypedName",
"src": "447:6:14",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "458:4:14",
"nodeType": "YulTypedName",
"src": "458:4:14",
"type": ""
}
],
"src": "365:222:14"
},
{
"body": {
"nativeSrc": "633:35:14",
"nodeType": "YulBlock",
"src": "633:35:14",
"statements": [
{
"nativeSrc": "643:19:14",
"nodeType": "YulAssignment",
"src": "643:19:14",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "659:2:14",
"nodeType": "YulLiteral",
"src": "659:2:14",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "653:5:14",
"nodeType": "YulIdentifier",
"src": "653:5:14"
},
"nativeSrc": "653:9:14",
"nodeType": "YulFunctionCall",
"src": "653:9:14"
},
"variableNames": [
{
"name": "memPtr",
"nativeSrc": "643:6:14",
"nodeType": "YulIdentifier",
"src": "643:6:14"
}
]
}
]
},
"name": "allocate_unbounded",
"nativeSrc": "593:75:14",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nativeSrc": "626:6:14",
"nodeType": "YulTypedName",
"src": "626:6:14",
"type": ""
}
],
"src": "593:75:14"
},
{
"body": {
"nativeSrc": "763:28:14",
"nodeType": "YulBlock",
"src": "763:28:14",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "780:1:14",
"nodeType": "YulLiteral",
"src": "780:1:14",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "783:1:14",
"nodeType": "YulLiteral",
"src": "783:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "773:6:14",
"nodeType": "YulIdentifier",
"src": "773:6:14"
},
"nativeSrc": "773:12:14",
"nodeType": "YulFunctionCall",
"src": "773:12:14"
},
"nativeSrc": "773:12:14",
"nodeType": "YulExpressionStatement",
"src": "773:12:14"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "674:117:14",
"nodeType": "YulFunctionDefinition",
"src": "674:117:14"
},
{
"body": {
"nativeSrc": "886:28:14",
"nodeType": "YulBlock",
"src": "886:28:14",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "903:1:14",
"nodeType": "YulLiteral",
"src": "903:1:14",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "906:1:14",
"nodeType": "YulLiteral",
"src": "906:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "896:6:14",
"nodeType": "YulIdentifier",
"src": "896:6:14"
},
"nativeSrc": "896:12:14",
"nodeType": "YulFunctionCall",
"src": "896:12:14"
},
"nativeSrc": "896:12:14",
"nodeType": "YulExpressionStatement",
"src": "896:12:14"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nativeSrc": "797:117:14",
"nodeType": "YulFunctionDefinition",
"src": "797:117:14"
},
{
"body": {
"nativeSrc": "963:79:14",
"nodeType": "YulBlock",
"src": "963:79:14",
"statements": [
{
"body": {
"nativeSrc": "1020:16:14",
"nodeType": "YulBlock",
"src": "1020:16:14",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1029:1:14",
"nodeType": "YulLiteral",
"src": "1029:1:14",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "1032:1:14",
"nodeType": "YulLiteral",
"src": "1032:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "1022:6:14",
"nodeType": "YulIdentifier",
"src": "1022:6:14"
},
"nativeSrc": "1022:12:14",
"nodeType": "YulFunctionCall",
"src": "1022:12:14"
},
"nativeSrc": "1022:12:14",
"nodeType": "YulExpressionStatement",
"src": "1022:12:14"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "986:5:14",
"nodeType": "YulIdentifier",
"src": "986:5:14"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "1011:5:14",
"nodeType": "YulIdentifier",
"src": "1011:5:14"
}
],
"functionName": {
"name": "cleanup_t_address",
"nativeSrc": "993:17:14",
"nodeType": "YulIdentifier",
"src": "993:17:14"
},
"nativeSrc": "993:24:14",
"nodeType": "YulFunctionCall",
"src": "993:24:14"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "983:2:14",
"nodeType": "YulIdentifier",
"src": "983:2:14"
},
"nativeSrc": "983:35:14",
"nodeType": "YulFunctionCall",
"src": "983:35:14"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "976:6:14",
"nodeType": "YulIdentifier",
"src": "976:6:14"
},
"nativeSrc": "976:43:14",
"nodeType": "YulFunctionCall",
"src": "976:43:14"
},
"nativeSrc": "973:63:14",
"nodeType": "YulIf",
"src": "973:63:14"
}
]
},
"name": "validator_revert_t_address",
"nativeSrc": "920:122:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "956:5:14",
"nodeType": "YulTypedName",
"src": "956:5:14",
"type": ""
}
],
"src": "920:122:14"
},
{
"body": {
"nativeSrc": "1100:87:14",
"nodeType": "YulBlock",
"src": "1100:87:14",
"statements": [
{
"nativeSrc": "1110:29:14",
"nodeType": "YulAssignment",
"src": "1110:29:14",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "1132:6:14",
"nodeType": "YulIdentifier",
"src": "1132:6:14"
}
],
"functionName": {
"name": "calldataload",
"nativeSrc": "1119:12:14",
"nodeType": "YulIdentifier",
"src": "1119:12:14"
},
"nativeSrc": "1119:20:14",
"nodeType": "YulFunctionCall",
"src": "1119:20:14"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "1110:5:14",
"nodeType": "YulIdentifier",
"src": "1110:5:14"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nativeSrc": "1175:5:14",
"nodeType": "YulIdentifier",
"src": "1175:5:14"
}
],
"functionName": {
"name": "validator_revert_t_address",
"nativeSrc": "1148:26:14",
"nodeType": "YulIdentifier",
"src": "1148:26:14"
},
"nativeSrc": "1148:33:14",
"nodeType": "YulFunctionCall",
"src": "1148:33:14"
},
"nativeSrc": "1148:33:14",
"nodeType": "YulExpressionStatement",
"src": "1148:33:14"
}
]
},
"name": "abi_decode_t_address",
"nativeSrc": "1048:139:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "1078:6:14",
"nodeType": "YulTypedName",
"src": "1078:6:14",
"type": ""
},
{
"name": "end",
"nativeSrc": "1086:3:14",
"nodeType": "YulTypedName",
"src": "1086:3:14",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nativeSrc": "1094:5:14",
"nodeType": "YulTypedName",
"src": "1094:5:14",
"type": ""
}
],
"src": "1048:139:14"
},
{
"body": {
"nativeSrc": "1259:263:14",
"nodeType": "YulBlock",
"src": "1259:263:14",
"statements": [
{
"body": {
"nativeSrc": "1305:83:14",
"nodeType": "YulBlock",
"src": "1305:83:14",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "1307:77:14",
"nodeType": "YulIdentifier",
"src": "1307:77:14"
},
"nativeSrc": "1307:79:14",
"nodeType": "YulFunctionCall",
"src": "1307:79:14"
},
"nativeSrc": "1307:79:14",
"nodeType": "YulExpressionStatement",
"src": "1307:79:14"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nativeSrc": "1280:7:14",
"nodeType": "YulIdentifier",
"src": "1280:7:14"
},
{
"name": "headStart",
"nativeSrc": "1289:9:14",
"nodeType": "YulIdentifier",
"src": "1289:9:14"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "1276:3:14",
"nodeType": "YulIdentifier",
"src": "1276:3:14"
},
"nativeSrc": "1276:23:14",
"nodeType": "YulFunctionCall",
"src": "1276:23:14"
},
{
"kind": "number",
"nativeSrc": "1301:2:14",
"nodeType": "YulLiteral",
"src": "1301:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nativeSrc": "1272:3:14",
"nodeType": "YulIdentifier",
"src": "1272:3:14"
},
"nativeSrc": "1272:32:14",
"nodeType": "YulFunctionCall",
"src": "1272:32:14"
},
"nativeSrc": "1269:119:14",
"nodeType": "YulIf",
"src": "1269:119:14"
},
{
"nativeSrc": "1398:117:14",
"nodeType": "YulBlock",
"src": "1398:117:14",
"statements": [
{
"nativeSrc": "1413:15:14",
"nodeType": "YulVariableDeclaration",
"src": "1413:15:14",
"value": {
"kind": "number",
"nativeSrc": "1427:1:14",
"nodeType": "YulLiteral",
"src": "1427:1:14",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nativeSrc": "1417:6:14",
"nodeType": "YulTypedName",
"src": "1417:6:14",
"type": ""
}
]
},
{
"nativeSrc": "1442:63:14",
"nodeType": "YulAssignment",
"src": "1442:63:14",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "1477:9:14",
"nodeType": "YulIdentifier",
"src": "1477:9:14"
},
{
"name": "offset",
"nativeSrc": "1488:6:14",
"nodeType": "YulIdentifier",
"src": "1488:6:14"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1473:3:14",
"nodeType": "YulIdentifier",
"src": "1473:3:14"
},
"nativeSrc": "1473:22:14",
"nodeType": "YulFunctionCall",
"src": "1473:22:14"
},
{
"name": "dataEnd",
"nativeSrc": "1497:7:14",
"nodeType": "YulIdentifier",
"src": "1497:7:14"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nativeSrc": "1452:20:14",
"nodeType": "YulIdentifier",
"src": "1452:20:14"
},
"nativeSrc": "1452:53:14",
"nodeType": "YulFunctionCall",
"src": "1452:53:14"
},
"variableNames": [
{
"name": "value0",
"nativeSrc": "1442:6:14",
"nodeType": "YulIdentifier",
"src": "1442:6:14"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nativeSrc": "1193:329:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "1229:9:14",
"nodeType": "YulTypedName",
"src": "1229:9:14",
"type": ""
},
{
"name": "dataEnd",
"nativeSrc": "1240:7:14",
"nodeType": "YulTypedName",
"src": "1240:7:14",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nativeSrc": "1252:6:14",
"nodeType": "YulTypedName",
"src": "1252:6:14",
"type": ""
}
],
"src": "1193:329:14"
},
{
"body": {
"nativeSrc": "1624:73:14",
"nodeType": "YulBlock",
"src": "1624:73:14",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "1641:3:14",
"nodeType": "YulIdentifier",
"src": "1641:3:14"
},
{
"name": "length",
"nativeSrc": "1646:6:14",
"nodeType": "YulIdentifier",
"src": "1646:6:14"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1634:6:14",
"nodeType": "YulIdentifier",
"src": "1634:6:14"
},
"nativeSrc": "1634:19:14",
"nodeType": "YulFunctionCall",
"src": "1634:19:14"
},
"nativeSrc": "1634:19:14",
"nodeType": "YulExpressionStatement",
"src": "1634:19:14"
},
{
"nativeSrc": "1662:29:14",
"nodeType": "YulAssignment",
"src": "1662:29:14",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "1681:3:14",
"nodeType": "YulIdentifier",
"src": "1681:3:14"
},
{
"kind": "number",
"nativeSrc": "1686:4:14",
"nodeType": "YulLiteral",
"src": "1686:4:14",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1677:3:14",
"nodeType": "YulIdentifier",
"src": "1677:3:14"
},
"nativeSrc": "1677:14:14",
"nodeType": "YulFunctionCall",
"src": "1677:14:14"
},
"variableNames": [
{
"name": "updated_pos",
"nativeSrc": "1662:11:14",
"nodeType": "YulIdentifier",
"src": "1662:11:14"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "1528:169:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "1596:3:14",
"nodeType": "YulTypedName",
"src": "1596:3:14",
"type": ""
},
{
"name": "length",
"nativeSrc": "1601:6:14",
"nodeType": "YulTypedName",
"src": "1601:6:14",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nativeSrc": "1612:11:14",
"nodeType": "YulTypedName",
"src": "1612:11:14",
"type": ""
}
],
"src": "1528:169:14"
},
{
"body": {
"nativeSrc": "1809:76:14",
"nodeType": "YulBlock",
"src": "1809:76:14",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "1831:6:14",
"nodeType": "YulIdentifier",
"src": "1831:6:14"
},
{
"kind": "number",
"nativeSrc": "1839:1:14",
"nodeType": "YulLiteral",
"src": "1839:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1827:3:14",
"nodeType": "YulIdentifier",
"src": "1827:3:14"
},
"nativeSrc": "1827:14:14",
"nodeType": "YulFunctionCall",
"src": "1827:14:14"
},
{
"hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572",
"kind": "string",
"nativeSrc": "1843:34:14",
"nodeType": "YulLiteral",
"src": "1843:34:14",
"type": "",
"value": "Ownable: caller is not the owner"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1820:6:14",
"nodeType": "YulIdentifier",
"src": "1820:6:14"
},
"nativeSrc": "1820:58:14",
"nodeType": "YulFunctionCall",
"src": "1820:58:14"
},
"nativeSrc": "1820:58:14",
"nodeType": "YulExpressionStatement",
"src": "1820:58:14"
}
]
},
"name": "store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
"nativeSrc": "1703:182:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "1801:6:14",
"nodeType": "YulTypedName",
"src": "1801:6:14",
"type": ""
}
],
"src": "1703:182:14"
},
{
"body": {
"nativeSrc": "2037:220:14",
"nodeType": "YulBlock",
"src": "2037:220:14",
"statements": [
{
"nativeSrc": "2047:74:14",
"nodeType": "YulAssignment",
"src": "2047:74:14",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "2113:3:14",
"nodeType": "YulIdentifier",
"src": "2113:3:14"
},
{
"kind": "number",
"nativeSrc": "2118:2:14",
"nodeType": "YulLiteral",
"src": "2118:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "2054:58:14",
"nodeType": "YulIdentifier",
"src": "2054:58:14"
},
"nativeSrc": "2054:67:14",
"nodeType": "YulFunctionCall",
"src": "2054:67:14"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "2047:3:14",
"nodeType": "YulIdentifier",
"src": "2047:3:14"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "2219:3:14",
"nodeType": "YulIdentifier",
"src": "2219:3:14"
}
],
"functionName": {
"name": "store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
"nativeSrc": "2130:88:14",
"nodeType": "YulIdentifier",
"src": "2130:88:14"
},
"nativeSrc": "2130:93:14",
"nodeType": "YulFunctionCall",
"src": "2130:93:14"
},
"nativeSrc": "2130:93:14",
"nodeType": "YulExpressionStatement",
"src": "2130:93:14"
},
{
"nativeSrc": "2232:19:14",
"nodeType": "YulAssignment",
"src": "2232:19:14",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "2243:3:14",
"nodeType": "YulIdentifier",
"src": "2243:3:14"
},
{
"kind": "number",
"nativeSrc": "2248:2:14",
"nodeType": "YulLiteral",
"src": "2248:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2239:3:14",
"nodeType": "YulIdentifier",
"src": "2239:3:14"
},
"nativeSrc": "2239:12:14",
"nodeType": "YulFunctionCall",
"src": "2239:12:14"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "2232:3:14",
"nodeType": "YulIdentifier",
"src": "2232:3:14"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack",
"nativeSrc": "1891:366:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "2025:3:14",
"nodeType": "YulTypedName",
"src": "2025:3:14",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "2033:3:14",
"nodeType": "YulTypedName",
"src": "2033:3:14",
"type": ""
}
],
"src": "1891:366:14"
},
{
"body": {
"nativeSrc": "2434:248:14",
"nodeType": "YulBlock",
"src": "2434:248:14",
"statements": [
{
"nativeSrc": "2444:26:14",
"nodeType": "YulAssignment",
"src": "2444:26:14",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "2456:9:14",
"nodeType": "YulIdentifier",
"src": "2456:9:14"
},
{
"kind": "number",
"nativeSrc": "2467:2:14",
"nodeType": "YulLiteral",
"src": "2467:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2452:3:14",
"nodeType": "YulIdentifier",
"src": "2452:3:14"
},
"nativeSrc": "2452:18:14",
"nodeType": "YulFunctionCall",
"src": "2452:18:14"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "2444:4:14",
"nodeType": "YulIdentifier",
"src": "2444:4:14"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "2491:9:14",
"nodeType": "YulIdentifier",
"src": "2491:9:14"
},
{
"kind": "number",
"nativeSrc": "2502:1:14",
"nodeType": "YulLiteral",
"src": "2502:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2487:3:14",
"nodeType": "YulIdentifier",
"src": "2487:3:14"
},
"nativeSrc": "2487:17:14",
"nodeType": "YulFunctionCall",
"src": "2487:17:14"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "2510:4:14",
"nodeType": "YulIdentifier",
"src": "2510:4:14"
},
{
"name": "headStart",
"nativeSrc": "2516:9:14",
"nodeType": "YulIdentifier",
"src": "2516:9:14"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "2506:3:14",
"nodeType": "YulIdentifier",
"src": "2506:3:14"
},
"nativeSrc": "2506:20:14",
"nodeType": "YulFunctionCall",
"src": "2506:20:14"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "2480:6:14",
"nodeType": "YulIdentifier",
"src": "2480:6:14"
},
"nativeSrc": "2480:47:14",
"nodeType": "YulFunctionCall",
"src": "2480:47:14"
},
"nativeSrc": "2480:47:14",
"nodeType": "YulExpressionStatement",
"src": "2480:47:14"
},
{
"nativeSrc": "2536:139:14",
"nodeType": "YulAssignment",
"src": "2536:139:14",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "2670:4:14",
"nodeType": "YulIdentifier",
"src": "2670:4:14"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack",
"nativeSrc": "2544:124:14",
"nodeType": "YulIdentifier",
"src": "2544:124:14"
},
"nativeSrc": "2544:131:14",
"nodeType": "YulFunctionCall",
"src": "2544:131:14"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "2536:4:14",
"nodeType": "YulIdentifier",
"src": "2536:4:14"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "2263:419:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "2414:9:14",
"nodeType": "YulTypedName",
"src": "2414:9:14",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "2429:4:14",
"nodeType": "YulTypedName",
"src": "2429:4:14",
"type": ""
}
],
"src": "2263:419:14"
},
{
"body": {
"nativeSrc": "2794:119:14",
"nodeType": "YulBlock",
"src": "2794:119:14",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "2816:6:14",
"nodeType": "YulIdentifier",
"src": "2816:6:14"
},
{
"kind": "number",
"nativeSrc": "2824:1:14",
"nodeType": "YulLiteral",
"src": "2824:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2812:3:14",
"nodeType": "YulIdentifier",
"src": "2812:3:14"
},
"nativeSrc": "2812:14:14",
"nodeType": "YulFunctionCall",
"src": "2812:14:14"
},
{
"hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061",
"kind": "string",
"nativeSrc": "2828:34:14",
"nodeType": "YulLiteral",
"src": "2828:34:14",
"type": "",
"value": "Ownable: new owner is the zero a"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "2805:6:14",
"nodeType": "YulIdentifier",
"src": "2805:6:14"
},
"nativeSrc": "2805:58:14",
"nodeType": "YulFunctionCall",
"src": "2805:58:14"
},
"nativeSrc": "2805:58:14",
"nodeType": "YulExpressionStatement",
"src": "2805:58:14"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "2884:6:14",
"nodeType": "YulIdentifier",
"src": "2884:6:14"
},
{
"kind": "number",
"nativeSrc": "2892:2:14",
"nodeType": "YulLiteral",
"src": "2892:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2880:3:14",
"nodeType": "YulIdentifier",
"src": "2880:3:14"
},
"nativeSrc": "2880:15:14",
"nodeType": "YulFunctionCall",
"src": "2880:15:14"
},
{
"hexValue": "646472657373",
"kind": "string",
"nativeSrc": "2897:8:14",
"nodeType": "YulLiteral",
"src": "2897:8:14",
"type": "",
"value": "ddress"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "2873:6:14",
"nodeType": "YulIdentifier",
"src": "2873:6:14"
},
"nativeSrc": "2873:33:14",
"nodeType": "YulFunctionCall",
"src": "2873:33:14"
},
"nativeSrc": "2873:33:14",
"nodeType": "YulExpressionStatement",
"src": "2873:33:14"
}
]
},
"name": "store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
"nativeSrc": "2688:225:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "2786:6:14",
"nodeType": "YulTypedName",
"src": "2786:6:14",
"type": ""
}
],
"src": "2688:225:14"
},
{
"body": {
"nativeSrc": "3065:220:14",
"nodeType": "YulBlock",
"src": "3065:220:14",
"statements": [
{
"nativeSrc": "3075:74:14",
"nodeType": "YulAssignment",
"src": "3075:74:14",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "3141:3:14",
"nodeType": "YulIdentifier",
"src": "3141:3:14"
},
{
"kind": "number",
"nativeSrc": "3146:2:14",
"nodeType": "YulLiteral",
"src": "3146:2:14",
"type": "",
"value": "38"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "3082:58:14",
"nodeType": "YulIdentifier",
"src": "3082:58:14"
},
"nativeSrc": "3082:67:14",
"nodeType": "YulFunctionCall",
"src": "3082:67:14"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "3075:3:14",
"nodeType": "YulIdentifier",
"src": "3075:3:14"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "3247:3:14",
"nodeType": "YulIdentifier",
"src": "3247:3:14"
}
],
"functionName": {
"name": "store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
"nativeSrc": "3158:88:14",
"nodeType": "YulIdentifier",
"src": "3158:88:14"
},
"nativeSrc": "3158:93:14",
"nodeType": "YulFunctionCall",
"src": "3158:93:14"
},
"nativeSrc": "3158:93:14",
"nodeType": "YulExpressionStatement",
"src": "3158:93:14"
},
{
"nativeSrc": "3260:19:14",
"nodeType": "YulAssignment",
"src": "3260:19:14",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "3271:3:14",
"nodeType": "YulIdentifier",
"src": "3271:3:14"
},
{
"kind": "number",
"nativeSrc": "3276:2:14",
"nodeType": "YulLiteral",
"src": "3276:2:14",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3267:3:14",
"nodeType": "YulIdentifier",
"src": "3267:3:14"
},
"nativeSrc": "3267:12:14",
"nodeType": "YulFunctionCall",
"src": "3267:12:14"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "3260:3:14",
"nodeType": "YulIdentifier",
"src": "3260:3:14"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack",
"nativeSrc": "2919:366:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "3053:3:14",
"nodeType": "YulTypedName",
"src": "3053:3:14",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "3061:3:14",
"nodeType": "YulTypedName",
"src": "3061:3:14",
"type": ""
}
],
"src": "2919:366:14"
},
{
"body": {
"nativeSrc": "3462:248:14",
"nodeType": "YulBlock",
"src": "3462:248:14",
"statements": [
{
"nativeSrc": "3472:26:14",
"nodeType": "YulAssignment",
"src": "3472:26:14",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "3484:9:14",
"nodeType": "YulIdentifier",
"src": "3484:9:14"
},
{
"kind": "number",
"nativeSrc": "3495:2:14",
"nodeType": "YulLiteral",
"src": "3495:2:14",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3480:3:14",
"nodeType": "YulIdentifier",
"src": "3480:3:14"
},
"nativeSrc": "3480:18:14",
"nodeType": "YulFunctionCall",
"src": "3480:18:14"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "3472:4:14",
"nodeType": "YulIdentifier",
"src": "3472:4:14"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3519:9:14",
"nodeType": "YulIdentifier",
"src": "3519:9:14"
},
{
"kind": "number",
"nativeSrc": "3530:1:14",
"nodeType": "YulLiteral",
"src": "3530:1:14",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3515:3:14",
"nodeType": "YulIdentifier",
"src": "3515:3:14"
},
"nativeSrc": "3515:17:14",
"nodeType": "YulFunctionCall",
"src": "3515:17:14"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "3538:4:14",
"nodeType": "YulIdentifier",
"src": "3538:4:14"
},
{
"name": "headStart",
"nativeSrc": "3544:9:14",
"nodeType": "YulIdentifier",
"src": "3544:9:14"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "3534:3:14",
"nodeType": "YulIdentifier",
"src": "3534:3:14"
},
"nativeSrc": "3534:20:14",
"nodeType": "YulFunctionCall",
"src": "3534:20:14"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3508:6:14",
"nodeType": "YulIdentifier",
"src": "3508:6:14"
},
"nativeSrc": "3508:47:14",
"nodeType": "YulFunctionCall",
"src": "3508:47:14"
},
"nativeSrc": "3508:47:14",
"nodeType": "YulExpressionStatement",
"src": "3508:47:14"
},
{
"nativeSrc": "3564:139:14",
"nodeType": "YulAssignment",
"src": "3564:139:14",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "3698:4:14",
"nodeType": "YulIdentifier",
"src": "3698:4:14"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack",
"nativeSrc": "3572:124:14",
"nodeType": "YulIdentifier",
"src": "3572:124:14"
},
"nativeSrc": "3572:131:14",
"nodeType": "YulFunctionCall",
"src": "3572:131:14"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "3564:4:14",
"nodeType": "YulIdentifier",
"src": "3564:4:14"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "3291:419:14",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "3442:9:14",
"nodeType": "YulTypedName",
"src": "3442:9:14",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "3457:4:14",
"nodeType": "YulTypedName",
"src": "3457:4:14",
"type": ""
}
],
"src": "3291:419:14"
}
]
},
"contents": "{\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe(memPtr) {\n\n mstore(add(memPtr, 0), \"Ownable: caller is not the owner\")\n\n }\n\n function abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 32)\n store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe(memPtr) {\n\n mstore(add(memPtr, 0), \"Ownable: new owner is the zero a\")\n\n mstore(add(memPtr, 32), \"ddress\")\n\n }\n\n function abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 38)\n store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n}\n",
"id": 14,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063715018a6146100435780638da5cb5b1461004d578063f2fde38b1461006b575b5f80fd5b61004b610087565b005b6100556101d5565b60405161006291906103ff565b60405180910390f35b61008560048036038101906100809190610446565b6101fc565b005b61008f6103b9565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461011b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610112906104cb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f805f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6102046103b9565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610290576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610287906104cb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f590610559565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103e9826103c0565b9050919050565b6103f9816103df565b82525050565b5f6020820190506104125f8301846103f0565b92915050565b5f80fd5b610425816103df565b811461042f575f80fd5b50565b5f813590506104408161041c565b92915050565b5f6020828403121561045b5761045a610418565b5b5f61046884828501610432565b91505092915050565b5f82825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6104b5602083610471565b91506104c082610481565b602082019050919050565b5f6020820190508181035f8301526104e2816104a9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f610543602683610471565b915061054e826104e9565b604082019050919050565b5f6020820190508181035f83015261057081610537565b905091905056fea2646970667358221220c10ba62e2e6825ff3c591bb17b2fc7782bbd94f11c5f0dfdc4ba3966fc677e4764736f6c634300081a0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0xF JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x3F JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x715018A6 EQ PUSH2 0x43 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x4D JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x6B JUMPI JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0x4B PUSH2 0x87 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x55 PUSH2 0x1D5 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x62 SWAP2 SWAP1 PUSH2 0x3FF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x85 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x80 SWAP2 SWAP1 PUSH2 0x446 JUMP JUMPDEST PUSH2 0x1FC JUMP JUMPDEST STOP JUMPDEST PUSH2 0x8F PUSH2 0x3B9 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x11B JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x112 SWAP1 PUSH2 0x4CB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 PUSH0 DUP1 PUSH0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x204 PUSH2 0x3B9 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x290 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x287 SWAP1 PUSH2 0x4CB JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x2FE JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x2F5 SWAP1 PUSH2 0x559 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 DUP1 PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH0 CALLER SWAP1 POP SWAP1 JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0x3E9 DUP3 PUSH2 0x3C0 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x3F9 DUP2 PUSH2 0x3DF JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x412 PUSH0 DUP4 ADD DUP5 PUSH2 0x3F0 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0x425 DUP2 PUSH2 0x3DF JUMP JUMPDEST DUP2 EQ PUSH2 0x42F JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x440 DUP2 PUSH2 0x41C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x45B JUMPI PUSH2 0x45A PUSH2 0x418 JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0x468 DUP5 DUP3 DUP6 ADD PUSH2 0x432 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0x4B5 PUSH1 0x20 DUP4 PUSH2 0x471 JUMP JUMPDEST SWAP2 POP PUSH2 0x4C0 DUP3 PUSH2 0x481 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x4E2 DUP2 PUSH2 0x4A9 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 PUSH0 DUP3 ADD MSTORE PUSH32 0x6464726573730000000000000000000000000000000000000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0x543 PUSH1 0x26 DUP4 PUSH2 0x471 JUMP JUMPDEST SWAP2 POP PUSH2 0x54E DUP3 PUSH2 0x4E9 JUMP JUMPDEST PUSH1 0x40 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x570 DUP2 PUSH2 0x537 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC1 SIGNEXTEND 0xA6 0x2E 0x2E PUSH9 0x25FF3C591BB17B2FC7 PUSH25 0x2BBD94F11C5F0DFDC4BA3966FC677E4764736F6C634300081A STOP CALLER ",
"sourceMap": "578:1525:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1601:135;;;:::i;:::-;;1018:71;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1875:226;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1601:135;1214:12;:10;:12::i;:::-;1204:22;;:6;;;;;;;;;;:22;;;1196:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;1703:1:::1;1666:40;;1687:6;::::0;::::1;;;;;;;;1666:40;;;;;;;;;;;;1729:1;1712:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;1601:135::o:0;1018:71::-;1056:7;1078:6;;;;;;;;;;;1071:13;;1018:71;:::o;1875:226::-;1214:12;:10;:12::i;:::-;1204:22;;:6;;;;;;;;;;:22;;;1196:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;1979:1:::1;1959:22;;:8;:22;;::::0;1951:73:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;2064:8;2035:38;;2056:6;::::0;::::1;;;;;;;;2035:38;;;;;;;;;;;;2088:8;2079:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;1875:226:::0;:::o;587:107:1:-;640:15;678:10;663:26;;587:107;:::o;7:126:14:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;674:117::-;783:1;780;773:12;920:122;993:24;1011:5;993:24;:::i;:::-;986:5;983:35;973:63;;1032:1;1029;1022:12;973:63;920:122;:::o;1048:139::-;1094:5;1132:6;1119:20;1110:29;;1148:33;1175:5;1148:33;:::i;:::-;1048:139;;;;:::o;1193:329::-;1252:6;1301:2;1289:9;1280:7;1276:23;1272:32;1269:119;;;1307:79;;:::i;:::-;1269:119;1427:1;1452:53;1497:7;1488:6;1477:9;1473:22;1452:53;:::i;:::-;1442:63;;1398:117;1193:329;;;;:::o;1528:169::-;1612:11;1646:6;1641:3;1634:19;1686:4;1681:3;1677:14;1662:29;;1528:169;;;;:::o;1703:182::-;1843:34;1839:1;1831:6;1827:14;1820:58;1703:182;:::o;1891:366::-;2033:3;2054:67;2118:2;2113:3;2054:67;:::i;:::-;2047:74;;2130:93;2219:3;2130:93;:::i;:::-;2248:2;2243:3;2239:12;2232:19;;1891:366;;;:::o;2263:419::-;2429:4;2467:2;2456:9;2452:18;2444:26;;2516:9;2510:4;2506:20;2502:1;2491:9;2487:17;2480:47;2544:131;2670:4;2544:131;:::i;:::-;2536:139;;2263:419;;;:::o;2688:225::-;2828:34;2824:1;2816:6;2812:14;2805:58;2897:8;2892:2;2884:6;2880:15;2873:33;2688:225;:::o;2919:366::-;3061:3;3082:67;3146:2;3141:3;3082:67;:::i;:::-;3075:74;;3158:93;3247:3;3158:93;:::i;:::-;3276:2;3271:3;3267:12;3260:19;;2919:366;;;:::o;3291:419::-;3457:4;3495:2;3484:9;3480:18;3472:26;;3544:9;3538:4;3534:20;3530:1;3519:9;3515:17;3508:47;3572:131;3698:4;3572:131;:::i;:::-;3564:139;;3291:419;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "290600",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"owner()": "2515",
"renounceOwnership()": "30262",
"transferOwnership(address)": "30648"
}
},
"legacyAssembly": {
".code": [
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "80"
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 578,
"end": 2103,
"name": "MSTORE",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "CALLVALUE",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "DUP1",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "ISZERO",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "PUSH [tag]",
"source": 4,
"value": "1"
},
{
"begin": 815,
"end": 950,
"name": "JUMPI",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 815,
"end": 950,
"name": "DUP1",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "REVERT",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "tag",
"source": 4,
"value": "1"
},
{
"begin": 815,
"end": 950,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 815,
"end": 950,
"name": "POP",
"source": 4
},
{
"begin": 835,
"end": 852,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 855,
"end": 867,
"name": "PUSH [tag]",
"source": 4,
"value": "4"
},
{
"begin": 855,
"end": 865,
"name": "PUSH [tag]",
"source": 4,
"value": "5"
},
{
"begin": 855,
"end": 865,
"name": "PUSH",
"source": 4,
"value": "20"
},
{
"begin": 855,
"end": 865,
"name": "SHL",
"source": 4
},
{
"begin": 855,
"end": 867,
"name": "PUSH",
"source": 4,
"value": "20"
},
{
"begin": 855,
"end": 867,
"name": "SHR",
"source": 4
},
{
"begin": 855,
"end": 867,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 855,
"end": 867,
"name": "tag",
"source": 4,
"value": "4"
},
{
"begin": 855,
"end": 867,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 835,
"end": 867,
"name": "SWAP1",
"source": 4
},
{
"begin": 835,
"end": 867,
"name": "POP",
"source": 4
},
{
"begin": 882,
"end": 891,
"name": "DUP1",
"source": 4
},
{
"begin": 873,
"end": 879,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 873,
"end": 879,
"name": "DUP1",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 873,
"end": 891,
"name": "EXP",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "DUP2",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "SLOAD",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "DUP2",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 873,
"end": 891,
"name": "MUL",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "NOT",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "AND",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "SWAP1",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "DUP4",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 873,
"end": 891,
"name": "AND",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "MUL",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "OR",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "SWAP1",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "SSTORE",
"source": 4
},
{
"begin": 873,
"end": 891,
"name": "POP",
"source": 4
},
{
"begin": 935,
"end": 944,
"name": "DUP1",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 902,
"end": 945,
"name": "AND",
"source": 4
},
{
"begin": 931,
"end": 932,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 902,
"end": 945,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 902,
"end": 945,
"name": "AND",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "PUSH",
"source": 4,
"value": "8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0"
},
{
"begin": 902,
"end": 945,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 902,
"end": 945,
"name": "MLOAD",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 902,
"end": 945,
"name": "MLOAD",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "DUP1",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "SWAP2",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "SUB",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "SWAP1",
"source": 4
},
{
"begin": 902,
"end": 945,
"name": "LOG3",
"source": 4
},
{
"begin": 829,
"end": 950,
"name": "POP",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [tag]",
"source": 4,
"value": "6"
},
{
"begin": 578,
"end": 2103,
"name": "JUMP",
"source": 4
},
{
"begin": 587,
"end": 694,
"name": "tag",
"source": 1,
"value": "5"
},
{
"begin": 587,
"end": 694,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 640,
"end": 655,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 678,
"end": 688,
"name": "CALLER",
"source": 1
},
{
"begin": 663,
"end": 689,
"name": "SWAP1",
"source": 1
},
{
"begin": 663,
"end": 689,
"name": "POP",
"source": 1
},
{
"begin": 587,
"end": 694,
"name": "SWAP1",
"source": 1
},
{
"begin": 587,
"end": 694,
"jumpType": "[out]",
"name": "JUMP",
"source": 1
},
{
"begin": 578,
"end": 2103,
"name": "tag",
"source": 4,
"value": "6"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH #[$]",
"source": 4,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [$]",
"source": 4,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 578,
"end": 2103,
"name": "CODECOPY",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 578,
"end": 2103,
"name": "RETURN",
"source": 4
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220c10ba62e2e6825ff3c591bb17b2fc7782bbd94f11c5f0dfdc4ba3966fc677e4764736f6c634300081a0033",
".code": [
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "80"
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 578,
"end": 2103,
"name": "MSTORE",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "CALLVALUE",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "ISZERO",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [tag]",
"source": 4,
"value": "1"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPI",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "REVERT",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "tag",
"source": 4,
"value": "1"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "POP",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "4"
},
{
"begin": 578,
"end": 2103,
"name": "CALLDATASIZE",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "LT",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [tag]",
"source": 4,
"value": "2"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPI",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 578,
"end": 2103,
"name": "CALLDATALOAD",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "E0"
},
{
"begin": 578,
"end": 2103,
"name": "SHR",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "715018A6"
},
{
"begin": 578,
"end": 2103,
"name": "EQ",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [tag]",
"source": 4,
"value": "3"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPI",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "8DA5CB5B"
},
{
"begin": 578,
"end": 2103,
"name": "EQ",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [tag]",
"source": 4,
"value": "4"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPI",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "F2FDE38B"
},
{
"begin": 578,
"end": 2103,
"name": "EQ",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH [tag]",
"source": 4,
"value": "5"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPI",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "tag",
"source": 4,
"value": "2"
},
{
"begin": 578,
"end": 2103,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 578,
"end": 2103,
"name": "DUP1",
"source": 4
},
{
"begin": 578,
"end": 2103,
"name": "REVERT",
"source": 4
},
{
"begin": 1601,
"end": 1736,
"name": "tag",
"source": 4,
"value": "3"
},
{
"begin": 1601,
"end": 1736,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1601,
"end": 1736,
"name": "PUSH [tag]",
"source": 4,
"value": "6"
},
{
"begin": 1601,
"end": 1736,
"name": "PUSH [tag]",
"source": 4,
"value": "7"
},
{
"begin": 1601,
"end": 1736,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1601,
"end": 1736,
"name": "tag",
"source": 4,
"value": "6"
},
{
"begin": 1601,
"end": 1736,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1601,
"end": 1736,
"name": "STOP",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "tag",
"source": 4,
"value": "4"
},
{
"begin": 1018,
"end": 1089,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "PUSH [tag]",
"source": 4,
"value": "8"
},
{
"begin": 1018,
"end": 1089,
"name": "PUSH [tag]",
"source": 4,
"value": "9"
},
{
"begin": 1018,
"end": 1089,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "tag",
"source": 4,
"value": "8"
},
{
"begin": 1018,
"end": 1089,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1018,
"end": 1089,
"name": "MLOAD",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "PUSH [tag]",
"source": 4,
"value": "10"
},
{
"begin": 1018,
"end": 1089,
"name": "SWAP2",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "SWAP1",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "PUSH [tag]",
"source": 4,
"value": "11"
},
{
"begin": 1018,
"end": 1089,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "tag",
"source": 4,
"value": "10"
},
{
"begin": 1018,
"end": 1089,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1018,
"end": 1089,
"name": "MLOAD",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "DUP1",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "SWAP2",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "SUB",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "SWAP1",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "RETURN",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "tag",
"source": 4,
"value": "5"
},
{
"begin": 1875,
"end": 2101,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "PUSH [tag]",
"source": 4,
"value": "12"
},
{
"begin": 1875,
"end": 2101,
"name": "PUSH",
"source": 4,
"value": "4"
},
{
"begin": 1875,
"end": 2101,
"name": "DUP1",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "CALLDATASIZE",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "SUB",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "DUP2",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "ADD",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "SWAP1",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "PUSH [tag]",
"source": 4,
"value": "13"
},
{
"begin": 1875,
"end": 2101,
"name": "SWAP2",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "SWAP1",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "PUSH [tag]",
"source": 4,
"value": "14"
},
{
"begin": 1875,
"end": 2101,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "tag",
"source": 4,
"value": "13"
},
{
"begin": 1875,
"end": 2101,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "PUSH [tag]",
"source": 4,
"value": "15"
},
{
"begin": 1875,
"end": 2101,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "tag",
"source": 4,
"value": "12"
},
{
"begin": 1875,
"end": 2101,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "STOP",
"source": 4
},
{
"begin": 1601,
"end": 1736,
"name": "tag",
"source": 4,
"value": "7"
},
{
"begin": 1601,
"end": 1736,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1214,
"end": 1226,
"name": "PUSH [tag]",
"source": 4,
"value": "17"
},
{
"begin": 1214,
"end": 1224,
"name": "PUSH [tag]",
"source": 4,
"value": "18"
},
{
"begin": 1214,
"end": 1226,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1214,
"end": 1226,
"name": "tag",
"source": 4,
"value": "17"
},
{
"begin": 1214,
"end": 1226,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1204,
"end": 1226,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1204,
"end": 1226,
"name": "AND",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1204,
"end": 1210,
"name": "DUP1",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "SLOAD",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "SWAP1",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 1204,
"end": 1210,
"name": "EXP",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "SWAP1",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "DIV",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1204,
"end": 1210,
"name": "AND",
"source": 4
},
{
"begin": 1204,
"end": 1226,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1204,
"end": 1226,
"name": "AND",
"source": 4
},
{
"begin": 1204,
"end": 1226,
"name": "EQ",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH [tag]",
"source": 4,
"value": "19"
},
{
"begin": 1196,
"end": 1263,
"name": "JUMPI",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1196,
"end": 1263,
"name": "MLOAD",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "8C379A000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 1196,
"end": 1263,
"name": "DUP2",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "MSTORE",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "4"
},
{
"begin": 1196,
"end": 1263,
"name": "ADD",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH [tag]",
"source": 4,
"value": "20"
},
{
"begin": 1196,
"end": 1263,
"name": "SWAP1",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH [tag]",
"source": 4,
"value": "21"
},
{
"begin": 1196,
"end": 1263,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "tag",
"source": 4,
"value": "20"
},
{
"begin": 1196,
"end": 1263,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1196,
"end": 1263,
"name": "MLOAD",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "DUP1",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "SWAP2",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "SUB",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "SWAP1",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "REVERT",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "tag",
"source": 4,
"value": "19"
},
{
"begin": 1196,
"end": 1263,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1703,
"end": 1704,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1687,
"end": 1693,
"name": "DUP1",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "SLOAD",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "EXP",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "DIV",
"source": 4
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1687,
"end": 1693,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0"
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "MLOAD",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "MLOAD",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "DUP1",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "SWAP2",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "SUB",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1666,
"end": 1706,
"modifierDepth": 1,
"name": "LOG3",
"source": 4
},
{
"begin": 1729,
"end": 1730,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1712,
"end": 1718,
"name": "DUP1",
"source": 4
},
{
"begin": 1712,
"end": 1718,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "EXP",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "DUP2",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "SLOAD",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "DUP2",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "MUL",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "NOT",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "DUP4",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "MUL",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "OR",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "SSTORE",
"source": 4
},
{
"begin": 1712,
"end": 1731,
"modifierDepth": 1,
"name": "POP",
"source": 4
},
{
"begin": 1601,
"end": 1736,
"jumpType": "[out]",
"name": "JUMP",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "tag",
"source": 4,
"value": "9"
},
{
"begin": 1018,
"end": 1089,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1056,
"end": 1063,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1078,
"end": 1084,
"name": "DUP1",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1078,
"end": 1084,
"name": "SWAP1",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "SLOAD",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "SWAP1",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 1078,
"end": 1084,
"name": "EXP",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "SWAP1",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "DIV",
"source": 4
},
{
"begin": 1078,
"end": 1084,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1078,
"end": 1084,
"name": "AND",
"source": 4
},
{
"begin": 1071,
"end": 1084,
"name": "SWAP1",
"source": 4
},
{
"begin": 1071,
"end": 1084,
"name": "POP",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"name": "SWAP1",
"source": 4
},
{
"begin": 1018,
"end": 1089,
"jumpType": "[out]",
"name": "JUMP",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "tag",
"source": 4,
"value": "15"
},
{
"begin": 1875,
"end": 2101,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1214,
"end": 1226,
"name": "PUSH [tag]",
"source": 4,
"value": "25"
},
{
"begin": 1214,
"end": 1224,
"name": "PUSH [tag]",
"source": 4,
"value": "18"
},
{
"begin": 1214,
"end": 1226,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1214,
"end": 1226,
"name": "tag",
"source": 4,
"value": "25"
},
{
"begin": 1214,
"end": 1226,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1204,
"end": 1226,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1204,
"end": 1226,
"name": "AND",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1204,
"end": 1210,
"name": "DUP1",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "SLOAD",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "SWAP1",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 1204,
"end": 1210,
"name": "EXP",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "SWAP1",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "DIV",
"source": 4
},
{
"begin": 1204,
"end": 1210,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1204,
"end": 1210,
"name": "AND",
"source": 4
},
{
"begin": 1204,
"end": 1226,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1204,
"end": 1226,
"name": "AND",
"source": 4
},
{
"begin": 1204,
"end": 1226,
"name": "EQ",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH [tag]",
"source": 4,
"value": "26"
},
{
"begin": 1196,
"end": 1263,
"name": "JUMPI",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1196,
"end": 1263,
"name": "MLOAD",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "8C379A000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 1196,
"end": 1263,
"name": "DUP2",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "MSTORE",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "4"
},
{
"begin": 1196,
"end": 1263,
"name": "ADD",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH [tag]",
"source": 4,
"value": "27"
},
{
"begin": 1196,
"end": 1263,
"name": "SWAP1",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH [tag]",
"source": 4,
"value": "21"
},
{
"begin": 1196,
"end": 1263,
"jumpType": "[in]",
"name": "JUMP",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "tag",
"source": 4,
"value": "27"
},
{
"begin": 1196,
"end": 1263,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1196,
"end": 1263,
"name": "MLOAD",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "DUP1",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "SWAP2",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "SUB",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "SWAP1",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "REVERT",
"source": 4
},
{
"begin": 1196,
"end": 1263,
"name": "tag",
"source": 4,
"value": "26"
},
{
"begin": 1196,
"end": 1263,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1979,
"end": 1980,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 1959,
"end": 1981,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1959,
"end": 1981,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1959,
"end": 1967,
"modifierDepth": 1,
"name": "DUP2",
"source": 4
},
{
"begin": 1959,
"end": 1981,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 1959,
"end": 1981,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 1959,
"end": 1981,
"name": "SUB",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH [tag]",
"source": 4,
"value": "29"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "JUMPI",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "MLOAD",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "8C379A000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "DUP2",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "MSTORE",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "4"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "ADD",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH [tag]",
"source": 4,
"value": "30"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH [tag]",
"source": 4,
"value": "31"
},
{
"begin": 1951,
"end": 2024,
"jumpType": "[in]",
"modifierDepth": 1,
"name": "JUMP",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "tag",
"source": 4,
"value": "30"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "MLOAD",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "DUP1",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "SWAP2",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "SUB",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "REVERT",
"source": 4
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "tag",
"source": 4,
"value": "29"
},
{
"begin": 1951,
"end": 2024,
"modifierDepth": 1,
"name": "JUMPDEST",
"source": 4
},
{
"begin": 2064,
"end": 2072,
"modifierDepth": 1,
"name": "DUP1",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 2056,
"end": 2062,
"name": "DUP1",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "SLOAD",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "EXP",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "DIV",
"source": 4
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 2056,
"end": 2062,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0"
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "MLOAD",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "40"
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "MLOAD",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "DUP1",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "SWAP2",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "SUB",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 2035,
"end": 2073,
"modifierDepth": 1,
"name": "LOG3",
"source": 4
},
{
"begin": 2088,
"end": 2096,
"modifierDepth": 1,
"name": "DUP1",
"source": 4
},
{
"begin": 2079,
"end": 2085,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "0"
},
{
"begin": 2079,
"end": 2085,
"name": "DUP1",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "100"
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "EXP",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "DUP2",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "SLOAD",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "DUP2",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "MUL",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "NOT",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "DUP4",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "PUSH",
"source": 4,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "AND",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "MUL",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "OR",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "SWAP1",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "SSTORE",
"source": 4
},
{
"begin": 2079,
"end": 2096,
"modifierDepth": 1,
"name": "POP",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"name": "POP",
"source": 4
},
{
"begin": 1875,
"end": 2101,
"jumpType": "[out]",
"name": "JUMP",
"source": 4
},
{
"begin": 587,
"end": 694,
"name": "tag",
"source": 1,
"value": "18"
},
{
"begin": 587,
"end": 694,
"name": "JUMPDEST",
"source": 1
},
{
"begin": 640,
"end": 655,
"name": "PUSH",
"source": 1,
"value": "0"
},
{
"begin": 678,
"end": 688,
"name": "CALLER",
"source": 1
},
{
"begin": 663,
"end": 689,
"name": "SWAP1",
"source": 1
},
{
"begin": 663,
"end": 689,
"name": "POP",
"source": 1
},
{
"begin": 587,
"end": 694,
"name": "SWAP1",
"source": 1
},
{
"begin": 587,
"end": 694,
"jumpType": "[out]",
"name": "JUMP",
"source": 1
},
{
"begin": 7,
"end": 133,
"name": "tag",
"source": 14,
"value": "33"
},
{
"begin": 7,
"end": 133,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 44,
"end": 51,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 84,
"end": 126,
"name": "PUSH",
"source": 14,
"value": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
},
{
"begin": 77,
"end": 82,
"name": "DUP3",
"source": 14
},
{
"begin": 73,
"end": 127,
"name": "AND",
"source": 14
},
{
"begin": 62,
"end": 127,
"name": "SWAP1",
"source": 14
},
{
"begin": 62,
"end": 127,
"name": "POP",
"source": 14
},
{
"begin": 7,
"end": 133,
"name": "SWAP2",
"source": 14
},
{
"begin": 7,
"end": 133,
"name": "SWAP1",
"source": 14
},
{
"begin": 7,
"end": 133,
"name": "POP",
"source": 14
},
{
"begin": 7,
"end": 133,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 139,
"end": 235,
"name": "tag",
"source": 14,
"value": "34"
},
{
"begin": 139,
"end": 235,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 176,
"end": 183,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 205,
"end": 229,
"name": "PUSH [tag]",
"source": 14,
"value": "49"
},
{
"begin": 223,
"end": 228,
"name": "DUP3",
"source": 14
},
{
"begin": 205,
"end": 229,
"name": "PUSH [tag]",
"source": 14,
"value": "33"
},
{
"begin": 205,
"end": 229,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 205,
"end": 229,
"name": "tag",
"source": 14,
"value": "49"
},
{
"begin": 205,
"end": 229,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 194,
"end": 229,
"name": "SWAP1",
"source": 14
},
{
"begin": 194,
"end": 229,
"name": "POP",
"source": 14
},
{
"begin": 139,
"end": 235,
"name": "SWAP2",
"source": 14
},
{
"begin": 139,
"end": 235,
"name": "SWAP1",
"source": 14
},
{
"begin": 139,
"end": 235,
"name": "POP",
"source": 14
},
{
"begin": 139,
"end": 235,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 241,
"end": 359,
"name": "tag",
"source": 14,
"value": "35"
},
{
"begin": 241,
"end": 359,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 328,
"end": 352,
"name": "PUSH [tag]",
"source": 14,
"value": "51"
},
{
"begin": 346,
"end": 351,
"name": "DUP2",
"source": 14
},
{
"begin": 328,
"end": 352,
"name": "PUSH [tag]",
"source": 14,
"value": "34"
},
{
"begin": 328,
"end": 352,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 328,
"end": 352,
"name": "tag",
"source": 14,
"value": "51"
},
{
"begin": 328,
"end": 352,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 323,
"end": 326,
"name": "DUP3",
"source": 14
},
{
"begin": 316,
"end": 353,
"name": "MSTORE",
"source": 14
},
{
"begin": 241,
"end": 359,
"name": "POP",
"source": 14
},
{
"begin": 241,
"end": 359,
"name": "POP",
"source": 14
},
{
"begin": 241,
"end": 359,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 365,
"end": 587,
"name": "tag",
"source": 14,
"value": "11"
},
{
"begin": 365,
"end": 587,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 458,
"end": 462,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 496,
"end": 498,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 485,
"end": 494,
"name": "DUP3",
"source": 14
},
{
"begin": 481,
"end": 499,
"name": "ADD",
"source": 14
},
{
"begin": 473,
"end": 499,
"name": "SWAP1",
"source": 14
},
{
"begin": 473,
"end": 499,
"name": "POP",
"source": 14
},
{
"begin": 509,
"end": 580,
"name": "PUSH [tag]",
"source": 14,
"value": "53"
},
{
"begin": 577,
"end": 578,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 566,
"end": 575,
"name": "DUP4",
"source": 14
},
{
"begin": 562,
"end": 579,
"name": "ADD",
"source": 14
},
{
"begin": 553,
"end": 559,
"name": "DUP5",
"source": 14
},
{
"begin": 509,
"end": 580,
"name": "PUSH [tag]",
"source": 14,
"value": "35"
},
{
"begin": 509,
"end": 580,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 509,
"end": 580,
"name": "tag",
"source": 14,
"value": "53"
},
{
"begin": 509,
"end": 580,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 365,
"end": 587,
"name": "SWAP3",
"source": 14
},
{
"begin": 365,
"end": 587,
"name": "SWAP2",
"source": 14
},
{
"begin": 365,
"end": 587,
"name": "POP",
"source": 14
},
{
"begin": 365,
"end": 587,
"name": "POP",
"source": 14
},
{
"begin": 365,
"end": 587,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 674,
"end": 791,
"name": "tag",
"source": 14,
"value": "37"
},
{
"begin": 674,
"end": 791,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 783,
"end": 784,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 780,
"end": 781,
"name": "DUP1",
"source": 14
},
{
"begin": 773,
"end": 785,
"name": "REVERT",
"source": 14
},
{
"begin": 920,
"end": 1042,
"name": "tag",
"source": 14,
"value": "39"
},
{
"begin": 920,
"end": 1042,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 993,
"end": 1017,
"name": "PUSH [tag]",
"source": 14,
"value": "58"
},
{
"begin": 1011,
"end": 1016,
"name": "DUP2",
"source": 14
},
{
"begin": 993,
"end": 1017,
"name": "PUSH [tag]",
"source": 14,
"value": "34"
},
{
"begin": 993,
"end": 1017,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 993,
"end": 1017,
"name": "tag",
"source": 14,
"value": "58"
},
{
"begin": 993,
"end": 1017,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 986,
"end": 991,
"name": "DUP2",
"source": 14
},
{
"begin": 983,
"end": 1018,
"name": "EQ",
"source": 14
},
{
"begin": 973,
"end": 1036,
"name": "PUSH [tag]",
"source": 14,
"value": "59"
},
{
"begin": 973,
"end": 1036,
"name": "JUMPI",
"source": 14
},
{
"begin": 1032,
"end": 1033,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 1029,
"end": 1030,
"name": "DUP1",
"source": 14
},
{
"begin": 1022,
"end": 1034,
"name": "REVERT",
"source": 14
},
{
"begin": 973,
"end": 1036,
"name": "tag",
"source": 14,
"value": "59"
},
{
"begin": 973,
"end": 1036,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 920,
"end": 1042,
"name": "POP",
"source": 14
},
{
"begin": 920,
"end": 1042,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 1048,
"end": 1187,
"name": "tag",
"source": 14,
"value": "40"
},
{
"begin": 1048,
"end": 1187,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1094,
"end": 1099,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 1132,
"end": 1138,
"name": "DUP2",
"source": 14
},
{
"begin": 1119,
"end": 1139,
"name": "CALLDATALOAD",
"source": 14
},
{
"begin": 1110,
"end": 1139,
"name": "SWAP1",
"source": 14
},
{
"begin": 1110,
"end": 1139,
"name": "POP",
"source": 14
},
{
"begin": 1148,
"end": 1181,
"name": "PUSH [tag]",
"source": 14,
"value": "61"
},
{
"begin": 1175,
"end": 1180,
"name": "DUP2",
"source": 14
},
{
"begin": 1148,
"end": 1181,
"name": "PUSH [tag]",
"source": 14,
"value": "39"
},
{
"begin": 1148,
"end": 1181,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 1148,
"end": 1181,
"name": "tag",
"source": 14,
"value": "61"
},
{
"begin": 1148,
"end": 1181,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1048,
"end": 1187,
"name": "SWAP3",
"source": 14
},
{
"begin": 1048,
"end": 1187,
"name": "SWAP2",
"source": 14
},
{
"begin": 1048,
"end": 1187,
"name": "POP",
"source": 14
},
{
"begin": 1048,
"end": 1187,
"name": "POP",
"source": 14
},
{
"begin": 1048,
"end": 1187,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 1193,
"end": 1522,
"name": "tag",
"source": 14,
"value": "14"
},
{
"begin": 1193,
"end": 1522,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1252,
"end": 1258,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 1301,
"end": 1303,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 1289,
"end": 1298,
"name": "DUP3",
"source": 14
},
{
"begin": 1280,
"end": 1287,
"name": "DUP5",
"source": 14
},
{
"begin": 1276,
"end": 1299,
"name": "SUB",
"source": 14
},
{
"begin": 1272,
"end": 1304,
"name": "SLT",
"source": 14
},
{
"begin": 1269,
"end": 1388,
"name": "ISZERO",
"source": 14
},
{
"begin": 1269,
"end": 1388,
"name": "PUSH [tag]",
"source": 14,
"value": "63"
},
{
"begin": 1269,
"end": 1388,
"name": "JUMPI",
"source": 14
},
{
"begin": 1307,
"end": 1386,
"name": "PUSH [tag]",
"source": 14,
"value": "64"
},
{
"begin": 1307,
"end": 1386,
"name": "PUSH [tag]",
"source": 14,
"value": "37"
},
{
"begin": 1307,
"end": 1386,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 1307,
"end": 1386,
"name": "tag",
"source": 14,
"value": "64"
},
{
"begin": 1307,
"end": 1386,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1269,
"end": 1388,
"name": "tag",
"source": 14,
"value": "63"
},
{
"begin": 1269,
"end": 1388,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1427,
"end": 1428,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 1452,
"end": 1505,
"name": "PUSH [tag]",
"source": 14,
"value": "65"
},
{
"begin": 1497,
"end": 1504,
"name": "DUP5",
"source": 14
},
{
"begin": 1488,
"end": 1494,
"name": "DUP3",
"source": 14
},
{
"begin": 1477,
"end": 1486,
"name": "DUP6",
"source": 14
},
{
"begin": 1473,
"end": 1495,
"name": "ADD",
"source": 14
},
{
"begin": 1452,
"end": 1505,
"name": "PUSH [tag]",
"source": 14,
"value": "40"
},
{
"begin": 1452,
"end": 1505,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 1452,
"end": 1505,
"name": "tag",
"source": 14,
"value": "65"
},
{
"begin": 1452,
"end": 1505,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1442,
"end": 1505,
"name": "SWAP2",
"source": 14
},
{
"begin": 1442,
"end": 1505,
"name": "POP",
"source": 14
},
{
"begin": 1398,
"end": 1515,
"name": "POP",
"source": 14
},
{
"begin": 1193,
"end": 1522,
"name": "SWAP3",
"source": 14
},
{
"begin": 1193,
"end": 1522,
"name": "SWAP2",
"source": 14
},
{
"begin": 1193,
"end": 1522,
"name": "POP",
"source": 14
},
{
"begin": 1193,
"end": 1522,
"name": "POP",
"source": 14
},
{
"begin": 1193,
"end": 1522,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 1528,
"end": 1697,
"name": "tag",
"source": 14,
"value": "41"
},
{
"begin": 1528,
"end": 1697,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1612,
"end": 1623,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 1646,
"end": 1652,
"name": "DUP3",
"source": 14
},
{
"begin": 1641,
"end": 1644,
"name": "DUP3",
"source": 14
},
{
"begin": 1634,
"end": 1653,
"name": "MSTORE",
"source": 14
},
{
"begin": 1686,
"end": 1690,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 1681,
"end": 1684,
"name": "DUP3",
"source": 14
},
{
"begin": 1677,
"end": 1691,
"name": "ADD",
"source": 14
},
{
"begin": 1662,
"end": 1691,
"name": "SWAP1",
"source": 14
},
{
"begin": 1662,
"end": 1691,
"name": "POP",
"source": 14
},
{
"begin": 1528,
"end": 1697,
"name": "SWAP3",
"source": 14
},
{
"begin": 1528,
"end": 1697,
"name": "SWAP2",
"source": 14
},
{
"begin": 1528,
"end": 1697,
"name": "POP",
"source": 14
},
{
"begin": 1528,
"end": 1697,
"name": "POP",
"source": 14
},
{
"begin": 1528,
"end": 1697,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 1703,
"end": 1885,
"name": "tag",
"source": 14,
"value": "42"
},
{
"begin": 1703,
"end": 1885,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 1843,
"end": 1877,
"name": "PUSH",
"source": 14,
"value": "4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572"
},
{
"begin": 1839,
"end": 1840,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 1831,
"end": 1837,
"name": "DUP3",
"source": 14
},
{
"begin": 1827,
"end": 1841,
"name": "ADD",
"source": 14
},
{
"begin": 1820,
"end": 1878,
"name": "MSTORE",
"source": 14
},
{
"begin": 1703,
"end": 1885,
"name": "POP",
"source": 14
},
{
"begin": 1703,
"end": 1885,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 1891,
"end": 2257,
"name": "tag",
"source": 14,
"value": "43"
},
{
"begin": 1891,
"end": 2257,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 2033,
"end": 2036,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 2054,
"end": 2121,
"name": "PUSH [tag]",
"source": 14,
"value": "69"
},
{
"begin": 2118,
"end": 2120,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 2113,
"end": 2116,
"name": "DUP4",
"source": 14
},
{
"begin": 2054,
"end": 2121,
"name": "PUSH [tag]",
"source": 14,
"value": "41"
},
{
"begin": 2054,
"end": 2121,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 2054,
"end": 2121,
"name": "tag",
"source": 14,
"value": "69"
},
{
"begin": 2054,
"end": 2121,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 2047,
"end": 2121,
"name": "SWAP2",
"source": 14
},
{
"begin": 2047,
"end": 2121,
"name": "POP",
"source": 14
},
{
"begin": 2130,
"end": 2223,
"name": "PUSH [tag]",
"source": 14,
"value": "70"
},
{
"begin": 2219,
"end": 2222,
"name": "DUP3",
"source": 14
},
{
"begin": 2130,
"end": 2223,
"name": "PUSH [tag]",
"source": 14,
"value": "42"
},
{
"begin": 2130,
"end": 2223,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 2130,
"end": 2223,
"name": "tag",
"source": 14,
"value": "70"
},
{
"begin": 2130,
"end": 2223,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 2248,
"end": 2250,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 2243,
"end": 2246,
"name": "DUP3",
"source": 14
},
{
"begin": 2239,
"end": 2251,
"name": "ADD",
"source": 14
},
{
"begin": 2232,
"end": 2251,
"name": "SWAP1",
"source": 14
},
{
"begin": 2232,
"end": 2251,
"name": "POP",
"source": 14
},
{
"begin": 1891,
"end": 2257,
"name": "SWAP2",
"source": 14
},
{
"begin": 1891,
"end": 2257,
"name": "SWAP1",
"source": 14
},
{
"begin": 1891,
"end": 2257,
"name": "POP",
"source": 14
},
{
"begin": 1891,
"end": 2257,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 2263,
"end": 2682,
"name": "tag",
"source": 14,
"value": "21"
},
{
"begin": 2263,
"end": 2682,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 2429,
"end": 2433,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 2467,
"end": 2469,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 2456,
"end": 2465,
"name": "DUP3",
"source": 14
},
{
"begin": 2452,
"end": 2470,
"name": "ADD",
"source": 14
},
{
"begin": 2444,
"end": 2470,
"name": "SWAP1",
"source": 14
},
{
"begin": 2444,
"end": 2470,
"name": "POP",
"source": 14
},
{
"begin": 2516,
"end": 2525,
"name": "DUP2",
"source": 14
},
{
"begin": 2510,
"end": 2514,
"name": "DUP2",
"source": 14
},
{
"begin": 2506,
"end": 2526,
"name": "SUB",
"source": 14
},
{
"begin": 2502,
"end": 2503,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 2491,
"end": 2500,
"name": "DUP4",
"source": 14
},
{
"begin": 2487,
"end": 2504,
"name": "ADD",
"source": 14
},
{
"begin": 2480,
"end": 2527,
"name": "MSTORE",
"source": 14
},
{
"begin": 2544,
"end": 2675,
"name": "PUSH [tag]",
"source": 14,
"value": "72"
},
{
"begin": 2670,
"end": 2674,
"name": "DUP2",
"source": 14
},
{
"begin": 2544,
"end": 2675,
"name": "PUSH [tag]",
"source": 14,
"value": "43"
},
{
"begin": 2544,
"end": 2675,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 2544,
"end": 2675,
"name": "tag",
"source": 14,
"value": "72"
},
{
"begin": 2544,
"end": 2675,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 2536,
"end": 2675,
"name": "SWAP1",
"source": 14
},
{
"begin": 2536,
"end": 2675,
"name": "POP",
"source": 14
},
{
"begin": 2263,
"end": 2682,
"name": "SWAP2",
"source": 14
},
{
"begin": 2263,
"end": 2682,
"name": "SWAP1",
"source": 14
},
{
"begin": 2263,
"end": 2682,
"name": "POP",
"source": 14
},
{
"begin": 2263,
"end": 2682,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 2688,
"end": 2913,
"name": "tag",
"source": 14,
"value": "44"
},
{
"begin": 2688,
"end": 2913,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 2828,
"end": 2862,
"name": "PUSH",
"source": 14,
"value": "4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061"
},
{
"begin": 2824,
"end": 2825,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 2816,
"end": 2822,
"name": "DUP3",
"source": 14
},
{
"begin": 2812,
"end": 2826,
"name": "ADD",
"source": 14
},
{
"begin": 2805,
"end": 2863,
"name": "MSTORE",
"source": 14
},
{
"begin": 2897,
"end": 2905,
"name": "PUSH",
"source": 14,
"value": "6464726573730000000000000000000000000000000000000000000000000000"
},
{
"begin": 2892,
"end": 2894,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 2884,
"end": 2890,
"name": "DUP3",
"source": 14
},
{
"begin": 2880,
"end": 2895,
"name": "ADD",
"source": 14
},
{
"begin": 2873,
"end": 2906,
"name": "MSTORE",
"source": 14
},
{
"begin": 2688,
"end": 2913,
"name": "POP",
"source": 14
},
{
"begin": 2688,
"end": 2913,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 2919,
"end": 3285,
"name": "tag",
"source": 14,
"value": "45"
},
{
"begin": 2919,
"end": 3285,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 3061,
"end": 3064,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 3082,
"end": 3149,
"name": "PUSH [tag]",
"source": 14,
"value": "75"
},
{
"begin": 3146,
"end": 3148,
"name": "PUSH",
"source": 14,
"value": "26"
},
{
"begin": 3141,
"end": 3144,
"name": "DUP4",
"source": 14
},
{
"begin": 3082,
"end": 3149,
"name": "PUSH [tag]",
"source": 14,
"value": "41"
},
{
"begin": 3082,
"end": 3149,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 3082,
"end": 3149,
"name": "tag",
"source": 14,
"value": "75"
},
{
"begin": 3082,
"end": 3149,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 3075,
"end": 3149,
"name": "SWAP2",
"source": 14
},
{
"begin": 3075,
"end": 3149,
"name": "POP",
"source": 14
},
{
"begin": 3158,
"end": 3251,
"name": "PUSH [tag]",
"source": 14,
"value": "76"
},
{
"begin": 3247,
"end": 3250,
"name": "DUP3",
"source": 14
},
{
"begin": 3158,
"end": 3251,
"name": "PUSH [tag]",
"source": 14,
"value": "44"
},
{
"begin": 3158,
"end": 3251,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 3158,
"end": 3251,
"name": "tag",
"source": 14,
"value": "76"
},
{
"begin": 3158,
"end": 3251,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 3276,
"end": 3278,
"name": "PUSH",
"source": 14,
"value": "40"
},
{
"begin": 3271,
"end": 3274,
"name": "DUP3",
"source": 14
},
{
"begin": 3267,
"end": 3279,
"name": "ADD",
"source": 14
},
{
"begin": 3260,
"end": 3279,
"name": "SWAP1",
"source": 14
},
{
"begin": 3260,
"end": 3279,
"name": "POP",
"source": 14
},
{
"begin": 2919,
"end": 3285,
"name": "SWAP2",
"source": 14
},
{
"begin": 2919,
"end": 3285,
"name": "SWAP1",
"source": 14
},
{
"begin": 2919,
"end": 3285,
"name": "POP",
"source": 14
},
{
"begin": 2919,
"end": 3285,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
},
{
"begin": 3291,
"end": 3710,
"name": "tag",
"source": 14,
"value": "31"
},
{
"begin": 3291,
"end": 3710,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 3457,
"end": 3461,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 3495,
"end": 3497,
"name": "PUSH",
"source": 14,
"value": "20"
},
{
"begin": 3484,
"end": 3493,
"name": "DUP3",
"source": 14
},
{
"begin": 3480,
"end": 3498,
"name": "ADD",
"source": 14
},
{
"begin": 3472,
"end": 3498,
"name": "SWAP1",
"source": 14
},
{
"begin": 3472,
"end": 3498,
"name": "POP",
"source": 14
},
{
"begin": 3544,
"end": 3553,
"name": "DUP2",
"source": 14
},
{
"begin": 3538,
"end": 3542,
"name": "DUP2",
"source": 14
},
{
"begin": 3534,
"end": 3554,
"name": "SUB",
"source": 14
},
{
"begin": 3530,
"end": 3531,
"name": "PUSH",
"source": 14,
"value": "0"
},
{
"begin": 3519,
"end": 3528,
"name": "DUP4",
"source": 14
},
{
"begin": 3515,
"end": 3532,
"name": "ADD",
"source": 14
},
{
"begin": 3508,
"end": 3555,
"name": "MSTORE",
"source": 14
},
{
"begin": 3572,
"end": 3703,
"name": "PUSH [tag]",
"source": 14,
"value": "78"
},
{
"begin": 3698,
"end": 3702,
"name": "DUP2",
"source": 14
},
{
"begin": 3572,
"end": 3703,
"name": "PUSH [tag]",
"source": 14,
"value": "45"
},
{
"begin": 3572,
"end": 3703,
"jumpType": "[in]",
"name": "JUMP",
"source": 14
},
{
"begin": 3572,
"end": 3703,
"name": "tag",
"source": 14,
"value": "78"
},
{
"begin": 3572,
"end": 3703,
"name": "JUMPDEST",
"source": 14
},
{
"begin": 3564,
"end": 3703,
"name": "SWAP1",
"source": 14
},
{
"begin": 3564,
"end": 3703,
"name": "POP",
"source": 14
},
{
"begin": 3291,
"end": 3710,
"name": "SWAP2",
"source": 14
},
{
"begin": 3291,
"end": 3710,
"name": "SWAP1",
"source": 14
},
{
"begin": 3291,
"end": 3710,
"name": "POP",
"source": 14
},
{
"begin": 3291,
"end": 3710,
"jumpType": "[out]",
"name": "JUMP",
"source": 14
}
]
}
},
"sourceList": [
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"@aave/core-v3/contracts/interfaces/IPool.sol",
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"contracts/adapters/paraswap/BaseParaSwapAdapter.sol",
"#utility.yul"
]
},
"methodIdentifiers": {
"owner()": "8da5cb5b",
"renounceOwnership()": "715018a6",
"transferOwnership(address)": "f2fde38b"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.\",\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"Initializes the contract setting the deployer as the initial owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":\"Ownable\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":{\"keccak256\":\"0xc0df5ebb2c3d8b4509464c40a88cc51e5e5f5e4a26fafc909330e9bb2658f641\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dc2690f871399de8f14e4cd8ae9b57a67e135afa28ac4be76594eaf4ecd8e244\",\"dweb:/ipfs/Qmb9gKAnQBciUknb3ysnfDpWAdYXGJm51NzFYWNkXwoAZg\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":{\"keccak256\":\"0x3ce185c4f579e32006f8893dbfdc1b5d878c0e2cafd1508f7ceb081698bc81f9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://de40129c2380570ce2e883210452f0dc0913788e66be6690084be3d9f8def73f\",\"dweb:/ipfs/QmVAEtQHTYDPheoDniWaVNyRcWwfu3ccmUCxFXuzxHEwFT\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 204,
"contract": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol:Ownable",
"label": "_owner",
"offset": 0,
"slot": "0",
"type": "t_address"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
}
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol": {
"SafeMath": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"title": "Optimized overflow and underflow safe math operations",
"version": 1
},
"evm": {
"assembly": " /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol\":240:1772 library SafeMath {... */\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 /* \"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol\":240:1772 library SafeMath {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220f83a2379ebf9c8231adf9418da02326e9a30fa6a483b2a1fda633939237483bc64736f6c634300081a0033\n}\n",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220f83a2379ebf9c8231adf9418da02326e9a30fa6a483b2a1fda633939237483bc64736f6c634300081a0033",
"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 0xF8 GASPRICE 0x23 PUSH26 0xEBF9C8231ADF9418DA02326E9A30FA6A483B2A1FDA6339392374 DUP4 0xBC PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
"sourceMap": "240:1532:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220f83a2379ebf9c8231adf9418da02326e9a30fa6a483b2a1fda633939237483bc64736f6c634300081a0033",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xF8 GASPRICE 0x23 PUSH26 0xEBF9C8231ADF9418DA02326E9A30FA6A483B2A1FDA6339392374 DUP4 0xBC PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
"sourceMap": "240:1532:5:-:0;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "17000",
"executionCost": "92",
"totalCost": "17092"
},
"internal": {
"add(uint256,uint256)": "infinite",
"div(uint256,uint256)": "infinite",
"mul(uint256,uint256)": "infinite",
"sub(uint256,uint256)": "infinite",
"sub(uint256,uint256,string memory)": "infinite"
}
},
"legacyAssembly": {
".code": [
{
"begin": 240,
"end": 1772,
"name": "PUSH #[$]",
"source": 5,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 240,
"end": 1772,
"name": "PUSH [$]",
"source": 5,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "B"
},
{
"begin": 240,
"end": 1772,
"name": "DUP3",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "DUP3",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "DUP3",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "CODECOPY",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "DUP1",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "MLOAD",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "0"
},
{
"begin": 240,
"end": 1772,
"name": "BYTE",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "73"
},
{
"begin": 240,
"end": 1772,
"name": "EQ",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH [tag]",
"source": 5,
"value": "1"
},
{
"begin": 240,
"end": 1772,
"name": "JUMPI",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "0"
},
{
"begin": 240,
"end": 1772,
"name": "MSTORE",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "0"
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "4"
},
{
"begin": 240,
"end": 1772,
"name": "MSTORE",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "24"
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "0"
},
{
"begin": 240,
"end": 1772,
"name": "REVERT",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "tag",
"source": 5,
"value": "1"
},
{
"begin": 240,
"end": 1772,
"name": "JUMPDEST",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "ADDRESS",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "0"
},
{
"begin": 240,
"end": 1772,
"name": "MSTORE",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "73"
},
{
"begin": 240,
"end": 1772,
"name": "DUP2",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "MSTORE8",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "DUP3",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "DUP2",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "RETURN",
"source": 5
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220f83a2379ebf9c8231adf9418da02326e9a30fa6a483b2a1fda633939237483bc64736f6c634300081a0033",
".code": [
{
"begin": 240,
"end": 1772,
"name": "PUSHDEPLOYADDRESS",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "ADDRESS",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "EQ",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "80"
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "40"
},
{
"begin": 240,
"end": 1772,
"name": "MSTORE",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "PUSH",
"source": 5,
"value": "0"
},
{
"begin": 240,
"end": 1772,
"name": "DUP1",
"source": 5
},
{
"begin": 240,
"end": 1772,
"name": "REVERT",
"source": 5
}
]
}
},
"sourceList": [
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"@aave/core-v3/contracts/interfaces/IPool.sol",
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"contracts/adapters/paraswap/BaseParaSwapAdapter.sol",
"#utility.yul"
]
},
"methodIdentifiers": {}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Optimized overflow and underflow safe math operations\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol\":\"SafeMath\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol\":{\"keccak256\":\"0xf1c5d8ba70a5fc3e20dbbc2aa2a2278d2535a57bc1e9abf1228ebc3068a045f0\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://275183a6783193c44497f0535e5f8473a5d1fd970bb968f2db4d7bf25c967e7b\",\"dweb:/ipfs/QmXggrHmKWkZEXN5UYkDcYWGrU428k5iYbf39apqbk3fqQ\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"notice": "Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost",
"version": 1
}
}
},
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol": {
"FlashLoanSimpleReceiverBase": {
"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",
"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": "FlashLoanSimpleReceiverBase",
"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\",\"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\":\"FlashLoanSimpleReceiverBase\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"executeOperation(address,uint256,uint256,address,bytes)\":{\"notice\":\"Executes an operation after receiving the flash-borrowed asset\"}},\"notice\":\"Base contract to develop a flashloan-receiver contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol\":\"FlashLoanSimpleReceiverBase\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol\":{\"keccak256\":\"0x3a04fc046c4f04c71ff230eba56e56bb718be41e4317f0c938bd287d81e384b1\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://8a02e8f6034e6536269eca55dc4e068e584a67cef530dea865d9a75e0e950ca3\",\"dweb:/ipfs/QmdwL6Wvbk8QAyThNzPkeCfmTUryUdUnkbBDSRs5eigBmj\"]},\"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\":{\"keccak256\":\"0xba50a7834ddfdca3e3cfac09043f72699be42ff88925641ac30950a434b2b2ff\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://588513e813da8c9edf06bdd8912f33f5e304735e4b0145da9fb034eb46f205b5\",\"dweb:/ipfs/Qmco68eeRnTUGyZaoZ9Vu4R7xzH9x1pUwP36nUvrxnxHxg\"]},\"@aave/core-v3/contracts/interfaces/IPool.sol\":{\"keccak256\":\"0xbfd2077251c8dc766a56d45f4b03eb07f3441323e79c0f794efea3657a99747f\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://c6ff6221de0ea877932c73c0b99d3e4535f293053ae44f9f9d6b9d265e9af2f6\",\"dweb:/ipfs/QmSTaEKrhz1xNVnx4oBzWw8DenYPShVzJoP1A9GTEWkAzX\"]},\"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0x33d4308d9407b4ee2297fc4ba5acce1a96a6c658189e2778a4f6b90e032fb3b5\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://978336a2a40229ccc7749344be890862ea12e17e9fffe5bb977ba3841de07b5a\",\"dweb:/ipfs/QmScNrQfDSPg1afJmkCty6fZkETUrWTmEXWeTmHoe7mSqa\"]},\"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828\",\"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN\"]}},\"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": "Base contract to develop a flashloan-receiver contract.",
"version": 1
}
}
},
"@aave/core-v3/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\":{\"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\":\"IFlashLoanSimpleReceiver\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\":{\"keccak256\":\"0xba50a7834ddfdca3e3cfac09043f72699be42ff88925641ac30950a434b2b2ff\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://588513e813da8c9edf06bdd8912f33f5e304735e4b0145da9fb034eb46f205b5\",\"dweb:/ipfs/Qmco68eeRnTUGyZaoZ9Vu4R7xzH9x1pUwP36nUvrxnxHxg\"]},\"@aave/core-v3/contracts/interfaces/IPool.sol\":{\"keccak256\":\"0xbfd2077251c8dc766a56d45f4b03eb07f3441323e79c0f794efea3657a99747f\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://c6ff6221de0ea877932c73c0b99d3e4535f293053ae44f9f9d6b9d265e9af2f6\",\"dweb:/ipfs/QmSTaEKrhz1xNVnx4oBzWw8DenYPShVzJoP1A9GTEWkAzX\"]},\"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0x33d4308d9407b4ee2297fc4ba5acce1a96a6c658189e2778a4f6b90e032fb3b5\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://978336a2a40229ccc7749344be890862ea12e17e9fffe5bb977ba3841de07b5a\",\"dweb:/ipfs/QmScNrQfDSPg1afJmkCty6fZkETUrWTmEXWeTmHoe7mSqa\"]},\"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828\",\"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN\"]}},\"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
}
}
},
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol": {
"IERC20WithPermit": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "permit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"author": "Aave",
"events": {
"Approval(address,address,uint256)": {
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
},
"Transfer(address,address,uint256)": {
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
}
},
"kind": "dev",
"methods": {
"allowance(address,address)": {
"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."
},
"approve(address,uint256)": {
"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."
},
"balanceOf(address)": {
"details": "Returns the amount of tokens owned by `account`."
},
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {
"details": "implements the permit function as for https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md",
"params": {
"deadline": "The deadline timestamp, type(uint256).max for max deadline",
"owner": "The owner of the funds",
"r": "Signature param",
"s": "Signature param",
"spender": "The spender",
"v": "Signature param",
"value": "The amount"
}
},
"totalSupply()": {
"details": "Returns the amount of tokens in existence."
},
"transfer(address,uint256)": {
"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
},
"transferFrom(address,address,uint256)": {
"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
}
},
"title": "IERC20WithPermit",
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Aave\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.\"},\"approve(address,uint256)\":{\"details\":\"Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"implements the permit function as for https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md\",\"params\":{\"deadline\":\"The deadline timestamp, type(uint256).max for max deadline\",\"owner\":\"The owner of the funds\",\"r\":\"Signature param\",\"s\":\"Signature param\",\"spender\":\"The spender\",\"v\":\"Signature param\",\"value\":\"The amount\"}},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"}},\"title\":\"IERC20WithPermit\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"notice\":\"Allow passing a signed message to approve spending\"}},\"notice\":\"Interface for the permit function (EIP-2612)\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol\":\"IERC20WithPermit\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol\":{\"keccak256\":\"0xf57d62241e553696a1324d225663ba2e1a51db0a51ca236d0c1b009d89b6284c\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d327db93b636790909aa137124f30a856ac1631cb79c476aa188f9627fda8d03\",\"dweb:/ipfs/QmaxpmEoBFioeNYmpxJemyZ7aYF2nX1NKW1XDqREm7i6es\"]},\"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol\":{\"keccak256\":\"0xfb041570f1804648f543be72cecc80ca9f65129232bacaa9247ebd11a7d9f83e\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d46fcfc306a6f9d52dd6d17f9d344907f7fe54ad8e36b890949662f5a1c7ca55\",\"dweb:/ipfs/QmX5B4ZfmxpgF86tMhCV5DiH5pAyVanzsiCRDT8GkCfzkZ\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {
"notice": "Allow passing a signed message to approve spending"
}
},
"notice": "Interface for the permit function (EIP-2612)",
"version": 1
}
}
},
"@aave/core-v3/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\":{\"@aave/core-v3/contracts/interfaces/IPool.sol\":\"IPool\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/interfaces/IPool.sol\":{\"keccak256\":\"0xbfd2077251c8dc766a56d45f4b03eb07f3441323e79c0f794efea3657a99747f\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://c6ff6221de0ea877932c73c0b99d3e4535f293053ae44f9f9d6b9d265e9af2f6\",\"dweb:/ipfs/QmSTaEKrhz1xNVnx4oBzWw8DenYPShVzJoP1A9GTEWkAzX\"]},\"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0x33d4308d9407b4ee2297fc4ba5acce1a96a6c658189e2778a4f6b90e032fb3b5\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://978336a2a40229ccc7749344be890862ea12e17e9fffe5bb977ba3841de07b5a\",\"dweb:/ipfs/QmScNrQfDSPg1afJmkCty6fZkETUrWTmEXWeTmHoe7mSqa\"]},\"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828\",\"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN\"]}},\"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
}
}
},
"@aave/core-v3/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\":{\"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol\":\"IPoolAddressesProvider\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0x33d4308d9407b4ee2297fc4ba5acce1a96a6c658189e2778a4f6b90e032fb3b5\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://978336a2a40229ccc7749344be890862ea12e17e9fffe5bb977ba3841de07b5a\",\"dweb:/ipfs/QmScNrQfDSPg1afJmkCty6fZkETUrWTmEXWeTmHoe7mSqa\"]}},\"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
}
}
},
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol": {
"IPriceOracleGetter": {
"abi": [
{
"inputs": [],
"name": "BASE_CURRENCY",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BASE_CURRENCY_UNIT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
}
],
"name": "getAssetPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"author": "Aave",
"kind": "dev",
"methods": {
"BASE_CURRENCY()": {
"details": "Address 0x0 is reserved for USD as base currency.",
"returns": {
"_0": "Returns the base currency address."
}
},
"BASE_CURRENCY_UNIT()": {
"details": "1 ether for ETH, 1e8 for USD.",
"returns": {
"_0": "Returns the base currency unit."
}
},
"getAssetPrice(address)": {
"params": {
"asset": "The address of the asset"
},
"returns": {
"_0": "The price of the asset"
}
}
},
"title": "IPriceOracleGetter",
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"BASE_CURRENCY()": "e19f4700",
"BASE_CURRENCY_UNIT()": "8c89b64f",
"getAssetPrice(address)": "b3596f07"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"BASE_CURRENCY\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BASE_CURRENCY_UNIT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getAssetPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Aave\",\"kind\":\"dev\",\"methods\":{\"BASE_CURRENCY()\":{\"details\":\"Address 0x0 is reserved for USD as base currency.\",\"returns\":{\"_0\":\"Returns the base currency address.\"}},\"BASE_CURRENCY_UNIT()\":{\"details\":\"1 ether for ETH, 1e8 for USD.\",\"returns\":{\"_0\":\"Returns the base currency unit.\"}},\"getAssetPrice(address)\":{\"params\":{\"asset\":\"The address of the asset\"},\"returns\":{\"_0\":\"The price of the asset\"}}},\"title\":\"IPriceOracleGetter\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"BASE_CURRENCY()\":{\"notice\":\"Returns the base currency address\"},\"BASE_CURRENCY_UNIT()\":{\"notice\":\"Returns the base currency unit\"},\"getAssetPrice(address)\":{\"notice\":\"Returns the asset price in the base currency\"}},\"notice\":\"Interface for the Aave price oracle.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol\":\"IPriceOracleGetter\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol\":{\"keccak256\":\"0xfe72e94869ca91465a7f57282b8d367b2c9ba798fdc13ac8546304db8d971df6\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://17eb0014e4dd33c8a177ff6a80aea1361d40cda65f0e832484d9dad9c80c9aea\",\"dweb:/ipfs/QmVNsRx7bJjKmgfTVnpArCRRFGAyds2d5pY4sigcvgmxtf\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {
"BASE_CURRENCY()": {
"notice": "Returns the base currency address"
},
"BASE_CURRENCY_UNIT()": {
"notice": "Returns the base currency unit"
},
"getAssetPrice(address)": {
"notice": "Returns the asset price in the base currency"
}
},
"notice": "Interface for the Aave price oracle.",
"version": 1
}
}
},
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol": {
"DataTypes": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":62:7368 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 /* \"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":62:7368 library DataTypes {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220268e604dd9a812fcdfe19d6b0771b9dc7547e930ac2b7b55146739a880438dd964736f6c634300081a0033\n}\n",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220268e604dd9a812fcdfe19d6b0771b9dc7547e930ac2b7b55146739a880438dd964736f6c634300081a0033",
"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 0x26 DUP15 PUSH1 0x4D 0xD9 0xA8 SLT 0xFC 0xDF 0xE1 SWAP14 PUSH12 0x771B9DC7547E930AC2B7B55 EQ PUSH8 0x39A880438DD96473 PUSH16 0x6C634300081A00330000000000000000 ",
"sourceMap": "62:7306:12:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220268e604dd9a812fcdfe19d6b0771b9dc7547e930ac2b7b55146739a880438dd964736f6c634300081a0033",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x26 DUP15 PUSH1 0x4D 0xD9 0xA8 SLT 0xFC 0xDF 0xE1 SWAP14 PUSH12 0x771B9DC7547E930AC2B7B55 EQ PUSH8 0x39A880438DD96473 PUSH16 0x6C634300081A00330000000000000000 ",
"sourceMap": "62:7306:12:-:0;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "17000",
"executionCost": "92",
"totalCost": "17092"
}
},
"legacyAssembly": {
".code": [
{
"begin": 62,
"end": 7368,
"name": "PUSH #[$]",
"source": 12,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 62,
"end": 7368,
"name": "PUSH [$]",
"source": 12,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "B"
},
{
"begin": 62,
"end": 7368,
"name": "DUP3",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "DUP3",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "DUP3",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "CODECOPY",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "DUP1",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "MLOAD",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "0"
},
{
"begin": 62,
"end": 7368,
"name": "BYTE",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "73"
},
{
"begin": 62,
"end": 7368,
"name": "EQ",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH [tag]",
"source": 12,
"value": "1"
},
{
"begin": 62,
"end": 7368,
"name": "JUMPI",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "0"
},
{
"begin": 62,
"end": 7368,
"name": "MSTORE",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "0"
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "4"
},
{
"begin": 62,
"end": 7368,
"name": "MSTORE",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "24"
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "0"
},
{
"begin": 62,
"end": 7368,
"name": "REVERT",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "tag",
"source": 12,
"value": "1"
},
{
"begin": 62,
"end": 7368,
"name": "JUMPDEST",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "ADDRESS",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "0"
},
{
"begin": 62,
"end": 7368,
"name": "MSTORE",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "73"
},
{
"begin": 62,
"end": 7368,
"name": "DUP2",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "MSTORE8",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "DUP3",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "DUP2",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "RETURN",
"source": 12
}
],
".data": {
"0": {
".auxdata": "a2646970667358221220268e604dd9a812fcdfe19d6b0771b9dc7547e930ac2b7b55146739a880438dd964736f6c634300081a0033",
".code": [
{
"begin": 62,
"end": 7368,
"name": "PUSHDEPLOYADDRESS",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "ADDRESS",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "EQ",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "80"
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "40"
},
{
"begin": 62,
"end": 7368,
"name": "MSTORE",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "PUSH",
"source": 12,
"value": "0"
},
{
"begin": 62,
"end": 7368,
"name": "DUP1",
"source": 12
},
{
"begin": 62,
"end": 7368,
"name": "REVERT",
"source": 12
}
]
}
},
"sourceList": [
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"@aave/core-v3/contracts/interfaces/IPool.sol",
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"contracts/adapters/paraswap/BaseParaSwapAdapter.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\":{\"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":\"DataTypes\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828\",\"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"contracts/adapters/paraswap/BaseParaSwapAdapter.sol": {
"BaseParaSwapAdapter": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "fromAsset",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "toAsset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountSold",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "receivedAmount",
"type": "uint256"
}
],
"name": "Bought",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "fromAsset",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "toAsset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fromAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "receivedAmount",
"type": "uint256"
}
],
"name": "Swapped",
"type": "event"
},
{
"inputs": [],
"name": "ADDRESSES_PROVIDER",
"outputs": [
{
"internalType": "contract IPoolAddressesProvider",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_SLIPPAGE_PERCENT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ORACLE",
"outputs": [
{
"internalType": "contract IPriceOracleGetter",
"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"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "token",
"type": "address"
}
],
"name": "rescueTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"author": "Jason Raymond Bell",
"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"
}
},
"owner()": {
"details": "Returns the address of the current owner."
},
"renounceOwnership()": {
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
},
"rescueTokens(address)": {
"details": "Emergency rescue for token stucked on this contract, as failsafe mechanism - Funds should never remain in this contract more time than during transactions - Only callable by the owner"
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"title": "BaseParaSwapAdapter",
"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",
"MAX_SLIPPAGE_PERCENT()": "32e4b286",
"ORACLE()": "38013f02",
"POOL()": "7535d246",
"executeOperation(address,uint256,uint256,address,bytes)": "1b11d0ff",
"owner()": "8da5cb5b",
"renounceOwnership()": "715018a6",
"rescueTokens(address)": "00ae3bf8",
"transferOwnership(address)": "f2fde38b"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fromAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAsset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"receivedAmount\",\"type\":\"uint256\"}],\"name\":\"Bought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fromAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAsset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"receivedAmount\",\"type\":\"uint256\"}],\"name\":\"Swapped\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADDRESSES_PROVIDER\",\"outputs\":[{\"internalType\":\"contract IPoolAddressesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_SLIPPAGE_PERCENT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ORACLE\",\"outputs\":[{\"internalType\":\"contract IPriceOracleGetter\",\"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\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"rescueTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Jason Raymond Bell\",\"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\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"rescueTokens(address)\":{\"details\":\"Emergency rescue for token stucked on this contract, as failsafe mechanism - Funds should never remain in this contract more time than during transactions - Only callable by the owner\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"BaseParaSwapAdapter\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"executeOperation(address,uint256,uint256,address,bytes)\":{\"notice\":\"Executes an operation after receiving the flash-borrowed asset\"}},\"notice\":\"Utility functions for adapters using ParaSwap\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/adapters/paraswap/BaseParaSwapAdapter.sol\":\"BaseParaSwapAdapter\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol\":{\"keccak256\":\"0xb18337187a2a6c4e64c61f8e4e06f0e932a69bb8f33688943bf50d7f4198e44b\",\"license\":\"LGPL-3.0-or-later\",\"urls\":[\"bzz-raw://38c0769720d226d41fb5a0f504a0b9434ca266acb15d1de9bbc08f1a5c8a7bbc\",\"dweb:/ipfs/QmeskcXDL7cbMXbjEdAdbUamKmjqYKBwRfheFZmm9mpBKJ\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol\":{\"keccak256\":\"0xc0df5ebb2c3d8b4509464c40a88cc51e5e5f5e4a26fafc909330e9bb2658f641\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dc2690f871399de8f14e4cd8ae9b57a67e135afa28ac4be76594eaf4ecd8e244\",\"dweb:/ipfs/Qmb9gKAnQBciUknb3ysnfDpWAdYXGJm51NzFYWNkXwoAZg\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol\":{\"keccak256\":\"0xf57d62241e553696a1324d225663ba2e1a51db0a51ca236d0c1b009d89b6284c\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d327db93b636790909aa137124f30a856ac1631cb79c476aa188f9627fda8d03\",\"dweb:/ipfs/QmaxpmEoBFioeNYmpxJemyZ7aYF2nX1NKW1XDqREm7i6es\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol\":{\"keccak256\":\"0x9365cd885dc1ed7aed1364ae4dedf8e4660100cba0437061013f64c5002b385a\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://ddc639d67c82e15f76b08588e8ad2ee87eaff6bb9cba5c0e5b08e242c3c4ac00\",\"dweb:/ipfs/QmY1D9WcH3nmg2VVfqSUkEX6Zrkmkmx8oi2pJAvw5BABi7\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol\":{\"keccak256\":\"0x3ce185c4f579e32006f8893dbfdc1b5d878c0e2cafd1508f7ceb081698bc81f9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://de40129c2380570ce2e883210452f0dc0913788e66be6690084be3d9f8def73f\",\"dweb:/ipfs/QmVAEtQHTYDPheoDniWaVNyRcWwfu3ccmUCxFXuzxHEwFT\"]},\"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol\":{\"keccak256\":\"0xf1c5d8ba70a5fc3e20dbbc2aa2a2278d2535a57bc1e9abf1228ebc3068a045f0\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://275183a6783193c44497f0535e5f8473a5d1fd970bb968f2db4d7bf25c967e7b\",\"dweb:/ipfs/QmXggrHmKWkZEXN5UYkDcYWGrU428k5iYbf39apqbk3fqQ\"]},\"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol\":{\"keccak256\":\"0x3a04fc046c4f04c71ff230eba56e56bb718be41e4317f0c938bd287d81e384b1\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://8a02e8f6034e6536269eca55dc4e068e584a67cef530dea865d9a75e0e950ca3\",\"dweb:/ipfs/QmdwL6Wvbk8QAyThNzPkeCfmTUryUdUnkbBDSRs5eigBmj\"]},\"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\":{\"keccak256\":\"0xba50a7834ddfdca3e3cfac09043f72699be42ff88925641ac30950a434b2b2ff\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://588513e813da8c9edf06bdd8912f33f5e304735e4b0145da9fb034eb46f205b5\",\"dweb:/ipfs/Qmco68eeRnTUGyZaoZ9Vu4R7xzH9x1pUwP36nUvrxnxHxg\"]},\"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol\":{\"keccak256\":\"0xfb041570f1804648f543be72cecc80ca9f65129232bacaa9247ebd11a7d9f83e\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://d46fcfc306a6f9d52dd6d17f9d344907f7fe54ad8e36b890949662f5a1c7ca55\",\"dweb:/ipfs/QmX5B4ZfmxpgF86tMhCV5DiH5pAyVanzsiCRDT8GkCfzkZ\"]},\"@aave/core-v3/contracts/interfaces/IPool.sol\":{\"keccak256\":\"0xbfd2077251c8dc766a56d45f4b03eb07f3441323e79c0f794efea3657a99747f\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://c6ff6221de0ea877932c73c0b99d3e4535f293053ae44f9f9d6b9d265e9af2f6\",\"dweb:/ipfs/QmSTaEKrhz1xNVnx4oBzWw8DenYPShVzJoP1A9GTEWkAzX\"]},\"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol\":{\"keccak256\":\"0x33d4308d9407b4ee2297fc4ba5acce1a96a6c658189e2778a4f6b90e032fb3b5\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://978336a2a40229ccc7749344be890862ea12e17e9fffe5bb977ba3841de07b5a\",\"dweb:/ipfs/QmScNrQfDSPg1afJmkCty6fZkETUrWTmEXWeTmHoe7mSqa\"]},\"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol\":{\"keccak256\":\"0xfe72e94869ca91465a7f57282b8d367b2c9ba798fdc13ac8546304db8d971df6\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://17eb0014e4dd33c8a177ff6a80aea1361d40cda65f0e832484d9dad9c80c9aea\",\"dweb:/ipfs/QmVNsRx7bJjKmgfTVnpArCRRFGAyds2d5pY4sigcvgmxtf\"]},\"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828\",\"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN\"]},\"contracts/adapters/paraswap/BaseParaSwapAdapter.sol\":{\"keccak256\":\"0xd835ab6371f67b48ba0cb9247c97fea02e62922582d136de51c81d5ad007eca8\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://760eb7ce5d1a4b7405d979f7d9c6c14ee7ba88765ef7c83cdaf299f7113f08c0\",\"dweb:/ipfs/QmRQECuGD173RVR9v3mf3Uo6cHxYzKjPYBHfawaibpbKyY\"]}},\"version\":1}",
"storageLayout": {
"storage": [
{
"astId": 204,
"contract": "contracts/adapters/paraswap/BaseParaSwapAdapter.sol:BaseParaSwapAdapter",
"label": "_owner",
"offset": 0,
"slot": "0",
"type": "t_address"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
}
},
"userdoc": {
"kind": "user",
"methods": {
"executeOperation(address,uint256,uint256,address,bytes)": {
"notice": "Executes an operation after receiving the flash-borrowed asset"
}
},
"notice": "Utility functions for adapters using ParaSwap",
"version": 1
}
}
}
},
"sources": {
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"exportedSymbols": {
"GPv2SafeERC20": [
70
],
"IERC20": [
174
]
},
"id": 71,
"license": "LGPL-3.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "46:23:0"
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"file": "../../openzeppelin/contracts/IERC20.sol",
"id": 3,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 71,
"sourceUnit": 175,
"src": "71:63:0",
"symbolAliases": [
{
"foreign": {
"id": 2,
"name": "IERC20",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 174,
"src": "79:6:0",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "GPv2SafeERC20",
"contractDependencies": [],
"contractKind": "library",
"documentation": {
"id": 4,
"nodeType": "StructuredDocumentation",
"src": "136:157:0",
"text": "@title Gnosis Protocol v2 Safe ERC20 Transfer Library\n @author Gnosis Developers\n @dev Gas-efficient version of Openzeppelin's SafeERC20 contract."
},
"fullyImplemented": true,
"id": 70,
"linearizedBaseContracts": [
70
],
"name": "GPv2SafeERC20",
"nameLocation": "301:13:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 29,
"nodeType": "Block",
"src": "513:585:0",
"statements": [
{
"assignments": [
16
],
"declarations": [
{
"constant": false,
"id": 16,
"mutability": "mutable",
"name": "selector_",
"nameLocation": "526:9:0",
"nodeType": "VariableDeclaration",
"scope": 29,
"src": "519:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 15,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "519:6:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"id": 20,
"initialValue": {
"expression": {
"expression": {
"id": 17,
"name": "token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8,
"src": "538:5:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"id": 18,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "544:8:0",
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": 123,
"src": "538:14:0",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256) external returns (bool)"
}
},
"id": 19,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "553:8:0",
"memberName": "selector",
"nodeType": "MemberAccess",
"src": "538:23:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "519:42:0"
},
{
"AST": {
"nativeSrc": "629:396:0",
"nodeType": "YulBlock",
"src": "629:396:0",
"statements": [
{
"nativeSrc": "637:36:0",
"nodeType": "YulVariableDeclaration",
"src": "637:36:0",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "668:4:0",
"nodeType": "YulLiteral",
"src": "668:4:0",
"type": "",
"value": "0x40"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "662:5:0",
"nodeType": "YulIdentifier",
"src": "662:5:0"
},
"nativeSrc": "662:11:0",
"nodeType": "YulFunctionCall",
"src": "662:11:0"
},
"variables": [
{
"name": "freeMemoryPointer",
"nativeSrc": "641:17:0",
"nodeType": "YulTypedName",
"src": "641:17:0",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "687:17:0",
"nodeType": "YulIdentifier",
"src": "687:17:0"
},
{
"name": "selector_",
"nativeSrc": "706:9:0",
"nodeType": "YulIdentifier",
"src": "706:9:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "680:6:0",
"nodeType": "YulIdentifier",
"src": "680:6:0"
},
"nativeSrc": "680:36:0",
"nodeType": "YulFunctionCall",
"src": "680:36:0"
},
"nativeSrc": "680:36:0",
"nodeType": "YulExpressionStatement",
"src": "680:36:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "734:17:0",
"nodeType": "YulIdentifier",
"src": "734:17:0"
},
{
"kind": "number",
"nativeSrc": "753:1:0",
"nodeType": "YulLiteral",
"src": "753:1:0",
"type": "",
"value": "4"
}
],
"functionName": {
"name": "add",
"nativeSrc": "730:3:0",
"nodeType": "YulIdentifier",
"src": "730:3:0"
},
"nativeSrc": "730:25:0",
"nodeType": "YulFunctionCall",
"src": "730:25:0"
},
{
"arguments": [
{
"name": "to",
"nativeSrc": "761:2:0",
"nodeType": "YulIdentifier",
"src": "761:2:0"
},
{
"kind": "number",
"nativeSrc": "765:42:0",
"nodeType": "YulLiteral",
"src": "765:42:0",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nativeSrc": "757:3:0",
"nodeType": "YulIdentifier",
"src": "757:3:0"
},
"nativeSrc": "757:51:0",
"nodeType": "YulFunctionCall",
"src": "757:51:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "723:6:0",
"nodeType": "YulIdentifier",
"src": "723:6:0"
},
"nativeSrc": "723:86:0",
"nodeType": "YulFunctionCall",
"src": "723:86:0"
},
"nativeSrc": "723:86:0",
"nodeType": "YulExpressionStatement",
"src": "723:86:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "827:17:0",
"nodeType": "YulIdentifier",
"src": "827:17:0"
},
{
"kind": "number",
"nativeSrc": "846:2:0",
"nodeType": "YulLiteral",
"src": "846:2:0",
"type": "",
"value": "36"
}
],
"functionName": {
"name": "add",
"nativeSrc": "823:3:0",
"nodeType": "YulIdentifier",
"src": "823:3:0"
},
"nativeSrc": "823:26:0",
"nodeType": "YulFunctionCall",
"src": "823:26:0"
},
{
"name": "value",
"nativeSrc": "851:5:0",
"nodeType": "YulIdentifier",
"src": "851:5:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "816:6:0",
"nodeType": "YulIdentifier",
"src": "816:6:0"
},
"nativeSrc": "816:41:0",
"nodeType": "YulFunctionCall",
"src": "816:41:0"
},
"nativeSrc": "816:41:0",
"nodeType": "YulExpressionStatement",
"src": "816:41:0"
},
{
"body": {
"nativeSrc": "927:92:0",
"nodeType": "YulBlock",
"src": "927:92:0",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "952:1:0",
"nodeType": "YulLiteral",
"src": "952:1:0",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "955:1:0",
"nodeType": "YulLiteral",
"src": "955:1:0",
"type": "",
"value": "0"
},
{
"arguments": [],
"functionName": {
"name": "returndatasize",
"nativeSrc": "958:14:0",
"nodeType": "YulIdentifier",
"src": "958:14:0"
},
"nativeSrc": "958:16:0",
"nodeType": "YulFunctionCall",
"src": "958:16:0"
}
],
"functionName": {
"name": "returndatacopy",
"nativeSrc": "937:14:0",
"nodeType": "YulIdentifier",
"src": "937:14:0"
},
"nativeSrc": "937:38:0",
"nodeType": "YulFunctionCall",
"src": "937:38:0"
},
"nativeSrc": "937:38:0",
"nodeType": "YulExpressionStatement",
"src": "937:38:0"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "991:1:0",
"nodeType": "YulLiteral",
"src": "991:1:0",
"type": "",
"value": "0"
},
{
"arguments": [],
"functionName": {
"name": "returndatasize",
"nativeSrc": "994:14:0",
"nodeType": "YulIdentifier",
"src": "994:14:0"
},
"nativeSrc": "994:16:0",
"nodeType": "YulFunctionCall",
"src": "994:16:0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "984:6:0",
"nodeType": "YulIdentifier",
"src": "984:6:0"
},
"nativeSrc": "984:27:0",
"nodeType": "YulFunctionCall",
"src": "984:27:0"
},
"nativeSrc": "984:27:0",
"nodeType": "YulExpressionStatement",
"src": "984:27:0"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [],
"functionName": {
"name": "gas",
"nativeSrc": "880:3:0",
"nodeType": "YulIdentifier",
"src": "880:3:0"
},
"nativeSrc": "880:5:0",
"nodeType": "YulFunctionCall",
"src": "880:5:0"
},
{
"name": "token",
"nativeSrc": "887:5:0",
"nodeType": "YulIdentifier",
"src": "887:5:0"
},
{
"kind": "number",
"nativeSrc": "894:1:0",
"nodeType": "YulLiteral",
"src": "894:1:0",
"type": "",
"value": "0"
},
{
"name": "freeMemoryPointer",
"nativeSrc": "897:17:0",
"nodeType": "YulIdentifier",
"src": "897:17:0"
},
{
"kind": "number",
"nativeSrc": "916:2:0",
"nodeType": "YulLiteral",
"src": "916:2:0",
"type": "",
"value": "68"
},
{
"kind": "number",
"nativeSrc": "920:1:0",
"nodeType": "YulLiteral",
"src": "920:1:0",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "923:1:0",
"nodeType": "YulLiteral",
"src": "923:1:0",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "call",
"nativeSrc": "875:4:0",
"nodeType": "YulIdentifier",
"src": "875:4:0"
},
"nativeSrc": "875:50:0",
"nodeType": "YulFunctionCall",
"src": "875:50:0"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "868:6:0",
"nodeType": "YulIdentifier",
"src": "868:6:0"
},
"nativeSrc": "868:58:0",
"nodeType": "YulFunctionCall",
"src": "868:58:0"
},
"nativeSrc": "865:154:0",
"nodeType": "YulIf",
"src": "865:154:0"
}
]
},
"evmVersion": "cancun",
"externalReferences": [
{
"declaration": 16,
"isOffset": false,
"isSlot": false,
"src": "706:9:0",
"valueSize": 1
},
{
"declaration": 10,
"isOffset": false,
"isSlot": false,
"src": "761:2:0",
"valueSize": 1
},
{
"declaration": 8,
"isOffset": false,
"isSlot": false,
"src": "887:5:0",
"valueSize": 1
},
{
"declaration": 12,
"isOffset": false,
"isSlot": false,
"src": "851:5:0",
"valueSize": 1
}
],
"id": 21,
"nodeType": "InlineAssembly",
"src": "620:405:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"id": 24,
"name": "token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 8,
"src": "1061:5:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
],
"id": 23,
"name": "getLastTransferResult",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 69,
"src": "1039:21:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$174_$returns$_t_bool_$",
"typeString": "function (contract IERC20) view returns (bool)"
}
},
"id": 25,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1039:28:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "475076323a206661696c6564207472616e73666572",
"id": 26,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1069:23:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_bcd627324e1455f8429089871957d6f7804c9418ddab92671c4a49f81f3fae96",
"typeString": "literal_string \"GPv2: failed transfer\""
},
"value": "GPv2: failed transfer"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_bcd627324e1455f8429089871957d6f7804c9418ddab92671c4a49f81f3fae96",
"typeString": "literal_string \"GPv2: failed transfer\""
}
],
"id": 22,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1031:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 27,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1031:62:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 28,
"nodeType": "ExpressionStatement",
"src": "1031:62:0"
}
]
},
"documentation": {
"id": 5,
"nodeType": "StructuredDocumentation",
"src": "319:119:0",
"text": "@dev Wrapper around a call to the ERC20 function `transfer` that reverts\n also when the token returns `false`."
},
"id": 30,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "safeTransfer",
"nameLocation": "450:12:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 8,
"mutability": "mutable",
"name": "token",
"nameLocation": "470:5:0",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "463:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
},
"typeName": {
"id": 7,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 6,
"name": "IERC20",
"nameLocations": [
"463:6:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "463:6:0"
},
"referencedDeclaration": 174,
"src": "463:6:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "to",
"nameLocation": "485:2:0",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "477:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "477:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12,
"mutability": "mutable",
"name": "value",
"nameLocation": "497:5:0",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "489:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "489:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "462:41:0"
},
"returnParameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [],
"src": "513:0:0"
},
"scope": 70,
"src": "441:657:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 57,
"nodeType": "Block",
"src": "1318:690:0",
"statements": [
{
"assignments": [
44
],
"declarations": [
{
"constant": false,
"id": 44,
"mutability": "mutable",
"name": "selector_",
"nameLocation": "1331:9:0",
"nodeType": "VariableDeclaration",
"scope": 57,
"src": "1324:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 43,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1324:6:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"id": 48,
"initialValue": {
"expression": {
"expression": {
"id": 45,
"name": "token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 34,
"src": "1343:5:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"id": 46,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "1349:12:0",
"memberName": "transferFrom",
"nodeType": "MemberAccess",
"referencedDeclaration": 155,
"src": "1343:18:0",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,address,uint256) external returns (bool)"
}
},
"id": 47,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "1362:8:0",
"memberName": "selector",
"nodeType": "MemberAccess",
"src": "1343:27:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "1324:46:0"
},
{
"AST": {
"nativeSrc": "1438:493:0",
"nodeType": "YulBlock",
"src": "1438:493:0",
"statements": [
{
"nativeSrc": "1446:36:0",
"nodeType": "YulVariableDeclaration",
"src": "1446:36:0",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1477:4:0",
"nodeType": "YulLiteral",
"src": "1477:4:0",
"type": "",
"value": "0x40"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "1471:5:0",
"nodeType": "YulIdentifier",
"src": "1471:5:0"
},
"nativeSrc": "1471:11:0",
"nodeType": "YulFunctionCall",
"src": "1471:11:0"
},
"variables": [
{
"name": "freeMemoryPointer",
"nativeSrc": "1450:17:0",
"nodeType": "YulTypedName",
"src": "1450:17:0",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "1496:17:0",
"nodeType": "YulIdentifier",
"src": "1496:17:0"
},
{
"name": "selector_",
"nativeSrc": "1515:9:0",
"nodeType": "YulIdentifier",
"src": "1515:9:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1489:6:0",
"nodeType": "YulIdentifier",
"src": "1489:6:0"
},
"nativeSrc": "1489:36:0",
"nodeType": "YulFunctionCall",
"src": "1489:36:0"
},
"nativeSrc": "1489:36:0",
"nodeType": "YulExpressionStatement",
"src": "1489:36:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "1543:17:0",
"nodeType": "YulIdentifier",
"src": "1543:17:0"
},
{
"kind": "number",
"nativeSrc": "1562:1:0",
"nodeType": "YulLiteral",
"src": "1562:1:0",
"type": "",
"value": "4"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1539:3:0",
"nodeType": "YulIdentifier",
"src": "1539:3:0"
},
"nativeSrc": "1539:25:0",
"nodeType": "YulFunctionCall",
"src": "1539:25:0"
},
{
"arguments": [
{
"name": "from",
"nativeSrc": "1570:4:0",
"nodeType": "YulIdentifier",
"src": "1570:4:0"
},
{
"kind": "number",
"nativeSrc": "1576:42:0",
"nodeType": "YulLiteral",
"src": "1576:42:0",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nativeSrc": "1566:3:0",
"nodeType": "YulIdentifier",
"src": "1566:3:0"
},
"nativeSrc": "1566:53:0",
"nodeType": "YulFunctionCall",
"src": "1566:53:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1532:6:0",
"nodeType": "YulIdentifier",
"src": "1532:6:0"
},
"nativeSrc": "1532:88:0",
"nodeType": "YulFunctionCall",
"src": "1532:88:0"
},
"nativeSrc": "1532:88:0",
"nodeType": "YulExpressionStatement",
"src": "1532:88:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "1638:17:0",
"nodeType": "YulIdentifier",
"src": "1638:17:0"
},
{
"kind": "number",
"nativeSrc": "1657:2:0",
"nodeType": "YulLiteral",
"src": "1657:2:0",
"type": "",
"value": "36"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1634:3:0",
"nodeType": "YulIdentifier",
"src": "1634:3:0"
},
"nativeSrc": "1634:26:0",
"nodeType": "YulFunctionCall",
"src": "1634:26:0"
},
{
"arguments": [
{
"name": "to",
"nativeSrc": "1666:2:0",
"nodeType": "YulIdentifier",
"src": "1666:2:0"
},
{
"kind": "number",
"nativeSrc": "1670:42:0",
"nodeType": "YulLiteral",
"src": "1670:42:0",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nativeSrc": "1662:3:0",
"nodeType": "YulIdentifier",
"src": "1662:3:0"
},
"nativeSrc": "1662:51:0",
"nodeType": "YulFunctionCall",
"src": "1662:51:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1627:6:0",
"nodeType": "YulIdentifier",
"src": "1627:6:0"
},
"nativeSrc": "1627:87:0",
"nodeType": "YulFunctionCall",
"src": "1627:87:0"
},
"nativeSrc": "1627:87:0",
"nodeType": "YulExpressionStatement",
"src": "1627:87:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "freeMemoryPointer",
"nativeSrc": "1732:17:0",
"nodeType": "YulIdentifier",
"src": "1732:17:0"
},
{
"kind": "number",
"nativeSrc": "1751:2:0",
"nodeType": "YulLiteral",
"src": "1751:2:0",
"type": "",
"value": "68"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1728:3:0",
"nodeType": "YulIdentifier",
"src": "1728:3:0"
},
"nativeSrc": "1728:26:0",
"nodeType": "YulFunctionCall",
"src": "1728:26:0"
},
{
"name": "value",
"nativeSrc": "1756:5:0",
"nodeType": "YulIdentifier",
"src": "1756:5:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1721:6:0",
"nodeType": "YulIdentifier",
"src": "1721:6:0"
},
"nativeSrc": "1721:41:0",
"nodeType": "YulFunctionCall",
"src": "1721:41:0"
},
"nativeSrc": "1721:41:0",
"nodeType": "YulExpressionStatement",
"src": "1721:41:0"
},
{
"body": {
"nativeSrc": "1833:92:0",
"nodeType": "YulBlock",
"src": "1833:92:0",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1858:1:0",
"nodeType": "YulLiteral",
"src": "1858:1:0",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "1861:1:0",
"nodeType": "YulLiteral",
"src": "1861:1:0",
"type": "",
"value": "0"
},
{
"arguments": [],
"functionName": {
"name": "returndatasize",
"nativeSrc": "1864:14:0",
"nodeType": "YulIdentifier",
"src": "1864:14:0"
},
"nativeSrc": "1864:16:0",
"nodeType": "YulFunctionCall",
"src": "1864:16:0"
}
],
"functionName": {
"name": "returndatacopy",
"nativeSrc": "1843:14:0",
"nodeType": "YulIdentifier",
"src": "1843:14:0"
},
"nativeSrc": "1843:38:0",
"nodeType": "YulFunctionCall",
"src": "1843:38:0"
},
"nativeSrc": "1843:38:0",
"nodeType": "YulExpressionStatement",
"src": "1843:38:0"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1897:1:0",
"nodeType": "YulLiteral",
"src": "1897:1:0",
"type": "",
"value": "0"
},
{
"arguments": [],
"functionName": {
"name": "returndatasize",
"nativeSrc": "1900:14:0",
"nodeType": "YulIdentifier",
"src": "1900:14:0"
},
"nativeSrc": "1900:16:0",
"nodeType": "YulFunctionCall",
"src": "1900:16:0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "1890:6:0",
"nodeType": "YulIdentifier",
"src": "1890:6:0"
},
"nativeSrc": "1890:27:0",
"nodeType": "YulFunctionCall",
"src": "1890:27:0"
},
"nativeSrc": "1890:27:0",
"nodeType": "YulExpressionStatement",
"src": "1890:27:0"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [],
"functionName": {
"name": "gas",
"nativeSrc": "1785:3:0",
"nodeType": "YulIdentifier",
"src": "1785:3:0"
},
"nativeSrc": "1785:5:0",
"nodeType": "YulFunctionCall",
"src": "1785:5:0"
},
{
"name": "token",
"nativeSrc": "1792:5:0",
"nodeType": "YulIdentifier",
"src": "1792:5:0"
},
{
"kind": "number",
"nativeSrc": "1799:1:0",
"nodeType": "YulLiteral",
"src": "1799:1:0",
"type": "",
"value": "0"
},
{
"name": "freeMemoryPointer",
"nativeSrc": "1802:17:0",
"nodeType": "YulIdentifier",
"src": "1802:17:0"
},
{
"kind": "number",
"nativeSrc": "1821:3:0",
"nodeType": "YulLiteral",
"src": "1821:3:0",
"type": "",
"value": "100"
},
{
"kind": "number",
"nativeSrc": "1826:1:0",
"nodeType": "YulLiteral",
"src": "1826:1:0",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "1829:1:0",
"nodeType": "YulLiteral",
"src": "1829:1:0",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "call",
"nativeSrc": "1780:4:0",
"nodeType": "YulIdentifier",
"src": "1780:4:0"
},
"nativeSrc": "1780:51:0",
"nodeType": "YulFunctionCall",
"src": "1780:51:0"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "1773:6:0",
"nodeType": "YulIdentifier",
"src": "1773:6:0"
},
"nativeSrc": "1773:59:0",
"nodeType": "YulFunctionCall",
"src": "1773:59:0"
},
"nativeSrc": "1770:155:0",
"nodeType": "YulIf",
"src": "1770:155:0"
}
]
},
"evmVersion": "cancun",
"externalReferences": [
{
"declaration": 36,
"isOffset": false,
"isSlot": false,
"src": "1570:4:0",
"valueSize": 1
},
{
"declaration": 44,
"isOffset": false,
"isSlot": false,
"src": "1515:9:0",
"valueSize": 1
},
{
"declaration": 38,
"isOffset": false,
"isSlot": false,
"src": "1666:2:0",
"valueSize": 1
},
{
"declaration": 34,
"isOffset": false,
"isSlot": false,
"src": "1792:5:0",
"valueSize": 1
},
{
"declaration": 40,
"isOffset": false,
"isSlot": false,
"src": "1756:5:0",
"valueSize": 1
}
],
"id": 49,
"nodeType": "InlineAssembly",
"src": "1429:502:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"id": 52,
"name": "token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 34,
"src": "1967:5:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
],
"id": 51,
"name": "getLastTransferResult",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 69,
"src": "1945:21:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$174_$returns$_t_bool_$",
"typeString": "function (contract IERC20) view returns (bool)"
}
},
"id": 53,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1945:28:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "475076323a206661696c6564207472616e7366657246726f6d",
"id": 54,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1975:27:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_910928af3c8209d55654c19deb64d9d16f87d0d58e9e40975f82488ba9b27d7e",
"typeString": "literal_string \"GPv2: failed transferFrom\""
},
"value": "GPv2: failed transferFrom"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_910928af3c8209d55654c19deb64d9d16f87d0d58e9e40975f82488ba9b27d7e",
"typeString": "literal_string \"GPv2: failed transferFrom\""
}
],
"id": 50,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1937:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 55,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1937:66:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 56,
"nodeType": "ExpressionStatement",
"src": "1937:66:0"
}
]
},
"documentation": {
"id": 31,
"nodeType": "StructuredDocumentation",
"src": "1102:123:0",
"text": "@dev Wrapper around a call to the ERC20 function `transferFrom` that\n reverts also when the token returns `false`."
},
"id": 58,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "safeTransferFrom",
"nameLocation": "1237:16:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 41,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 34,
"mutability": "mutable",
"name": "token",
"nameLocation": "1261:5:0",
"nodeType": "VariableDeclaration",
"scope": 58,
"src": "1254:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
},
"typeName": {
"id": 33,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 32,
"name": "IERC20",
"nameLocations": [
"1254:6:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "1254:6:0"
},
"referencedDeclaration": 174,
"src": "1254:6:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 36,
"mutability": "mutable",
"name": "from",
"nameLocation": "1276:4:0",
"nodeType": "VariableDeclaration",
"scope": 58,
"src": "1268:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 35,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1268:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 38,
"mutability": "mutable",
"name": "to",
"nameLocation": "1290:2:0",
"nodeType": "VariableDeclaration",
"scope": 58,
"src": "1282:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 37,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1282:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 40,
"mutability": "mutable",
"name": "value",
"nameLocation": "1302:5:0",
"nodeType": "VariableDeclaration",
"scope": 58,
"src": "1294:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 39,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1294:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1253:55:0"
},
"returnParameters": {
"id": 42,
"nodeType": "ParameterList",
"parameters": [],
"src": "1318:0:0"
},
"scope": 70,
"src": "1228:780:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 68,
"nodeType": "Block",
"src": "2279:2443:0",
"statements": [
{
"AST": {
"nativeSrc": "2741:1977:0",
"nodeType": "YulBlock",
"src": "2741:1977:0",
"statements": [
{
"body": {
"nativeSrc": "3367:163:0",
"nodeType": "YulBlock",
"src": "3367:163:0",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3384:4:0",
"nodeType": "YulLiteral",
"src": "3384:4:0",
"type": "",
"value": "0x00"
},
{
"hexValue": "08c379a0",
"kind": "string",
"nativeSrc": "3390:18:0",
"nodeType": "YulLiteral",
"src": "3390:18:0",
"type": ""
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3377:6:0",
"nodeType": "YulIdentifier",
"src": "3377:6:0"
},
"nativeSrc": "3377:32:0",
"nodeType": "YulFunctionCall",
"src": "3377:32:0"
},
"nativeSrc": "3377:32:0",
"nodeType": "YulExpressionStatement",
"src": "3377:32:0"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3425:4:0",
"nodeType": "YulLiteral",
"src": "3425:4:0",
"type": "",
"value": "0x04"
},
{
"kind": "number",
"nativeSrc": "3431:4:0",
"nodeType": "YulLiteral",
"src": "3431:4:0",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3418:6:0",
"nodeType": "YulIdentifier",
"src": "3418:6:0"
},
"nativeSrc": "3418:18:0",
"nodeType": "YulFunctionCall",
"src": "3418:18:0"
},
"nativeSrc": "3418:18:0",
"nodeType": "YulExpressionStatement",
"src": "3418:18:0"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3452:4:0",
"nodeType": "YulLiteral",
"src": "3452:4:0",
"type": "",
"value": "0x24"
},
{
"name": "length",
"nativeSrc": "3458:6:0",
"nodeType": "YulIdentifier",
"src": "3458:6:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3445:6:0",
"nodeType": "YulIdentifier",
"src": "3445:6:0"
},
"nativeSrc": "3445:20:0",
"nodeType": "YulFunctionCall",
"src": "3445:20:0"
},
"nativeSrc": "3445:20:0",
"nodeType": "YulExpressionStatement",
"src": "3445:20:0"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3481:4:0",
"nodeType": "YulLiteral",
"src": "3481:4:0",
"type": "",
"value": "0x44"
},
{
"name": "message",
"nativeSrc": "3487:7:0",
"nodeType": "YulIdentifier",
"src": "3487:7:0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3474:6:0",
"nodeType": "YulIdentifier",
"src": "3474:6:0"
},
"nativeSrc": "3474:21:0",
"nodeType": "YulFunctionCall",
"src": "3474:21:0"
},
"nativeSrc": "3474:21:0",
"nodeType": "YulExpressionStatement",
"src": "3474:21:0"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3511:4:0",
"nodeType": "YulLiteral",
"src": "3511:4:0",
"type": "",
"value": "0x00"
},
{
"kind": "number",
"nativeSrc": "3517:4:0",
"nodeType": "YulLiteral",
"src": "3517:4:0",
"type": "",
"value": "0x64"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "3504:6:0",
"nodeType": "YulIdentifier",
"src": "3504:6:0"
},
"nativeSrc": "3504:18:0",
"nodeType": "YulFunctionCall",
"src": "3504:18:0"
},
"nativeSrc": "3504:18:0",
"nodeType": "YulExpressionStatement",
"src": "3504:18:0"
}
]
},
"name": "revertWithMessage",
"nativeSrc": "3323:207:0",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nativeSrc": "3350:6:0",
"nodeType": "YulTypedName",
"src": "3350:6:0",
"type": ""
},
{
"name": "message",
"nativeSrc": "3358:7:0",
"nodeType": "YulTypedName",
"src": "3358:7:0",
"type": ""
}
],
"src": "3323:207:0"
},
{
"cases": [
{
"body": {
"nativeSrc": "3628:434:0",
"nodeType": "YulBlock",
"src": "3628:434:0",
"statements": [
{
"body": {
"nativeSrc": "3965:67:0",
"nodeType": "YulBlock",
"src": "3965:67:0",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3995:2:0",
"nodeType": "YulLiteral",
"src": "3995:2:0",
"type": "",
"value": "20"
},
{
"hexValue": "475076323a206e6f74206120636f6e7472616374",
"kind": "string",
"nativeSrc": "3999:22:0",
"nodeType": "YulLiteral",
"src": "3999:22:0",
"type": "",
"value": "GPv2: not a contract"
}
],
"functionName": {
"name": "revertWithMessage",
"nativeSrc": "3977:17:0",
"nodeType": "YulIdentifier",
"src": "3977:17:0"
},
"nativeSrc": "3977:45:0",
"nodeType": "YulFunctionCall",
"src": "3977:45:0"
},
"nativeSrc": "3977:45:0",
"nodeType": "YulExpressionStatement",
"src": "3977:45:0"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "token",
"nativeSrc": "3957:5:0",
"nodeType": "YulIdentifier",
"src": "3957:5:0"
}
],
"functionName": {
"name": "extcodesize",
"nativeSrc": "3945:11:0",
"nodeType": "YulIdentifier",
"src": "3945:11:0"
},
"nativeSrc": "3945:18:0",
"nodeType": "YulFunctionCall",
"src": "3945:18:0"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "3938:6:0",
"nodeType": "YulIdentifier",
"src": "3938:6:0"
},
"nativeSrc": "3938:26:0",
"nodeType": "YulFunctionCall",
"src": "3938:26:0"
},
"nativeSrc": "3935:97:0",
"nodeType": "YulIf",
"src": "3935:97:0"
},
{
"nativeSrc": "4042:12:0",
"nodeType": "YulAssignment",
"src": "4042:12:0",
"value": {
"kind": "number",
"nativeSrc": "4053:1:0",
"nodeType": "YulLiteral",
"src": "4053:1:0",
"type": "",
"value": "1"
},
"variableNames": [
{
"name": "success",
"nativeSrc": "4042:7:0",
"nodeType": "YulIdentifier",
"src": "4042:7:0"
}
]
}
]
},
"nativeSrc": "3621:441:0",
"nodeType": "YulCase",
"src": "3621:441:0",
"value": {
"kind": "number",
"nativeSrc": "3626:1:0",
"nodeType": "YulLiteral",
"src": "3626:1:0",
"type": "",
"value": "0"
}
},
{
"body": {
"nativeSrc": "4143:480:0",
"nodeType": "YulBlock",
"src": "4143:480:0",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "4168:1:0",
"nodeType": "YulLiteral",
"src": "4168:1:0",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "4171:1:0",
"nodeType": "YulLiteral",
"src": "4171:1:0",
"type": "",
"value": "0"
},
{
"arguments": [],
"functionName": {
"name": "returndatasize",
"nativeSrc": "4174:14:0",
"nodeType": "YulIdentifier",
"src": "4174:14:0"
},
"nativeSrc": "4174:16:0",
"nodeType": "YulFunctionCall",
"src": "4174:16:0"
}
],
"functionName": {
"name": "returndatacopy",
"nativeSrc": "4153:14:0",
"nodeType": "YulIdentifier",
"src": "4153:14:0"
},
"nativeSrc": "4153:38:0",
"nodeType": "YulFunctionCall",
"src": "4153:38:0"
},
"nativeSrc": "4153:38:0",
"nodeType": "YulExpressionStatement",
"src": "4153:38:0"
},
{
"nativeSrc": "4580:35:0",
"nodeType": "YulAssignment",
"src": "4580:35:0",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nativeSrc": "4611:1:0",
"nodeType": "YulLiteral",
"src": "4611:1:0",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "4605:5:0",
"nodeType": "YulIdentifier",
"src": "4605:5:0"
},
"nativeSrc": "4605:8:0",
"nodeType": "YulFunctionCall",
"src": "4605:8:0"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "4598:6:0",
"nodeType": "YulIdentifier",
"src": "4598:6:0"
},
"nativeSrc": "4598:16:0",
"nodeType": "YulFunctionCall",
"src": "4598:16:0"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "4591:6:0",
"nodeType": "YulIdentifier",
"src": "4591:6:0"
},
"nativeSrc": "4591:24:0",
"nodeType": "YulFunctionCall",
"src": "4591:24:0"
},
"variableNames": [
{
"name": "success",
"nativeSrc": "4580:7:0",
"nodeType": "YulIdentifier",
"src": "4580:7:0"
}
]
}
]
},
"nativeSrc": "4135:488:0",
"nodeType": "YulCase",
"src": "4135:488:0",
"value": {
"kind": "number",
"nativeSrc": "4140:2:0",
"nodeType": "YulLiteral",
"src": "4140:2:0",
"type": "",
"value": "32"
}
},
{
"body": {
"nativeSrc": "4638:74:0",
"nodeType": "YulBlock",
"src": "4638:74:0",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "4666:2:0",
"nodeType": "YulLiteral",
"src": "4666:2:0",
"type": "",
"value": "31"
},
{
"hexValue": "475076323a206d616c666f726d6564207472616e7366657220726573756c74",
"kind": "string",
"nativeSrc": "4670:33:0",
"nodeType": "YulLiteral",
"src": "4670:33:0",
"type": "",
"value": "GPv2: malformed transfer result"
}
],
"functionName": {
"name": "revertWithMessage",
"nativeSrc": "4648:17:0",
"nodeType": "YulIdentifier",
"src": "4648:17:0"
},
"nativeSrc": "4648:56:0",
"nodeType": "YulFunctionCall",
"src": "4648:56:0"
},
"nativeSrc": "4648:56:0",
"nodeType": "YulExpressionStatement",
"src": "4648:56:0"
}
]
},
"nativeSrc": "4630:82:0",
"nodeType": "YulCase",
"src": "4630:82:0",
"value": "default"
}
],
"expression": {
"arguments": [],
"functionName": {
"name": "returndatasize",
"nativeSrc": "3545:14:0",
"nodeType": "YulIdentifier",
"src": "3545:14:0"
},
"nativeSrc": "3545:16:0",
"nodeType": "YulFunctionCall",
"src": "3545:16:0"
},
"nativeSrc": "3538:1174:0",
"nodeType": "YulSwitch",
"src": "3538:1174:0"
}
]
},
"evmVersion": "cancun",
"externalReferences": [
{
"declaration": 65,
"isOffset": false,
"isSlot": false,
"src": "4042:7:0",
"valueSize": 1
},
{
"declaration": 65,
"isOffset": false,
"isSlot": false,
"src": "4580:7:0",
"valueSize": 1
},
{
"declaration": 62,
"isOffset": false,
"isSlot": false,
"src": "3957:5:0",
"valueSize": 1
}
],
"id": 67,
"nodeType": "InlineAssembly",
"src": "2732:1986:0"
}
]
},
"documentation": {
"id": 59,
"nodeType": "StructuredDocumentation",
"src": "2012:183:0",
"text": "@dev Verifies that the last return was a successful `transfer*` call.\n This is done by checking that the return data is either empty, or\n is a valid ABI encoded boolean."
},
"id": 69,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "getLastTransferResult",
"nameLocation": "2207:21:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 63,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 62,
"mutability": "mutable",
"name": "token",
"nameLocation": "2236:5:0",
"nodeType": "VariableDeclaration",
"scope": 69,
"src": "2229:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
},
"typeName": {
"id": 61,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 60,
"name": "IERC20",
"nameLocations": [
"2229:6:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "2229:6:0"
},
"referencedDeclaration": 174,
"src": "2229:6:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"visibility": "internal"
}
],
"src": "2228:14:0"
},
"returnParameters": {
"id": 66,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 65,
"mutability": "mutable",
"name": "success",
"nameLocation": "2270:7:0",
"nodeType": "VariableDeclaration",
"scope": 69,
"src": "2265:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 64,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2265:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "2264:14:0"
},
"scope": 70,
"src": "2198:2524:0",
"stateMutability": "view",
"virtual": false,
"visibility": "private"
}
],
"scope": 71,
"src": "293:4431:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "46:4679:0"
},
"id": 0
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol",
"exportedSymbols": {
"Context": [
96
]
},
"id": 97,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 72,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:1"
},
{
"abstract": true,
"baseContracts": [],
"canonicalName": "Context",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 96,
"linearizedBaseContracts": [
96
],
"name": "Context",
"nameLocation": "575:7:1",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 83,
"nodeType": "Block",
"src": "657:37:1",
"statements": [
{
"expression": {
"arguments": [
{
"expression": {
"id": 79,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "678:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 80,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "682:6:1",
"memberName": "sender",
"nodeType": "MemberAccess",
"src": "678:10:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 78,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "670:8:1",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_payable_$",
"typeString": "type(address payable)"
},
"typeName": {
"id": 77,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "670:8:1",
"stateMutability": "payable",
"typeDescriptions": {}
}
},
"id": 81,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "670:19:1",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"functionReturnParameters": 76,
"id": 82,
"nodeType": "Return",
"src": "663:26:1"
}
]
},
"id": 84,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_msgSender",
"nameLocation": "596:10:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 73,
"nodeType": "ParameterList",
"parameters": [],
"src": "606:2:1"
},
"returnParameters": {
"id": 76,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 75,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 84,
"src": "640:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
"typeName": {
"id": 74,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "640:15:1",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"visibility": "internal"
}
],
"src": "639:17:1"
},
"scope": 96,
"src": "587:107:1",
"stateMutability": "view",
"virtual": true,
"visibility": "internal"
},
{
"body": {
"id": 94,
"nodeType": "Block",
"src": "763:155:1",
"statements": [
{
"expression": {
"id": 89,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "769:4:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Context_$96",
"typeString": "contract Context"
}
},
"id": 90,
"nodeType": "ExpressionStatement",
"src": "769:4:1"
},
{
"expression": {
"expression": {
"id": 91,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "905:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 92,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "909:4:1",
"memberName": "data",
"nodeType": "MemberAccess",
"src": "905:8:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes calldata"
}
},
"functionReturnParameters": 88,
"id": 93,
"nodeType": "Return",
"src": "898:15:1"
}
]
},
"id": 95,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_msgData",
"nameLocation": "707:8:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 85,
"nodeType": "ParameterList",
"parameters": [],
"src": "715:2:1"
},
"returnParameters": {
"id": 88,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 87,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 95,
"src": "749:12:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 86,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "749:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "748:14:1"
},
"scope": 96,
"src": "698:220:1",
"stateMutability": "view",
"virtual": true,
"visibility": "internal"
}
],
"scope": 97,
"src": "557:363:1",
"usedErrors": [],
"usedEvents": []
}
],
"src": "32:889:1"
},
"id": 1
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"exportedSymbols": {
"IERC20": [
174
]
},
"id": 175,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 98,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:2"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IERC20",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 99,
"nodeType": "StructuredDocumentation",
"src": "62:70:2",
"text": " @dev Interface of the ERC20 standard as defined in the EIP."
},
"fullyImplemented": false,
"id": 174,
"linearizedBaseContracts": [
174
],
"name": "IERC20",
"nameLocation": "143:6:2",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 100,
"nodeType": "StructuredDocumentation",
"src": "154:62:2",
"text": " @dev Returns the amount of tokens in existence."
},
"functionSelector": "18160ddd",
"id": 105,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalSupply",
"nameLocation": "228:11:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 101,
"nodeType": "ParameterList",
"parameters": [],
"src": "239:2:2"
},
"returnParameters": {
"id": 104,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 103,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 105,
"src": "265:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 102,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "265:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "264:9:2"
},
"scope": 174,
"src": "219:55:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 106,
"nodeType": "StructuredDocumentation",
"src": "278:68:2",
"text": " @dev Returns the amount of tokens owned by `account`."
},
"functionSelector": "70a08231",
"id": 113,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nameLocation": "358:9:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 109,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 108,
"mutability": "mutable",
"name": "account",
"nameLocation": "376:7:2",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "368:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 107,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "368:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "367:17:2"
},
"returnParameters": {
"id": 112,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 111,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "408:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 110,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "408:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "407:9:2"
},
"scope": 174,
"src": "349:68:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 114,
"nodeType": "StructuredDocumentation",
"src": "421:197:2",
"text": " @dev Moves `amount` tokens from the caller's account to `recipient`.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event."
},
"functionSelector": "a9059cbb",
"id": 123,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nameLocation": "630:8:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 119,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 116,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "647:9:2",
"nodeType": "VariableDeclaration",
"scope": 123,
"src": "639:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 115,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "639:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 118,
"mutability": "mutable",
"name": "amount",
"nameLocation": "666:6:2",
"nodeType": "VariableDeclaration",
"scope": 123,
"src": "658:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 117,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "658:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "638:35:2"
},
"returnParameters": {
"id": 122,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 121,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 123,
"src": "692:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 120,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "692:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "691:6:2"
},
"scope": 174,
"src": "621:77:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 124,
"nodeType": "StructuredDocumentation",
"src": "702:252:2",
"text": " @dev Returns the remaining number of tokens that `spender` will be\n allowed to spend on behalf of `owner` through {transferFrom}. This is\n zero by default.\n This value changes when {approve} or {transferFrom} are called."
},
"functionSelector": "dd62ed3e",
"id": 133,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allowance",
"nameLocation": "966:9:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 129,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 126,
"mutability": "mutable",
"name": "owner",
"nameLocation": "984:5:2",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "976:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 125,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "976:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 128,
"mutability": "mutable",
"name": "spender",
"nameLocation": "999:7:2",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "991:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 127,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "991:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "975:32:2"
},
"returnParameters": {
"id": 132,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 131,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "1031:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 130,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1031:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1030:9:2"
},
"scope": 174,
"src": "957:83:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 134,
"nodeType": "StructuredDocumentation",
"src": "1044:616:2",
"text": " @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n Returns a boolean value indicating whether the operation succeeded.\n IMPORTANT: Beware that changing an allowance with this method brings the risk\n that someone may use both the old and the new allowance by unfortunate\n transaction ordering. One possible solution to mitigate this race\n condition is to first reduce the spender's allowance to 0 and set the\n desired value afterwards:\n https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n Emits an {Approval} event."
},
"functionSelector": "095ea7b3",
"id": 143,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nameLocation": "1672:7:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 139,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 136,
"mutability": "mutable",
"name": "spender",
"nameLocation": "1688:7:2",
"nodeType": "VariableDeclaration",
"scope": 143,
"src": "1680:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 135,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1680:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 138,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1705:6:2",
"nodeType": "VariableDeclaration",
"scope": 143,
"src": "1697:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 137,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1697:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1679:33:2"
},
"returnParameters": {
"id": 142,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 141,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 143,
"src": "1731:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 140,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1731:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1730:6:2"
},
"scope": 174,
"src": "1663:74:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 144,
"nodeType": "StructuredDocumentation",
"src": "1741:280:2",
"text": " @dev Moves `amount` tokens from `sender` to `recipient` using the\n allowance mechanism. `amount` is then deducted from the caller's\n allowance.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event."
},
"functionSelector": "23b872dd",
"id": 155,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferFrom",
"nameLocation": "2033:12:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 151,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 146,
"mutability": "mutable",
"name": "sender",
"nameLocation": "2054:6:2",
"nodeType": "VariableDeclaration",
"scope": 155,
"src": "2046:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 145,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2046:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 148,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "2070:9:2",
"nodeType": "VariableDeclaration",
"scope": 155,
"src": "2062:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 147,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2062:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 150,
"mutability": "mutable",
"name": "amount",
"nameLocation": "2089:6:2",
"nodeType": "VariableDeclaration",
"scope": 155,
"src": "2081:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 149,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2081:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2045:51:2"
},
"returnParameters": {
"id": 154,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 153,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 155,
"src": "2115:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 152,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2115:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "2114:6:2"
},
"scope": 174,
"src": "2024:97:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"anonymous": false,
"documentation": {
"id": 156,
"nodeType": "StructuredDocumentation",
"src": "2125:148:2",
"text": " @dev Emitted when `value` tokens are moved from one account (`from`) to\n another (`to`).\n Note that `value` may be zero."
},
"eventSelector": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"id": 164,
"name": "Transfer",
"nameLocation": "2282:8:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 163,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 158,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "2307:4:2",
"nodeType": "VariableDeclaration",
"scope": 164,
"src": "2291:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 157,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2291:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 160,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nameLocation": "2329:2:2",
"nodeType": "VariableDeclaration",
"scope": 164,
"src": "2313:18:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 159,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2313:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 162,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nameLocation": "2341:5:2",
"nodeType": "VariableDeclaration",
"scope": 164,
"src": "2333:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 161,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2333:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2290:57:2"
},
"src": "2276:72:2"
},
{
"anonymous": false,
"documentation": {
"id": 165,
"nodeType": "StructuredDocumentation",
"src": "2352:142:2",
"text": " @dev Emitted when the allowance of a `spender` for an `owner` is set by\n a call to {approve}. `value` is the new allowance."
},
"eventSelector": "8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"id": 173,
"name": "Approval",
"nameLocation": "2503:8:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 172,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 167,
"indexed": true,
"mutability": "mutable",
"name": "owner",
"nameLocation": "2528:5:2",
"nodeType": "VariableDeclaration",
"scope": 173,
"src": "2512:21:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 166,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2512:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 169,
"indexed": true,
"mutability": "mutable",
"name": "spender",
"nameLocation": "2551:7:2",
"nodeType": "VariableDeclaration",
"scope": 173,
"src": "2535:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 168,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2535:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 171,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nameLocation": "2568:5:2",
"nodeType": "VariableDeclaration",
"scope": 173,
"src": "2560:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 170,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2560:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2511:63:2"
},
"src": "2497:78:2"
}
],
"scope": 175,
"src": "133:2444:2",
"usedErrors": [],
"usedEvents": [
164,
173
]
}
],
"src": "37:2541:2"
},
"id": 2
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"exportedSymbols": {
"IERC20": [
174
],
"IERC20Detailed": [
196
]
},
"id": 197,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 176,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:3"
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"file": "./IERC20.sol",
"id": 178,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 197,
"sourceUnit": 175,
"src": "62:36:3",
"symbolAliases": [
{
"foreign": {
"id": 177,
"name": "IERC20",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 174,
"src": "70:6:3",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 179,
"name": "IERC20",
"nameLocations": [
"128:6:3"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "128:6:3"
},
"id": 180,
"nodeType": "InheritanceSpecifier",
"src": "128:6:3"
}
],
"canonicalName": "IERC20Detailed",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 196,
"linearizedBaseContracts": [
196,
174
],
"name": "IERC20Detailed",
"nameLocation": "110:14:3",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "06fdde03",
"id": 185,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nameLocation": "148:4:3",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 181,
"nodeType": "ParameterList",
"parameters": [],
"src": "152:2:3"
},
"returnParameters": {
"id": 184,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 183,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 185,
"src": "178:13:3",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 182,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "178:6:3",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "177:15:3"
},
"scope": 196,
"src": "139:54:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "95d89b41",
"id": 190,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nameLocation": "206:6:3",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 186,
"nodeType": "ParameterList",
"parameters": [],
"src": "212:2:3"
},
"returnParameters": {
"id": 189,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 188,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 190,
"src": "238:13:3",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 187,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "238:6:3",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "237:15:3"
},
"scope": 196,
"src": "197:56:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "313ce567",
"id": 195,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nameLocation": "266:8:3",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 191,
"nodeType": "ParameterList",
"parameters": [],
"src": "274:2:3"
},
"returnParameters": {
"id": 194,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 193,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 195,
"src": "300:5:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 192,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "300:5:3",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "299:7:3"
},
"scope": 196,
"src": "257:50:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 197,
"src": "100:209:3",
"usedErrors": [],
"usedEvents": [
164,
173
]
}
],
"src": "37:273:3"
},
"id": 3
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"exportedSymbols": {
"Context": [
96
],
"Ownable": [
305
]
},
"id": 306,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 198,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "33:23:4"
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Context.sol",
"file": "./Context.sol",
"id": 199,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 306,
"sourceUnit": 97,
"src": "58:23:4",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 201,
"name": "Context",
"nameLocations": [
"598:7:4"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 96,
"src": "598:7:4"
},
"id": 202,
"nodeType": "InheritanceSpecifier",
"src": "598:7:4"
}
],
"canonicalName": "Ownable",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 200,
"nodeType": "StructuredDocumentation",
"src": "83:494:4",
"text": " @dev Contract module which provides a basic access control mechanism, where\n there is an account (an owner) that can be granted exclusive access to\n specific functions.\n By default, the owner account will be the one that deploys the contract. This\n can later be changed with {transferOwnership}.\n This module is used through inheritance. It will make available the modifier\n `onlyOwner`, which can be applied to your functions to restrict their use to\n the owner."
},
"fullyImplemented": true,
"id": 305,
"linearizedBaseContracts": [
305,
96
],
"name": "Ownable",
"nameLocation": "587:7:4",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 204,
"mutability": "mutable",
"name": "_owner",
"nameLocation": "626:6:4",
"nodeType": "VariableDeclaration",
"scope": 305,
"src": "610:22:4",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 203,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "610:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "private"
},
{
"anonymous": false,
"eventSelector": "8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"id": 210,
"name": "OwnershipTransferred",
"nameLocation": "643:20:4",
"nodeType": "EventDefinition",
"parameters": {
"id": 209,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 206,
"indexed": true,
"mutability": "mutable",
"name": "previousOwner",
"nameLocation": "680:13:4",
"nodeType": "VariableDeclaration",
"scope": 210,
"src": "664:29:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 205,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "664:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 208,
"indexed": true,
"mutability": "mutable",
"name": "newOwner",
"nameLocation": "711:8:4",
"nodeType": "VariableDeclaration",
"scope": 210,
"src": "695:24:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 207,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "695:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "663:57:4"
},
"src": "637:84:4"
},
{
"body": {
"id": 231,
"nodeType": "Block",
"src": "829:121:4",
"statements": [
{
"assignments": [
215
],
"declarations": [
{
"constant": false,
"id": 215,
"mutability": "mutable",
"name": "msgSender",
"nameLocation": "843:9:4",
"nodeType": "VariableDeclaration",
"scope": 231,
"src": "835:17:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 214,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "835:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"id": 218,
"initialValue": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 216,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 84,
"src": "855:10:4",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$",
"typeString": "function () view returns (address payable)"
}
},
"id": 217,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "855:12:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "835:32:4"
},
{
"expression": {
"id": 221,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 219,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "873:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 220,
"name": "msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 215,
"src": "882:9:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "873:18:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 222,
"nodeType": "ExpressionStatement",
"src": "873:18:4"
},
{
"eventCall": {
"arguments": [
{
"arguments": [
{
"hexValue": "30",
"id": 226,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "931:1:4",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 225,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "923:7:4",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 224,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "923:7:4",
"typeDescriptions": {}
}
},
"id": 227,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "923:10:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 228,
"name": "msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 215,
"src": "935:9:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 223,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 210,
"src": "902:20:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 229,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "902:43:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 230,
"nodeType": "EmitStatement",
"src": "897:48:4"
}
]
},
"documentation": {
"id": 211,
"nodeType": "StructuredDocumentation",
"src": "725:87:4",
"text": " @dev Initializes the contract setting the deployer as the initial owner."
},
"id": 232,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 212,
"nodeType": "ParameterList",
"parameters": [],
"src": "826:2:4"
},
"returnParameters": {
"id": 213,
"nodeType": "ParameterList",
"parameters": [],
"src": "829:0:4"
},
"scope": 305,
"src": "815:135:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 240,
"nodeType": "Block",
"src": "1065:24:4",
"statements": [
{
"expression": {
"id": 238,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "1078:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"functionReturnParameters": 237,
"id": 239,
"nodeType": "Return",
"src": "1071:13:4"
}
]
},
"documentation": {
"id": 233,
"nodeType": "StructuredDocumentation",
"src": "954:61:4",
"text": " @dev Returns the address of the current owner."
},
"functionSelector": "8da5cb5b",
"id": 241,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "owner",
"nameLocation": "1027:5:4",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 234,
"nodeType": "ParameterList",
"parameters": [],
"src": "1032:2:4"
},
"returnParameters": {
"id": 237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 236,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 241,
"src": "1056:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 235,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1056:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1055:9:4"
},
"scope": 305,
"src": "1018:71:4",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 253,
"nodeType": "Block",
"src": "1190:85:4",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 248,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 245,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "1204:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 246,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 84,
"src": "1214:10:4",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$",
"typeString": "function () view returns (address payable)"
}
},
"id": 247,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1214:12:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"src": "1204:22:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572",
"id": 249,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1228:34:4",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
"typeString": "literal_string \"Ownable: caller is not the owner\""
},
"value": "Ownable: caller is not the owner"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
"typeString": "literal_string \"Ownable: caller is not the owner\""
}
],
"id": 244,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1196:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 250,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1196:67:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 251,
"nodeType": "ExpressionStatement",
"src": "1196:67:4"
},
{
"id": 252,
"nodeType": "PlaceholderStatement",
"src": "1269:1:4"
}
]
},
"documentation": {
"id": 242,
"nodeType": "StructuredDocumentation",
"src": "1093:73:4",
"text": " @dev Throws if called by any account other than the owner."
},
"id": 254,
"name": "onlyOwner",
"nameLocation": "1178:9:4",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 243,
"nodeType": "ParameterList",
"parameters": [],
"src": "1187:2:4"
},
"src": "1169:106:4",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 275,
"nodeType": "Block",
"src": "1655:81:4",
"statements": [
{
"eventCall": {
"arguments": [
{
"id": 261,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "1687:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"arguments": [
{
"hexValue": "30",
"id": 264,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1703:1:4",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 263,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1695:7:4",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 262,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1695:7:4",
"typeDescriptions": {}
}
},
"id": 265,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1695:10:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 260,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 210,
"src": "1666:20:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 266,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1666:40:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 267,
"nodeType": "EmitStatement",
"src": "1661:45:4"
},
{
"expression": {
"id": 273,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 268,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "1712:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"arguments": [
{
"hexValue": "30",
"id": 271,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1729:1:4",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 270,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1721:7:4",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 269,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1721:7:4",
"typeDescriptions": {}
}
},
"id": 272,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1721:10:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1712:19:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 274,
"nodeType": "ExpressionStatement",
"src": "1712:19:4"
}
]
},
"documentation": {
"id": 255,
"nodeType": "StructuredDocumentation",
"src": "1279:319:4",
"text": " @dev Leaves the contract without owner. It will not be possible to call\n `onlyOwner` functions anymore. Can only be called by the current owner.\n NOTE: Renouncing ownership will leave the contract without an owner,\n thereby removing any functionality that is only available to the owner."
},
"functionSelector": "715018a6",
"id": 276,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 258,
"kind": "modifierInvocation",
"modifierName": {
"id": 257,
"name": "onlyOwner",
"nameLocations": [
"1645:9:4"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 254,
"src": "1645:9:4"
},
"nodeType": "ModifierInvocation",
"src": "1645:9:4"
}
],
"name": "renounceOwnership",
"nameLocation": "1610:17:4",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 256,
"nodeType": "ParameterList",
"parameters": [],
"src": "1627:2:4"
},
"returnParameters": {
"id": 259,
"nodeType": "ParameterList",
"parameters": [],
"src": "1655:0:4"
},
"scope": 305,
"src": "1601:135:4",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 303,
"nodeType": "Block",
"src": "1945:156:4",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 290,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 285,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 279,
"src": "1959:8:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"arguments": [
{
"hexValue": "30",
"id": 288,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1979:1:4",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 287,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1971:7:4",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 286,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1971:7:4",
"typeDescriptions": {}
}
},
"id": 289,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1971:10:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1959:22:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373",
"id": 291,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1983:40:4",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
"typeString": "literal_string \"Ownable: new owner is the zero address\""
},
"value": "Ownable: new owner is the zero address"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
"typeString": "literal_string \"Ownable: new owner is the zero address\""
}
],
"id": 284,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1951:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 292,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1951:73:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 293,
"nodeType": "ExpressionStatement",
"src": "1951:73:4"
},
{
"eventCall": {
"arguments": [
{
"id": 295,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "2056:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 296,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 279,
"src": "2064:8:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 294,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 210,
"src": "2035:20:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 297,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2035:38:4",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 298,
"nodeType": "EmitStatement",
"src": "2030:43:4"
},
{
"expression": {
"id": 301,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 299,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 204,
"src": "2079:6:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 300,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 279,
"src": "2088:8:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2079:17:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 302,
"nodeType": "ExpressionStatement",
"src": "2079:17:4"
}
]
},
"documentation": {
"id": 277,
"nodeType": "StructuredDocumentation",
"src": "1740:132:4",
"text": " @dev Transfers ownership of the contract to a new account (`newOwner`).\n Can only be called by the current owner."
},
"functionSelector": "f2fde38b",
"id": 304,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 282,
"kind": "modifierInvocation",
"modifierName": {
"id": 281,
"name": "onlyOwner",
"nameLocations": [
"1935:9:4"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 254,
"src": "1935:9:4"
},
"nodeType": "ModifierInvocation",
"src": "1935:9:4"
}
],
"name": "transferOwnership",
"nameLocation": "1884:17:4",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 280,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 279,
"mutability": "mutable",
"name": "newOwner",
"nameLocation": "1910:8:4",
"nodeType": "VariableDeclaration",
"scope": 304,
"src": "1902:16:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 278,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1902:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1901:18:4"
},
"returnParameters": {
"id": 283,
"nodeType": "ParameterList",
"parameters": [],
"src": "1945:0:4"
},
"scope": 305,
"src": "1875:226:4",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "public"
}
],
"scope": 306,
"src": "578:1525:4",
"usedErrors": [],
"usedEvents": [
210
]
}
],
"src": "33:2071:4"
},
"id": 4
},
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"exportedSymbols": {
"SafeMath": [
425
]
},
"id": 426,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 307,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:5"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "SafeMath",
"contractDependencies": [],
"contractKind": "library",
"documentation": {
"id": 308,
"nodeType": "StructuredDocumentation",
"src": "62:178:5",
"text": "@title Optimized overflow and underflow safe math operations\n @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost"
},
"fullyImplemented": true,
"id": 425,
"linearizedBaseContracts": [
425
],
"name": "SafeMath",
"nameLocation": "248:8:5",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 330,
"nodeType": "Block",
"src": "479:60:5",
"statements": [
{
"id": 329,
"nodeType": "UncheckedBlock",
"src": "485:50:5",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 326,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"id": 323,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 319,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 316,
"src": "512:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 322,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 320,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 311,
"src": "516:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"id": 321,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 313,
"src": "520:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "516:5:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "512:9:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 324,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "511:11:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"id": 325,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 311,
"src": "526:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "511:16:5",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 318,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "503:7:5",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 327,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "503:25:5",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 328,
"nodeType": "ExpressionStatement",
"src": "503:25:5"
}
]
}
]
},
"documentation": {
"id": 309,
"nodeType": "StructuredDocumentation",
"src": "261:146:5",
"text": "@notice Returns x + y, reverts if sum overflows uint256\n @param x The augend\n @param y The addend\n @return z The sum of x and y"
},
"id": 331,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "add",
"nameLocation": "419:3:5",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 314,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 311,
"mutability": "mutable",
"name": "x",
"nameLocation": "431:1:5",
"nodeType": "VariableDeclaration",
"scope": 331,
"src": "423:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 310,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "423:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 313,
"mutability": "mutable",
"name": "y",
"nameLocation": "442:1:5",
"nodeType": "VariableDeclaration",
"scope": 331,
"src": "434:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 312,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "434:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "422:22:5"
},
"returnParameters": {
"id": 317,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 316,
"mutability": "mutable",
"name": "z",
"nameLocation": "476:1:5",
"nodeType": "VariableDeclaration",
"scope": 331,
"src": "468:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 315,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "468:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "467:11:5"
},
"scope": 425,
"src": "410:129:5",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 353,
"nodeType": "Block",
"src": "762:60:5",
"statements": [
{
"id": 352,
"nodeType": "UncheckedBlock",
"src": "768:50:5",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 349,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"id": 346,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 342,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 339,
"src": "795:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 345,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 343,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 334,
"src": "799:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"id": 344,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 336,
"src": "803:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "799:5:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "795:9:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 347,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "794:11:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"id": 348,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 334,
"src": "809:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "794:16:5",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 341,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "786:7:5",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 350,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "786:25:5",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 351,
"nodeType": "ExpressionStatement",
"src": "786:25:5"
}
]
}
]
},
"documentation": {
"id": 332,
"nodeType": "StructuredDocumentation",
"src": "543:147:5",
"text": "@notice Returns x - y, reverts if underflows\n @param x The minuend\n @param y The subtrahend\n @return z The difference of x and y"
},
"id": 354,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "sub",
"nameLocation": "702:3:5",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 337,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 334,
"mutability": "mutable",
"name": "x",
"nameLocation": "714:1:5",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "706:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 333,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "706:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 336,
"mutability": "mutable",
"name": "y",
"nameLocation": "725:1:5",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "717:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 335,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "717:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "705:22:5"
},
"returnParameters": {
"id": 340,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 339,
"mutability": "mutable",
"name": "z",
"nameLocation": "759:1:5",
"nodeType": "VariableDeclaration",
"scope": 354,
"src": "751:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 338,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "751:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "750:11:5"
},
"scope": 425,
"src": "693:129:5",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 379,
"nodeType": "Block",
"src": "1103:69:5",
"statements": [
{
"id": 378,
"nodeType": "UncheckedBlock",
"src": "1109:59:5",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 374,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"id": 371,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 367,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 364,
"src": "1136:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 370,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 368,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 357,
"src": "1140:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"id": 369,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 359,
"src": "1144:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1140:5:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1136:9:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 372,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "1135:11:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"id": 373,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 357,
"src": "1150:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1135:16:5",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"id": 375,
"name": "message",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 361,
"src": "1153:7:5",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 366,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1127:7:5",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 376,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1127:34:5",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 377,
"nodeType": "ExpressionStatement",
"src": "1127:34:5"
}
]
}
]
},
"documentation": {
"id": 355,
"nodeType": "StructuredDocumentation",
"src": "826:182:5",
"text": "@notice Returns x - y, reverts if underflows\n @param x The minuend\n @param y The subtrahend\n @param message The error msg\n @return z The difference of x and y"
},
"id": 380,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "sub",
"nameLocation": "1020:3:5",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 362,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 357,
"mutability": "mutable",
"name": "x",
"nameLocation": "1032:1:5",
"nodeType": "VariableDeclaration",
"scope": 380,
"src": "1024:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 356,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1024:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 359,
"mutability": "mutable",
"name": "y",
"nameLocation": "1043:1:5",
"nodeType": "VariableDeclaration",
"scope": 380,
"src": "1035:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 358,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1035:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 361,
"mutability": "mutable",
"name": "message",
"nameLocation": "1060:7:5",
"nodeType": "VariableDeclaration",
"scope": 380,
"src": "1046:21:5",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 360,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1046:6:5",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "1023:45:5"
},
"returnParameters": {
"id": 365,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 364,
"mutability": "mutable",
"name": "z",
"nameLocation": "1100:1:5",
"nodeType": "VariableDeclaration",
"scope": 380,
"src": "1092:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 363,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1092:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1091:11:5"
},
"scope": 425,
"src": "1011:161:5",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 408,
"nodeType": "Block",
"src": "1396:74:5",
"statements": [
{
"id": 407,
"nodeType": "UncheckedBlock",
"src": "1402:64:5",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 404,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 393,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 391,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 383,
"src": "1428:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"hexValue": "30",
"id": 392,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1433:1:5",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1428:6:5",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 403,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 401,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"id": 398,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 394,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 388,
"src": "1439:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 397,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 395,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 383,
"src": "1443:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"id": 396,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 385,
"src": "1447:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1443:5:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1439:9:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"id": 399,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "1438:11:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"id": 400,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 383,
"src": "1452:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1438:15:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"id": 402,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 385,
"src": "1457:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1438:20:5",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "1428:30:5",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 390,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1420:7:5",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 405,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1420:39:5",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 406,
"nodeType": "ExpressionStatement",
"src": "1420:39:5"
}
]
}
]
},
"documentation": {
"id": 381,
"nodeType": "StructuredDocumentation",
"src": "1176:148:5",
"text": "@notice Returns x * y, reverts if overflows\n @param x The multiplicand\n @param y The multiplier\n @return z The product of x and y"
},
"id": 409,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "mul",
"nameLocation": "1336:3:5",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 386,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 383,
"mutability": "mutable",
"name": "x",
"nameLocation": "1348:1:5",
"nodeType": "VariableDeclaration",
"scope": 409,
"src": "1340:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 382,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1340:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 385,
"mutability": "mutable",
"name": "y",
"nameLocation": "1359:1:5",
"nodeType": "VariableDeclaration",
"scope": 409,
"src": "1351:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 384,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1351:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1339:22:5"
},
"returnParameters": {
"id": 389,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 388,
"mutability": "mutable",
"name": "z",
"nameLocation": "1393:1:5",
"nodeType": "VariableDeclaration",
"scope": 409,
"src": "1385:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 387,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1385:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1384:11:5"
},
"scope": 425,
"src": "1327:143:5",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 423,
"nodeType": "Block",
"src": "1747:23:5",
"statements": [
{
"expression": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 421,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 419,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 412,
"src": "1760:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"id": 420,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 414,
"src": "1764:1:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1760:5:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 418,
"id": 422,
"nodeType": "Return",
"src": "1753:12:5"
}
]
},
"documentation": {
"id": 410,
"nodeType": "StructuredDocumentation",
"src": "1474:201:5",
"text": "@notice Returns x / y, reverts if overflows - no specific check, solidity reverts on division by 0\n @param x The numerator\n @param y The denominator\n @return z The product of x and y"
},
"id": 424,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "div",
"nameLocation": "1687:3:5",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 415,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 412,
"mutability": "mutable",
"name": "x",
"nameLocation": "1699:1:5",
"nodeType": "VariableDeclaration",
"scope": 424,
"src": "1691:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 411,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1691:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 414,
"mutability": "mutable",
"name": "y",
"nameLocation": "1710:1:5",
"nodeType": "VariableDeclaration",
"scope": 424,
"src": "1702:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 413,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1702:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1690:22:5"
},
"returnParameters": {
"id": 418,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 417,
"mutability": "mutable",
"name": "z",
"nameLocation": "1744:1:5",
"nodeType": "VariableDeclaration",
"scope": 424,
"src": "1736:9:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 416,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1736:7:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1735:11:5"
},
"scope": 425,
"src": "1678:92:5",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
}
],
"scope": 426,
"src": "240:1532:5",
"usedErrors": [],
"usedEvents": []
}
],
"src": "37:1736:5"
},
"id": 5
},
"@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"exportedSymbols": {
"FlashLoanSimpleReceiverBase": [
464
],
"IFlashLoanSimpleReceiver": [
500
],
"IPool": [
1165
],
"IPoolAddressesProvider": [
1374
]
},
"id": 465,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 427,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:6"
},
{
"absolutePath": "@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
"file": "../interfaces/IFlashLoanSimpleReceiver.sol",
"id": 429,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 465,
"sourceUnit": 501,
"src": "62:84:6",
"symbolAliases": [
{
"foreign": {
"id": 428,
"name": "IFlashLoanSimpleReceiver",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 500,
"src": "70:24:6",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"file": "../../interfaces/IPoolAddressesProvider.sol",
"id": 431,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 465,
"sourceUnit": 1375,
"src": "147:83:6",
"symbolAliases": [
{
"foreign": {
"id": 430,
"name": "IPoolAddressesProvider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1374,
"src": "155:22:6",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPool.sol",
"file": "../../interfaces/IPool.sol",
"id": 433,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 465,
"sourceUnit": 1166,
"src": "231:49:6",
"symbolAliases": [
{
"foreign": {
"id": 432,
"name": "IPool",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1165,
"src": "239:5:6",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 435,
"name": "IFlashLoanSimpleReceiver",
"nameLocations": [
"460:24:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 500,
"src": "460:24:6"
},
"id": 436,
"nodeType": "InheritanceSpecifier",
"src": "460:24:6"
}
],
"canonicalName": "FlashLoanSimpleReceiverBase",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 434,
"nodeType": "StructuredDocumentation",
"src": "282:128:6",
"text": " @title FlashLoanSimpleReceiverBase\n @author Aave\n @notice Base contract to develop a flashloan-receiver contract."
},
"fullyImplemented": false,
"id": 464,
"linearizedBaseContracts": [
464,
500
],
"name": "FlashLoanSimpleReceiverBase",
"nameLocation": "429:27:6",
"nodeType": "ContractDefinition",
"nodes": [
{
"baseFunctions": [
493
],
"constant": false,
"functionSelector": "0542975c",
"id": 440,
"mutability": "immutable",
"name": "ADDRESSES_PROVIDER",
"nameLocation": "538:18:6",
"nodeType": "VariableDeclaration",
"overrides": {
"id": 439,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "529:8:6"
},
"scope": 464,
"src": "489:67:6",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
},
"typeName": {
"id": 438,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 437,
"name": "IPoolAddressesProvider",
"nameLocations": [
"489:22:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1374,
"src": "489:22:6"
},
"referencedDeclaration": 1374,
"src": "489:22:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"visibility": "public"
},
{
"baseFunctions": [
499
],
"constant": false,
"functionSelector": "7535d246",
"id": 444,
"mutability": "immutable",
"name": "POOL",
"nameLocation": "592:4:6",
"nodeType": "VariableDeclaration",
"overrides": {
"id": 443,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "583:8:6"
},
"scope": 464,
"src": "560:36:6",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
},
"typeName": {
"id": 442,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 441,
"name": "IPool",
"nameLocations": [
"560:5:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1165,
"src": "560:5:6"
},
"referencedDeclaration": 1165,
"src": "560:5:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"visibility": "public"
},
{
"body": {
"id": 462,
"nodeType": "Block",
"src": "646:78:6",
"statements": [
{
"expression": {
"id": 452,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 450,
"name": "ADDRESSES_PROVIDER",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 440,
"src": "652:18:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 451,
"name": "provider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 447,
"src": "673:8:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"src": "652:29:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"id": 453,
"nodeType": "ExpressionStatement",
"src": "652:29:6"
},
{
"expression": {
"id": 460,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 454,
"name": "POOL",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 444,
"src": "687:4:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"id": 456,
"name": "provider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 447,
"src": "700:8:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"id": 457,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "709:7:6",
"memberName": "getPool",
"nodeType": "MemberAccess",
"referencedDeclaration": 1295,
"src": "700:16:6",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
"typeString": "function () view external returns (address)"
}
},
"id": 458,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "700:18:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 455,
"name": "IPool",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1165,
"src": "694:5:6",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IPool_$1165_$",
"typeString": "type(contract IPool)"
}
},
"id": 459,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "694:25:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"src": "687:32:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"id": 461,
"nodeType": "ExpressionStatement",
"src": "687:32:6"
}
]
},
"id": 463,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 448,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 447,
"mutability": "mutable",
"name": "provider",
"nameLocation": "636:8:6",
"nodeType": "VariableDeclaration",
"scope": 463,
"src": "613:31:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
},
"typeName": {
"id": 446,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 445,
"name": "IPoolAddressesProvider",
"nameLocations": [
"613:22:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1374,
"src": "613:22:6"
},
"referencedDeclaration": 1374,
"src": "613:22:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"visibility": "internal"
}
],
"src": "612:33:6"
},
"returnParameters": {
"id": 449,
"nodeType": "ParameterList",
"parameters": [],
"src": "646:0:6"
},
"scope": 464,
"src": "601:123:6",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
}
],
"scope": 465,
"src": "411:315:6",
"usedErrors": [],
"usedEvents": []
}
],
"src": "37:690:6"
},
"id": 6
},
"@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol",
"exportedSymbols": {
"IFlashLoanSimpleReceiver": [
500
],
"IPool": [
1165
],
"IPoolAddressesProvider": [
1374
]
},
"id": 501,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 466,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:7"
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"file": "../../interfaces/IPoolAddressesProvider.sol",
"id": 468,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 501,
"sourceUnit": 1375,
"src": "62:83:7",
"symbolAliases": [
{
"foreign": {
"id": 467,
"name": "IPoolAddressesProvider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1374,
"src": "70:22:7",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPool.sol",
"file": "../../interfaces/IPool.sol",
"id": 470,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 501,
"sourceUnit": 1166,
"src": "146:49:7",
"symbolAliases": [
{
"foreign": {
"id": 469,
"name": "IPool",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1165,
"src": "154:5:7",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IFlashLoanSimpleReceiver",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 471,
"nodeType": "StructuredDocumentation",
"src": "197:225:7",
"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": 500,
"linearizedBaseContracts": [
500
],
"name": "IFlashLoanSimpleReceiver",
"nameLocation": "433:24:7",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 472,
"nodeType": "StructuredDocumentation",
"src": "462:635:7",
"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": 487,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "executeOperation",
"nameLocation": "1109:16:7",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 483,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 474,
"mutability": "mutable",
"name": "asset",
"nameLocation": "1139:5:7",
"nodeType": "VariableDeclaration",
"scope": 487,
"src": "1131:13:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 473,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1131:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 476,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1158:6:7",
"nodeType": "VariableDeclaration",
"scope": 487,
"src": "1150:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 475,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1150:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 478,
"mutability": "mutable",
"name": "premium",
"nameLocation": "1178:7:7",
"nodeType": "VariableDeclaration",
"scope": 487,
"src": "1170:15:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 477,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1170:7:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 480,
"mutability": "mutable",
"name": "initiator",
"nameLocation": "1199:9:7",
"nodeType": "VariableDeclaration",
"scope": 487,
"src": "1191:17:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 479,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1191:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 482,
"mutability": "mutable",
"name": "params",
"nameLocation": "1229:6:7",
"nodeType": "VariableDeclaration",
"scope": 487,
"src": "1214:21:7",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 481,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1214:5:7",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "1125:114:7"
},
"returnParameters": {
"id": 486,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 485,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 487,
"src": "1258:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 484,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1258:4:7",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1257:6:7"
},
"scope": 500,
"src": "1100:164:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0542975c",
"id": 493,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "ADDRESSES_PROVIDER",
"nameLocation": "1277:18:7",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 488,
"nodeType": "ParameterList",
"parameters": [],
"src": "1295:2:7"
},
"returnParameters": {
"id": 492,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 491,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 493,
"src": "1321:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
},
"typeName": {
"id": 490,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 489,
"name": "IPoolAddressesProvider",
"nameLocations": [
"1321:22:7"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1374,
"src": "1321:22:7"
},
"referencedDeclaration": 1374,
"src": "1321:22:7",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"visibility": "internal"
}
],
"src": "1320:24:7"
},
"scope": 500,
"src": "1268:77:7",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "7535d246",
"id": 499,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "POOL",
"nameLocation": "1358:4:7",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 494,
"nodeType": "ParameterList",
"parameters": [],
"src": "1362:2:7"
},
"returnParameters": {
"id": 498,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 497,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 499,
"src": "1388:5:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
},
"typeName": {
"id": 496,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 495,
"name": "IPool",
"nameLocations": [
"1388:5:7"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1165,
"src": "1388:5:7"
},
"referencedDeclaration": 1165,
"src": "1388:5:7",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"visibility": "internal"
}
],
"src": "1387:7:7"
},
"scope": 500,
"src": "1349:46:7",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 501,
"src": "423:974:7",
"usedErrors": [],
"usedEvents": []
}
],
"src": "37:1361:7"
},
"id": 7
},
"@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"exportedSymbols": {
"IERC20": [
174
],
"IERC20WithPermit": [
526
]
},
"id": 527,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 502,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:8"
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"file": "../dependencies/openzeppelin/contracts/IERC20.sol",
"id": 504,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 527,
"sourceUnit": 175,
"src": "62:73:8",
"symbolAliases": [
{
"foreign": {
"id": 503,
"name": "IERC20",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 174,
"src": "70:6:8",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 506,
"name": "IERC20",
"nameLocations": [
"274:6:8"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "274:6:8"
},
"id": 507,
"nodeType": "InheritanceSpecifier",
"src": "274:6:8"
}
],
"canonicalName": "IERC20WithPermit",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 505,
"nodeType": "StructuredDocumentation",
"src": "137:106:8",
"text": " @title IERC20WithPermit\n @author Aave\n @notice Interface for the permit function (EIP-2612)"
},
"fullyImplemented": false,
"id": 526,
"linearizedBaseContracts": [
526,
174
],
"name": "IERC20WithPermit",
"nameLocation": "254:16:8",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 508,
"nodeType": "StructuredDocumentation",
"src": "285:494:8",
"text": " @notice Allow passing a signed message to approve spending\n @dev implements the permit function as for\n https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md\n @param owner The owner of the funds\n @param spender The spender\n @param value The amount\n @param deadline The deadline timestamp, type(uint256).max for max deadline\n @param v Signature param\n @param s Signature param\n @param r Signature param"
},
"functionSelector": "d505accf",
"id": 525,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "permit",
"nameLocation": "791:6:8",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 523,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 510,
"mutability": "mutable",
"name": "owner",
"nameLocation": "811:5:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "803:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 509,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "803:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 512,
"mutability": "mutable",
"name": "spender",
"nameLocation": "830:7:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "822:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 511,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "822:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 514,
"mutability": "mutable",
"name": "value",
"nameLocation": "851:5:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "843:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 513,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "843:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 516,
"mutability": "mutable",
"name": "deadline",
"nameLocation": "870:8:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "862:16:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 515,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "862:7:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 518,
"mutability": "mutable",
"name": "v",
"nameLocation": "890:1:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "884:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 517,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "884:5:8",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 520,
"mutability": "mutable",
"name": "r",
"nameLocation": "905:1:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "897:9:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 519,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "897:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 522,
"mutability": "mutable",
"name": "s",
"nameLocation": "920:1:8",
"nodeType": "VariableDeclaration",
"scope": 525,
"src": "912:9:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 521,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "912:7:8",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "797:128:8"
},
"returnParameters": {
"id": 524,
"nodeType": "ParameterList",
"parameters": [],
"src": "934:0:8"
},
"scope": 526,
"src": "782:153:8",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 527,
"src": "244:693:8",
"usedErrors": [],
"usedEvents": [
164,
173
]
}
],
"src": "37:901:8"
},
"id": 8
},
"@aave/core-v3/contracts/interfaces/IPool.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/interfaces/IPool.sol",
"exportedSymbols": {
"DataTypes": [
1750
],
"IPool": [
1165
],
"IPoolAddressesProvider": [
1374
]
},
"id": 1166,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 528,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:9"
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"file": "./IPoolAddressesProvider.sol",
"id": 530,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 1166,
"sourceUnit": 1375,
"src": "62:68:9",
"symbolAliases": [
{
"foreign": {
"id": 529,
"name": "IPoolAddressesProvider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1374,
"src": "70:22:9",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"file": "../protocol/libraries/types/DataTypes.sol",
"id": 532,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 1166,
"sourceUnit": 1751,
"src": "131:68:9",
"symbolAliases": [
{
"foreign": {
"id": 531,
"name": "DataTypes",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1750,
"src": "139:9:9",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IPool",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 533,
"nodeType": "StructuredDocumentation",
"src": "201:96:9",
"text": " @title IPool\n @author Aave\n @notice Defines the basic interface for an Aave Pool."
},
"fullyImplemented": false,
"id": 1165,
"linearizedBaseContracts": [
1165
],
"name": "IPool",
"nameLocation": "308:5:9",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 534,
"nodeType": "StructuredDocumentation",
"src": "318:349:9",
"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": 546,
"name": "MintUnbacked",
"nameLocation": "676:12:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 545,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 536,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "710:7:9",
"nodeType": "VariableDeclaration",
"scope": 546,
"src": "694:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 535,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "694:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 538,
"indexed": false,
"mutability": "mutable",
"name": "user",
"nameLocation": "731:4:9",
"nodeType": "VariableDeclaration",
"scope": 546,
"src": "723:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 537,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "723:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 540,
"indexed": true,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "757:10:9",
"nodeType": "VariableDeclaration",
"scope": 546,
"src": "741:26:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 539,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "741:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 542,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "781:6:9",
"nodeType": "VariableDeclaration",
"scope": 546,
"src": "773:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 541,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "773:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 544,
"indexed": true,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "808:12:9",
"nodeType": "VariableDeclaration",
"scope": 546,
"src": "793:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 543,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "793:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "688:136:9"
},
"src": "670:155:9"
},
{
"anonymous": false,
"documentation": {
"id": 547,
"nodeType": "StructuredDocumentation",
"src": "829:257:9",
"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": 557,
"name": "BackUnbacked",
"nameLocation": "1095:12:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 556,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 549,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "1124:7:9",
"nodeType": "VariableDeclaration",
"scope": 557,
"src": "1108:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 548,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1108:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 551,
"indexed": true,
"mutability": "mutable",
"name": "backer",
"nameLocation": "1149:6:9",
"nodeType": "VariableDeclaration",
"scope": 557,
"src": "1133:22:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 550,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1133:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 553,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1165:6:9",
"nodeType": "VariableDeclaration",
"scope": 557,
"src": "1157:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 552,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1157:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 555,
"indexed": false,
"mutability": "mutable",
"name": "fee",
"nameLocation": "1181:3:9",
"nodeType": "VariableDeclaration",
"scope": 557,
"src": "1173:11:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 554,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1173:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1107:78:9"
},
"src": "1089:97:9"
},
{
"anonymous": false,
"documentation": {
"id": 558,
"nodeType": "StructuredDocumentation",
"src": "1190:324:9",
"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": 570,
"name": "Supply",
"nameLocation": "1523:6:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 569,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 560,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "1551:7:9",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "1535:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 559,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1535:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 562,
"indexed": false,
"mutability": "mutable",
"name": "user",
"nameLocation": "1572:4:9",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "1564:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 561,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1564:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 564,
"indexed": true,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "1598:10:9",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "1582:26:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 563,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1582:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 566,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1622:6:9",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "1614:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 565,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1614:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 568,
"indexed": true,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "1649:12:9",
"nodeType": "VariableDeclaration",
"scope": 570,
"src": "1634:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 567,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1634:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "1529:136:9"
},
"src": "1517:149:9"
},
{
"anonymous": false,
"documentation": {
"id": 571,
"nodeType": "StructuredDocumentation",
"src": "1670:292:9",
"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": 581,
"name": "Withdraw",
"nameLocation": "1971:8:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 580,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 573,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "1996:7:9",
"nodeType": "VariableDeclaration",
"scope": 581,
"src": "1980:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 572,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1980:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 575,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "2021:4:9",
"nodeType": "VariableDeclaration",
"scope": 581,
"src": "2005:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 574,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2005:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 577,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nameLocation": "2043:2:9",
"nodeType": "VariableDeclaration",
"scope": 581,
"src": "2027:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 576,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2027:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 579,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "2055:6:9",
"nodeType": "VariableDeclaration",
"scope": 581,
"src": "2047:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 578,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2047:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1979:83:9"
},
"src": "1965:98:9"
},
{
"anonymous": false,
"documentation": {
"id": 582,
"nodeType": "StructuredDocumentation",
"src": "2067:628:9",
"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": 599,
"name": "Borrow",
"nameLocation": "2704:6:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 598,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 584,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "2732:7:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2716:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 583,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2716:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 586,
"indexed": false,
"mutability": "mutable",
"name": "user",
"nameLocation": "2753:4:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2745:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 585,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2745:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 588,
"indexed": true,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "2779:10:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2763:26:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 587,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2763:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 590,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "2803:6:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2795:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 589,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2795:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 593,
"indexed": false,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "2842:16:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2815:43:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
},
"typeName": {
"id": 592,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 591,
"name": "DataTypes.InterestRateMode",
"nameLocations": [
"2815:9:9",
"2825:16:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1454,
"src": "2815:26:9"
},
"referencedDeclaration": 1454,
"src": "2815:26:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 595,
"indexed": false,
"mutability": "mutable",
"name": "borrowRate",
"nameLocation": "2872:10:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2864:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 594,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2864:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 597,
"indexed": true,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "2903:12:9",
"nodeType": "VariableDeclaration",
"scope": 599,
"src": "2888:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 596,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2888:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "2710:209:9"
},
"src": "2698:222:9"
},
{
"anonymous": false,
"documentation": {
"id": 600,
"nodeType": "StructuredDocumentation",
"src": "2924:425:9",
"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": 612,
"name": "Repay",
"nameLocation": "3358:5:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 611,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 602,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "3385:7:9",
"nodeType": "VariableDeclaration",
"scope": 612,
"src": "3369:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 601,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3369:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 604,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "3414:4:9",
"nodeType": "VariableDeclaration",
"scope": 612,
"src": "3398:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 603,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3398:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 606,
"indexed": true,
"mutability": "mutable",
"name": "repayer",
"nameLocation": "3440:7:9",
"nodeType": "VariableDeclaration",
"scope": 612,
"src": "3424:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 605,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3424:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 608,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "3461:6:9",
"nodeType": "VariableDeclaration",
"scope": 612,
"src": "3453:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 607,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3453:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 610,
"indexed": false,
"mutability": "mutable",
"name": "useATokens",
"nameLocation": "3478:10:9",
"nodeType": "VariableDeclaration",
"scope": 612,
"src": "3473:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 609,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3473:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "3363:129:9"
},
"src": "3352:141:9"
},
{
"anonymous": false,
"documentation": {
"id": 613,
"nodeType": "StructuredDocumentation",
"src": "3497:306:9",
"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": 622,
"name": "SwapBorrowRateMode",
"nameLocation": "3812:18:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 621,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 615,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "3852:7:9",
"nodeType": "VariableDeclaration",
"scope": 622,
"src": "3836:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 614,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3836:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 617,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "3881:4:9",
"nodeType": "VariableDeclaration",
"scope": 622,
"src": "3865:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 616,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3865:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 620,
"indexed": false,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "3918:16:9",
"nodeType": "VariableDeclaration",
"scope": 622,
"src": "3891:43:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
},
"typeName": {
"id": 619,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 618,
"name": "DataTypes.InterestRateMode",
"nameLocations": [
"3891:9:9",
"3901:16:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1454,
"src": "3891:26:9"
},
"referencedDeclaration": 1454,
"src": "3891:26:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
}
},
"visibility": "internal"
}
],
"src": "3830:108:9"
},
"src": "3806:133:9"
},
{
"anonymous": false,
"documentation": {
"id": 623,
"nodeType": "StructuredDocumentation",
"src": "3943:234:9",
"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": 629,
"name": "IsolationModeTotalDebtUpdated",
"nameLocation": "4186:29:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 628,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 625,
"indexed": true,
"mutability": "mutable",
"name": "asset",
"nameLocation": "4232:5:9",
"nodeType": "VariableDeclaration",
"scope": 629,
"src": "4216:21:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 624,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4216:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 627,
"indexed": false,
"mutability": "mutable",
"name": "totalDebt",
"nameLocation": "4247:9:9",
"nodeType": "VariableDeclaration",
"scope": 629,
"src": "4239:17:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 626,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4239:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "4215:42:9"
},
"src": "4180:78:9"
},
{
"anonymous": false,
"documentation": {
"id": 630,
"nodeType": "StructuredDocumentation",
"src": "4262:164:9",
"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": 636,
"name": "UserEModeSet",
"nameLocation": "4435:12:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 635,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 632,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "4464:4:9",
"nodeType": "VariableDeclaration",
"scope": 636,
"src": "4448:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 631,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4448:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 634,
"indexed": false,
"mutability": "mutable",
"name": "categoryId",
"nameLocation": "4476:10:9",
"nodeType": "VariableDeclaration",
"scope": 636,
"src": "4470:16:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 633,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "4470:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "4447:40:9"
},
"src": "4429:59:9"
},
{
"anonymous": false,
"documentation": {
"id": 637,
"nodeType": "StructuredDocumentation",
"src": "4492:207:9",
"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": 643,
"name": "ReserveUsedAsCollateralEnabled",
"nameLocation": "4708:30:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 642,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 639,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "4755:7:9",
"nodeType": "VariableDeclaration",
"scope": 643,
"src": "4739:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 638,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4739:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 641,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "4780:4:9",
"nodeType": "VariableDeclaration",
"scope": 643,
"src": "4764:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 640,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4764:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "4738:47:9"
},
"src": "4702:84:9"
},
{
"anonymous": false,
"documentation": {
"id": 644,
"nodeType": "StructuredDocumentation",
"src": "4790:207:9",
"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": 650,
"name": "ReserveUsedAsCollateralDisabled",
"nameLocation": "5006:31:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 649,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 646,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "5054:7:9",
"nodeType": "VariableDeclaration",
"scope": 650,
"src": "5038:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 645,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5038:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 648,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "5079:4:9",
"nodeType": "VariableDeclaration",
"scope": 650,
"src": "5063:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 647,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5063:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5037:47:9"
},
"src": "5000:85:9"
},
{
"anonymous": false,
"documentation": {
"id": 651,
"nodeType": "StructuredDocumentation",
"src": "5089:212:9",
"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": 657,
"name": "RebalanceStableBorrowRate",
"nameLocation": "5310:25:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 656,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 653,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "5352:7:9",
"nodeType": "VariableDeclaration",
"scope": 657,
"src": "5336:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 652,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5336:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 655,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "5377:4:9",
"nodeType": "VariableDeclaration",
"scope": 657,
"src": "5361:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 654,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5361:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5335:47:9"
},
"src": "5304:79:9"
},
{
"anonymous": false,
"documentation": {
"id": 658,
"nodeType": "StructuredDocumentation",
"src": "5387:482:9",
"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": 675,
"name": "FlashLoan",
"nameLocation": "5878:9:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 674,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 660,
"indexed": true,
"mutability": "mutable",
"name": "target",
"nameLocation": "5909:6:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "5893:22:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 659,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5893:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 662,
"indexed": false,
"mutability": "mutable",
"name": "initiator",
"nameLocation": "5929:9:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "5921:17:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 661,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5921:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 664,
"indexed": true,
"mutability": "mutable",
"name": "asset",
"nameLocation": "5960:5:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "5944:21:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 663,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5944:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 666,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "5979:6:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "5971:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 665,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5971:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 669,
"indexed": false,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "6018:16:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "5991:43:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
},
"typeName": {
"id": 668,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 667,
"name": "DataTypes.InterestRateMode",
"nameLocations": [
"5991:9:9",
"6001:16:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1454,
"src": "5991:26:9"
},
"referencedDeclaration": 1454,
"src": "5991:26:9",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 671,
"indexed": false,
"mutability": "mutable",
"name": "premium",
"nameLocation": "6048:7:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "6040:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 670,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6040:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 673,
"indexed": true,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "6076:12:9",
"nodeType": "VariableDeclaration",
"scope": 675,
"src": "6061:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 672,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "6061:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "5887:205:9"
},
"src": "5872:221:9"
},
{
"anonymous": false,
"documentation": {
"id": 676,
"nodeType": "StructuredDocumentation",
"src": "6097:749:9",
"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": 692,
"name": "LiquidationCall",
"nameLocation": "6855:15:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 691,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 678,
"indexed": true,
"mutability": "mutable",
"name": "collateralAsset",
"nameLocation": "6892:15:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "6876:31:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 677,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6876:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 680,
"indexed": true,
"mutability": "mutable",
"name": "debtAsset",
"nameLocation": "6929:9:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "6913:25:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 679,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6913:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 682,
"indexed": true,
"mutability": "mutable",
"name": "user",
"nameLocation": "6960:4:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "6944:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 681,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6944:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 684,
"indexed": false,
"mutability": "mutable",
"name": "debtToCover",
"nameLocation": "6978:11:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "6970:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 683,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6970:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 686,
"indexed": false,
"mutability": "mutable",
"name": "liquidatedCollateralAmount",
"nameLocation": "7003:26:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "6995:34:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 685,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6995:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 688,
"indexed": false,
"mutability": "mutable",
"name": "liquidator",
"nameLocation": "7043:10:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "7035:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 687,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7035:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 690,
"indexed": false,
"mutability": "mutable",
"name": "receiveAToken",
"nameLocation": "7064:13:9",
"nodeType": "VariableDeclaration",
"scope": 692,
"src": "7059:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 689,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "7059:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "6870:211:9"
},
"src": "6849:233:9"
},
{
"anonymous": false,
"documentation": {
"id": 693,
"nodeType": "StructuredDocumentation",
"src": "7086:421:9",
"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": 707,
"name": "ReserveDataUpdated",
"nameLocation": "7516:18:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 706,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 695,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "7556:7:9",
"nodeType": "VariableDeclaration",
"scope": 707,
"src": "7540:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 694,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7540:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 697,
"indexed": false,
"mutability": "mutable",
"name": "liquidityRate",
"nameLocation": "7577:13:9",
"nodeType": "VariableDeclaration",
"scope": 707,
"src": "7569:21:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 696,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7569:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 699,
"indexed": false,
"mutability": "mutable",
"name": "stableBorrowRate",
"nameLocation": "7604:16:9",
"nodeType": "VariableDeclaration",
"scope": 707,
"src": "7596:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 698,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7596:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 701,
"indexed": false,
"mutability": "mutable",
"name": "variableBorrowRate",
"nameLocation": "7634:18:9",
"nodeType": "VariableDeclaration",
"scope": 707,
"src": "7626:26:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 700,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7626:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 703,
"indexed": false,
"mutability": "mutable",
"name": "liquidityIndex",
"nameLocation": "7666:14:9",
"nodeType": "VariableDeclaration",
"scope": 707,
"src": "7658:22:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 702,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7658:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 705,
"indexed": false,
"mutability": "mutable",
"name": "variableBorrowIndex",
"nameLocation": "7694:19:9",
"nodeType": "VariableDeclaration",
"scope": 707,
"src": "7686:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 704,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7686:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "7534:183:9"
},
"src": "7510:208:9"
},
{
"anonymous": false,
"documentation": {
"id": 708,
"nodeType": "StructuredDocumentation",
"src": "7722:211:9",
"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": 714,
"name": "MintedToTreasury",
"nameLocation": "7942:16:9",
"nodeType": "EventDefinition",
"parameters": {
"id": 713,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 710,
"indexed": true,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "7975:7:9",
"nodeType": "VariableDeclaration",
"scope": 714,
"src": "7959:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 709,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7959:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 712,
"indexed": false,
"mutability": "mutable",
"name": "amountMinted",
"nameLocation": "7992:12:9",
"nodeType": "VariableDeclaration",
"scope": 714,
"src": "7984:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 711,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7984:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "7958:47:9"
},
"src": "7936:70:9"
},
{
"documentation": {
"id": 715,
"nodeType": "StructuredDocumentation",
"src": "8010:428:9",
"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": 726,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mintUnbacked",
"nameLocation": "8450:12:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 724,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 717,
"mutability": "mutable",
"name": "asset",
"nameLocation": "8476:5:9",
"nodeType": "VariableDeclaration",
"scope": 726,
"src": "8468:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 716,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "8468:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 719,
"mutability": "mutable",
"name": "amount",
"nameLocation": "8495:6:9",
"nodeType": "VariableDeclaration",
"scope": 726,
"src": "8487:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 718,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "8487:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 721,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "8515:10:9",
"nodeType": "VariableDeclaration",
"scope": 726,
"src": "8507:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 720,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "8507:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 723,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "8538:12:9",
"nodeType": "VariableDeclaration",
"scope": 726,
"src": "8531:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 722,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "8531:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "8462:92:9"
},
"returnParameters": {
"id": 725,
"nodeType": "ParameterList",
"parameters": [],
"src": "8563:0:9"
},
"scope": 1165,
"src": "8441:123:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 727,
"nodeType": "StructuredDocumentation",
"src": "8568:259:9",
"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": 738,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "backUnbacked",
"nameLocation": "8839:12:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 734,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 729,
"mutability": "mutable",
"name": "asset",
"nameLocation": "8860:5:9",
"nodeType": "VariableDeclaration",
"scope": 738,
"src": "8852:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 728,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "8852:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 731,
"mutability": "mutable",
"name": "amount",
"nameLocation": "8875:6:9",
"nodeType": "VariableDeclaration",
"scope": 738,
"src": "8867:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 730,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "8867:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 733,
"mutability": "mutable",
"name": "fee",
"nameLocation": "8891:3:9",
"nodeType": "VariableDeclaration",
"scope": 738,
"src": "8883:11:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 732,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "8883:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "8851:44:9"
},
"returnParameters": {
"id": 737,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 736,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 738,
"src": "8914:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 735,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "8914:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "8913:9:9"
},
"scope": 1165,
"src": "8830:93:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 739,
"nodeType": "StructuredDocumentation",
"src": "8927:712:9",
"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": 750,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "supply",
"nameLocation": "9651:6:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 748,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 741,
"mutability": "mutable",
"name": "asset",
"nameLocation": "9666:5:9",
"nodeType": "VariableDeclaration",
"scope": 750,
"src": "9658:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 740,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "9658:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 743,
"mutability": "mutable",
"name": "amount",
"nameLocation": "9681:6:9",
"nodeType": "VariableDeclaration",
"scope": 750,
"src": "9673:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 742,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "9673:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 745,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "9697:10:9",
"nodeType": "VariableDeclaration",
"scope": 750,
"src": "9689:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 744,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "9689:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 747,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "9716:12:9",
"nodeType": "VariableDeclaration",
"scope": 750,
"src": "9709:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 746,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "9709:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "9657:72:9"
},
"returnParameters": {
"id": 749,
"nodeType": "ParameterList",
"parameters": [],
"src": "9738:0:9"
},
"scope": 1165,
"src": "9642:97:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 751,
"nodeType": "StructuredDocumentation",
"src": "9743:962:9",
"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": 770,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "supplyWithPermit",
"nameLocation": "10717:16:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 768,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 753,
"mutability": "mutable",
"name": "asset",
"nameLocation": "10747:5:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10739:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 752,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "10739:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 755,
"mutability": "mutable",
"name": "amount",
"nameLocation": "10766:6:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10758:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 754,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "10758:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 757,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "10786:10:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10778:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 756,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "10778:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 759,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "10809:12:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10802:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 758,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "10802:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 761,
"mutability": "mutable",
"name": "deadline",
"nameLocation": "10835:8:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10827:16:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 760,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "10827:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 763,
"mutability": "mutable",
"name": "permitV",
"nameLocation": "10855:7:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10849:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 762,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "10849:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 765,
"mutability": "mutable",
"name": "permitR",
"nameLocation": "10876:7:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10868:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 764,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "10868:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 767,
"mutability": "mutable",
"name": "permitS",
"nameLocation": "10897:7:9",
"nodeType": "VariableDeclaration",
"scope": 770,
"src": "10889:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 766,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "10889:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "10733:175:9"
},
"returnParameters": {
"id": 769,
"nodeType": "ParameterList",
"parameters": [],
"src": "10917:0:9"
},
"scope": 1165,
"src": "10708:210:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 771,
"nodeType": "StructuredDocumentation",
"src": "10922:671:9",
"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": 782,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdraw",
"nameLocation": "11605:8:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 778,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 773,
"mutability": "mutable",
"name": "asset",
"nameLocation": "11622:5:9",
"nodeType": "VariableDeclaration",
"scope": 782,
"src": "11614:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 772,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "11614:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 775,
"mutability": "mutable",
"name": "amount",
"nameLocation": "11637:6:9",
"nodeType": "VariableDeclaration",
"scope": 782,
"src": "11629:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 774,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "11629:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 777,
"mutability": "mutable",
"name": "to",
"nameLocation": "11653:2:9",
"nodeType": "VariableDeclaration",
"scope": 782,
"src": "11645:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 776,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "11645:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "11613:43:9"
},
"returnParameters": {
"id": 781,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 780,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 782,
"src": "11675:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 779,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "11675:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "11674:9:9"
},
"scope": 1165,
"src": "11596:88:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 783,
"nodeType": "StructuredDocumentation",
"src": "11688:1198:9",
"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": 796,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "borrow",
"nameLocation": "12898:6:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 794,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 785,
"mutability": "mutable",
"name": "asset",
"nameLocation": "12918:5:9",
"nodeType": "VariableDeclaration",
"scope": 796,
"src": "12910:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 784,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "12910:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 787,
"mutability": "mutable",
"name": "amount",
"nameLocation": "12937:6:9",
"nodeType": "VariableDeclaration",
"scope": 796,
"src": "12929:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 786,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "12929:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 789,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "12957:16:9",
"nodeType": "VariableDeclaration",
"scope": 796,
"src": "12949:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 788,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "12949:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 791,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "12986:12:9",
"nodeType": "VariableDeclaration",
"scope": 796,
"src": "12979:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 790,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "12979:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 793,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "13012:10:9",
"nodeType": "VariableDeclaration",
"scope": 796,
"src": "13004:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 792,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "13004:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "12904:122:9"
},
"returnParameters": {
"id": 795,
"nodeType": "ParameterList",
"parameters": [],
"src": "13035:0:9"
},
"scope": 1165,
"src": "12889:147:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 797,
"nodeType": "StructuredDocumentation",
"src": "13040:873:9",
"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": 810,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "repay",
"nameLocation": "13925:5:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 806,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 799,
"mutability": "mutable",
"name": "asset",
"nameLocation": "13944:5:9",
"nodeType": "VariableDeclaration",
"scope": 810,
"src": "13936:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 798,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "13936:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 801,
"mutability": "mutable",
"name": "amount",
"nameLocation": "13963:6:9",
"nodeType": "VariableDeclaration",
"scope": 810,
"src": "13955:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 800,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "13955:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 803,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "13983:16:9",
"nodeType": "VariableDeclaration",
"scope": 810,
"src": "13975:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 802,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "13975:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 805,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "14013:10:9",
"nodeType": "VariableDeclaration",
"scope": 810,
"src": "14005:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 804,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "14005:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "13930:97:9"
},
"returnParameters": {
"id": 809,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 808,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 810,
"src": "14046:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 807,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "14046:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "14045:9:9"
},
"scope": 1165,
"src": "13916:139:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 811,
"nodeType": "StructuredDocumentation",
"src": "14059:1085:9",
"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": 832,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "repayWithPermit",
"nameLocation": "15156:15:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 828,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 813,
"mutability": "mutable",
"name": "asset",
"nameLocation": "15185:5:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15177:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 812,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "15177:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 815,
"mutability": "mutable",
"name": "amount",
"nameLocation": "15204:6:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15196:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 814,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "15196:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 817,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "15224:16:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15216:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 816,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "15216:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 819,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "15254:10:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15246:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 818,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "15246:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 821,
"mutability": "mutable",
"name": "deadline",
"nameLocation": "15278:8:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15270:16:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 820,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "15270:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 823,
"mutability": "mutable",
"name": "permitV",
"nameLocation": "15298:7:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15292:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 822,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "15292:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 825,
"mutability": "mutable",
"name": "permitR",
"nameLocation": "15319:7:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15311:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 824,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "15311:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 827,
"mutability": "mutable",
"name": "permitS",
"nameLocation": "15340:7:9",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15332:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 826,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "15332:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "15171:180:9"
},
"returnParameters": {
"id": 831,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 830,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 832,
"src": "15370:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 829,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "15370:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "15369:9:9"
},
"scope": 1165,
"src": "15147:232:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 833,
"nodeType": "StructuredDocumentation",
"src": "15383:779:9",
"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": 844,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "repayWithATokens",
"nameLocation": "16174:16:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 840,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 835,
"mutability": "mutable",
"name": "asset",
"nameLocation": "16204:5:9",
"nodeType": "VariableDeclaration",
"scope": 844,
"src": "16196:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 834,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "16196:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 837,
"mutability": "mutable",
"name": "amount",
"nameLocation": "16223:6:9",
"nodeType": "VariableDeclaration",
"scope": 844,
"src": "16215:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 836,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "16215:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 839,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "16243:16:9",
"nodeType": "VariableDeclaration",
"scope": 844,
"src": "16235:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 838,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "16235:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "16190:73:9"
},
"returnParameters": {
"id": 843,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 842,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 844,
"src": "16282:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 841,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "16282:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "16281:9:9"
},
"scope": 1165,
"src": "16165:126:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 845,
"nodeType": "StructuredDocumentation",
"src": "16295:288:9",
"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": 852,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "swapBorrowRateMode",
"nameLocation": "16595:18:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 850,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 847,
"mutability": "mutable",
"name": "asset",
"nameLocation": "16622:5:9",
"nodeType": "VariableDeclaration",
"scope": 852,
"src": "16614:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 846,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "16614:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 849,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "16637:16:9",
"nodeType": "VariableDeclaration",
"scope": 852,
"src": "16629:24:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 848,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "16629:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "16613:41:9"
},
"returnParameters": {
"id": 851,
"nodeType": "ParameterList",
"parameters": [],
"src": "16663:0:9"
},
"scope": 1165,
"src": "16586:78:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 853,
"nodeType": "StructuredDocumentation",
"src": "16668:553:9",
"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": 860,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "rebalanceStableBorrowRate",
"nameLocation": "17233:25:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 858,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 855,
"mutability": "mutable",
"name": "asset",
"nameLocation": "17267:5:9",
"nodeType": "VariableDeclaration",
"scope": 860,
"src": "17259:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 854,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "17259:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 857,
"mutability": "mutable",
"name": "user",
"nameLocation": "17282:4:9",
"nodeType": "VariableDeclaration",
"scope": 860,
"src": "17274:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 856,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "17274:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "17258:29:9"
},
"returnParameters": {
"id": 859,
"nodeType": "ParameterList",
"parameters": [],
"src": "17296:0:9"
},
"scope": 1165,
"src": "17224:73:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 861,
"nodeType": "StructuredDocumentation",
"src": "17301:260:9",
"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": 868,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setUserUseReserveAsCollateral",
"nameLocation": "17573:29:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 866,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 863,
"mutability": "mutable",
"name": "asset",
"nameLocation": "17611:5:9",
"nodeType": "VariableDeclaration",
"scope": 868,
"src": "17603:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 862,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "17603:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 865,
"mutability": "mutable",
"name": "useAsCollateral",
"nameLocation": "17623:15:9",
"nodeType": "VariableDeclaration",
"scope": 868,
"src": "17618:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 864,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "17618:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "17602:37:9"
},
"returnParameters": {
"id": 867,
"nodeType": "ParameterList",
"parameters": [],
"src": "17648:0:9"
},
"scope": 1165,
"src": "17564:85:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 869,
"nodeType": "StructuredDocumentation",
"src": "17653:860:9",
"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": 882,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "liquidationCall",
"nameLocation": "18525:15:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 871,
"mutability": "mutable",
"name": "collateralAsset",
"nameLocation": "18554:15:9",
"nodeType": "VariableDeclaration",
"scope": 882,
"src": "18546:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 870,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "18546:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 873,
"mutability": "mutable",
"name": "debtAsset",
"nameLocation": "18583:9:9",
"nodeType": "VariableDeclaration",
"scope": 882,
"src": "18575:17:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 872,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "18575:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 875,
"mutability": "mutable",
"name": "user",
"nameLocation": "18606:4:9",
"nodeType": "VariableDeclaration",
"scope": 882,
"src": "18598:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 874,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "18598:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 877,
"mutability": "mutable",
"name": "debtToCover",
"nameLocation": "18624:11:9",
"nodeType": "VariableDeclaration",
"scope": 882,
"src": "18616:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 876,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "18616:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 879,
"mutability": "mutable",
"name": "receiveAToken",
"nameLocation": "18646:13:9",
"nodeType": "VariableDeclaration",
"scope": 882,
"src": "18641:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 878,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "18641:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "18540:123:9"
},
"returnParameters": {
"id": 881,
"nodeType": "ParameterList",
"parameters": [],
"src": "18672:0:9"
},
"scope": 1165,
"src": "18516:157:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 883,
"nodeType": "StructuredDocumentation",
"src": "18677:1407:9",
"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": 903,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "flashLoan",
"nameLocation": "20096:9:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 901,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 885,
"mutability": "mutable",
"name": "receiverAddress",
"nameLocation": "20119:15:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20111:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 884,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "20111:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 888,
"mutability": "mutable",
"name": "assets",
"nameLocation": "20159:6:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20140:25:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 886,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "20140:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 887,
"nodeType": "ArrayTypeName",
"src": "20140:9:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 891,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "20190:7:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20171:26:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 889,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "20171:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 890,
"nodeType": "ArrayTypeName",
"src": "20171:9:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 894,
"mutability": "mutable",
"name": "interestRateModes",
"nameLocation": "20222:17:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20203:36:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 892,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "20203:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 893,
"nodeType": "ArrayTypeName",
"src": "20203:9:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 896,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "20253:10:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20245:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 895,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "20245:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 898,
"mutability": "mutable",
"name": "params",
"nameLocation": "20284:6:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20269:21:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 897,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "20269:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 900,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "20303:12:9",
"nodeType": "VariableDeclaration",
"scope": 903,
"src": "20296:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 899,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "20296:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "20105:214:9"
},
"returnParameters": {
"id": 902,
"nodeType": "ParameterList",
"parameters": [],
"src": "20328:0:9"
},
"scope": 1165,
"src": "20087:242:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 904,
"nodeType": "StructuredDocumentation",
"src": "20333:902:9",
"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": 917,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "flashLoanSimple",
"nameLocation": "21247:15:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 915,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 906,
"mutability": "mutable",
"name": "receiverAddress",
"nameLocation": "21276:15:9",
"nodeType": "VariableDeclaration",
"scope": 917,
"src": "21268:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 905,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "21268:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 908,
"mutability": "mutable",
"name": "asset",
"nameLocation": "21305:5:9",
"nodeType": "VariableDeclaration",
"scope": 917,
"src": "21297:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 907,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "21297:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 910,
"mutability": "mutable",
"name": "amount",
"nameLocation": "21324:6:9",
"nodeType": "VariableDeclaration",
"scope": 917,
"src": "21316:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 909,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "21316:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 912,
"mutability": "mutable",
"name": "params",
"nameLocation": "21351:6:9",
"nodeType": "VariableDeclaration",
"scope": 917,
"src": "21336:21:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 911,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "21336:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 914,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "21370:12:9",
"nodeType": "VariableDeclaration",
"scope": 917,
"src": "21363:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 913,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "21363:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "21262:124:9"
},
"returnParameters": {
"id": 916,
"nodeType": "ParameterList",
"parameters": [],
"src": "21395:0:9"
},
"scope": 1165,
"src": "21238:158:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 918,
"nodeType": "StructuredDocumentation",
"src": "21400:630:9",
"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": 935,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getUserAccountData",
"nameLocation": "22042:18:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 921,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 920,
"mutability": "mutable",
"name": "user",
"nameLocation": "22074:4:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22066:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 919,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "22066:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "22060:22:9"
},
"returnParameters": {
"id": 934,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 923,
"mutability": "mutable",
"name": "totalCollateralBase",
"nameLocation": "22133:19:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22125:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 922,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "22125:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 925,
"mutability": "mutable",
"name": "totalDebtBase",
"nameLocation": "22168:13:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22160:21:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 924,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "22160:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 927,
"mutability": "mutable",
"name": "availableBorrowsBase",
"nameLocation": "22197:20:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22189:28:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 926,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "22189:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 929,
"mutability": "mutable",
"name": "currentLiquidationThreshold",
"nameLocation": "22233:27:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22225:35:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 928,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "22225:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 931,
"mutability": "mutable",
"name": "ltv",
"nameLocation": "22276:3:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22268:11:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 930,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "22268:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 933,
"mutability": "mutable",
"name": "healthFactor",
"nameLocation": "22295:12:9",
"nodeType": "VariableDeclaration",
"scope": 935,
"src": "22287:20:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 932,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "22287:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "22117:196:9"
},
"scope": 1165,
"src": "22033:281:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 936,
"nodeType": "StructuredDocumentation",
"src": "22318:645:9",
"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": 949,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "initReserve",
"nameLocation": "22975:11:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 947,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 938,
"mutability": "mutable",
"name": "asset",
"nameLocation": "23000:5:9",
"nodeType": "VariableDeclaration",
"scope": 949,
"src": "22992:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 937,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "22992:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 940,
"mutability": "mutable",
"name": "aTokenAddress",
"nameLocation": "23019:13:9",
"nodeType": "VariableDeclaration",
"scope": 949,
"src": "23011:21:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 939,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23011:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 942,
"mutability": "mutable",
"name": "stableDebtAddress",
"nameLocation": "23046:17:9",
"nodeType": "VariableDeclaration",
"scope": 949,
"src": "23038:25:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 941,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23038:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 944,
"mutability": "mutable",
"name": "variableDebtAddress",
"nameLocation": "23077:19:9",
"nodeType": "VariableDeclaration",
"scope": 949,
"src": "23069:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 943,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23069:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 946,
"mutability": "mutable",
"name": "interestRateStrategyAddress",
"nameLocation": "23110:27:9",
"nodeType": "VariableDeclaration",
"scope": 949,
"src": "23102:35:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 945,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23102:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "22986:155:9"
},
"returnParameters": {
"id": 948,
"nodeType": "ParameterList",
"parameters": [],
"src": "23150:0:9"
},
"scope": 1165,
"src": "22966:185:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 950,
"nodeType": "StructuredDocumentation",
"src": "23155:163:9",
"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": 955,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "dropReserve",
"nameLocation": "23330:11:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 953,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 952,
"mutability": "mutable",
"name": "asset",
"nameLocation": "23350:5:9",
"nodeType": "VariableDeclaration",
"scope": 955,
"src": "23342:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 951,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23342:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "23341:15:9"
},
"returnParameters": {
"id": 954,
"nodeType": "ParameterList",
"parameters": [],
"src": "23365:0:9"
},
"scope": 1165,
"src": "23321:45:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 956,
"nodeType": "StructuredDocumentation",
"src": "23370:290:9",
"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": 963,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setReserveInterestRateStrategyAddress",
"nameLocation": "23672:37:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 961,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 958,
"mutability": "mutable",
"name": "asset",
"nameLocation": "23723:5:9",
"nodeType": "VariableDeclaration",
"scope": 963,
"src": "23715:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 957,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23715:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 960,
"mutability": "mutable",
"name": "rateStrategyAddress",
"nameLocation": "23742:19:9",
"nodeType": "VariableDeclaration",
"scope": 963,
"src": "23734:27:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 959,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "23734:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "23709:56:9"
},
"returnParameters": {
"id": 962,
"nodeType": "ParameterList",
"parameters": [],
"src": "23774:0:9"
},
"scope": 1165,
"src": "23663:112:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 964,
"nodeType": "StructuredDocumentation",
"src": "23779:259:9",
"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": 972,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setConfiguration",
"nameLocation": "24050:16:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 970,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 966,
"mutability": "mutable",
"name": "asset",
"nameLocation": "24080:5:9",
"nodeType": "VariableDeclaration",
"scope": 972,
"src": "24072:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 965,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "24072:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 969,
"mutability": "mutable",
"name": "configuration",
"nameLocation": "24134:13:9",
"nodeType": "VariableDeclaration",
"scope": 972,
"src": "24091:56:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_calldata_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
},
"typeName": {
"id": 968,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 967,
"name": "DataTypes.ReserveConfigurationMap",
"nameLocations": [
"24091:9:9",
"24101:23:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1435,
"src": "24091:33:9"
},
"referencedDeclaration": 1435,
"src": "24091:33:9",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_storage_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
}
},
"visibility": "internal"
}
],
"src": "24066:85:9"
},
"returnParameters": {
"id": 971,
"nodeType": "ParameterList",
"parameters": [],
"src": "24160:0:9"
},
"scope": 1165,
"src": "24041:120:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 973,
"nodeType": "StructuredDocumentation",
"src": "24165:178:9",
"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": 981,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getConfiguration",
"nameLocation": "24355:16:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 976,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 975,
"mutability": "mutable",
"name": "asset",
"nameLocation": "24385:5:9",
"nodeType": "VariableDeclaration",
"scope": 981,
"src": "24377:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 974,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "24377:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "24371:23:9"
},
"returnParameters": {
"id": 980,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 979,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 981,
"src": "24418:40:9",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_memory_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
},
"typeName": {
"id": 978,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 977,
"name": "DataTypes.ReserveConfigurationMap",
"nameLocations": [
"24418:9:9",
"24428:23:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1435,
"src": "24418:33:9"
},
"referencedDeclaration": 1435,
"src": "24418:33:9",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_storage_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
}
},
"visibility": "internal"
}
],
"src": "24417:42:9"
},
"scope": 1165,
"src": "24346:114:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 982,
"nodeType": "StructuredDocumentation",
"src": "24464:161:9",
"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": 990,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getUserConfiguration",
"nameLocation": "24637:20:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 985,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 984,
"mutability": "mutable",
"name": "user",
"nameLocation": "24671:4:9",
"nodeType": "VariableDeclaration",
"scope": 990,
"src": "24663:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 983,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "24663:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "24657:22:9"
},
"returnParameters": {
"id": 989,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 988,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 990,
"src": "24703:37:9",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_UserConfigurationMap_$1439_memory_ptr",
"typeString": "struct DataTypes.UserConfigurationMap"
},
"typeName": {
"id": 987,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 986,
"name": "DataTypes.UserConfigurationMap",
"nameLocations": [
"24703:9:9",
"24713:20:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1439,
"src": "24703:30:9"
},
"referencedDeclaration": 1439,
"src": "24703:30:9",
"typeDescriptions": {
"typeIdentifier": "t_struct$_UserConfigurationMap_$1439_storage_ptr",
"typeString": "struct DataTypes.UserConfigurationMap"
}
},
"visibility": "internal"
}
],
"src": "24702:39:9"
},
"scope": 1165,
"src": "24628:114:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 991,
"nodeType": "StructuredDocumentation",
"src": "24746:181:9",
"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": 998,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getReserveNormalizedIncome",
"nameLocation": "24939:26:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 994,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 993,
"mutability": "mutable",
"name": "asset",
"nameLocation": "24974:5:9",
"nodeType": "VariableDeclaration",
"scope": 998,
"src": "24966:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 992,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "24966:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "24965:15:9"
},
"returnParameters": {
"id": 997,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 996,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 998,
"src": "25004:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 995,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "25004:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "25003:9:9"
},
"scope": 1165,
"src": "24930:83:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 999,
"nodeType": "StructuredDocumentation",
"src": "25017:805:9",
"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": 1006,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getReserveNormalizedVariableDebt",
"nameLocation": "25834:32:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1002,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1001,
"mutability": "mutable",
"name": "asset",
"nameLocation": "25875:5:9",
"nodeType": "VariableDeclaration",
"scope": 1006,
"src": "25867:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1000,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "25867:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "25866:15:9"
},
"returnParameters": {
"id": 1005,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1004,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1006,
"src": "25905:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1003,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "25905:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "25904:9:9"
},
"scope": 1165,
"src": "25825:89:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1007,
"nodeType": "StructuredDocumentation",
"src": "25918:203:9",
"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": 1015,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getReserveData",
"nameLocation": "26133:14:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1010,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1009,
"mutability": "mutable",
"name": "asset",
"nameLocation": "26156:5:9",
"nodeType": "VariableDeclaration",
"scope": 1015,
"src": "26148:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1008,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "26148:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "26147:15:9"
},
"returnParameters": {
"id": 1014,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1013,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1015,
"src": "26186:28:9",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveData_$1432_memory_ptr",
"typeString": "struct DataTypes.ReserveData"
},
"typeName": {
"id": 1012,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1011,
"name": "DataTypes.ReserveData",
"nameLocations": [
"26186:9:9",
"26196:11:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1432,
"src": "26186:21:9"
},
"referencedDeclaration": 1432,
"src": "26186:21:9",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveData_$1432_storage_ptr",
"typeString": "struct DataTypes.ReserveData"
}
},
"visibility": "internal"
}
],
"src": "26185:30:9"
},
"scope": 1165,
"src": "26124:92:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1016,
"nodeType": "StructuredDocumentation",
"src": "26220:537:9",
"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": 1031,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "finalizeTransfer",
"nameLocation": "26769:16:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1029,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1018,
"mutability": "mutable",
"name": "asset",
"nameLocation": "26799:5:9",
"nodeType": "VariableDeclaration",
"scope": 1031,
"src": "26791:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1017,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "26791:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1020,
"mutability": "mutable",
"name": "from",
"nameLocation": "26818:4:9",
"nodeType": "VariableDeclaration",
"scope": 1031,
"src": "26810:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1019,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "26810:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1022,
"mutability": "mutable",
"name": "to",
"nameLocation": "26836:2:9",
"nodeType": "VariableDeclaration",
"scope": 1031,
"src": "26828:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1021,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "26828:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1024,
"mutability": "mutable",
"name": "amount",
"nameLocation": "26852:6:9",
"nodeType": "VariableDeclaration",
"scope": 1031,
"src": "26844:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1023,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "26844:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1026,
"mutability": "mutable",
"name": "balanceFromBefore",
"nameLocation": "26872:17:9",
"nodeType": "VariableDeclaration",
"scope": 1031,
"src": "26864:25:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1025,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "26864:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1028,
"mutability": "mutable",
"name": "balanceToBefore",
"nameLocation": "26903:15:9",
"nodeType": "VariableDeclaration",
"scope": 1031,
"src": "26895:23:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1027,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "26895:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "26785:137:9"
},
"returnParameters": {
"id": 1030,
"nodeType": "ParameterList",
"parameters": [],
"src": "26931:0:9"
},
"scope": 1165,
"src": "26760:172:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1032,
"nodeType": "StructuredDocumentation",
"src": "26936:223:9",
"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": 1038,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getReservesList",
"nameLocation": "27171:15:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1033,
"nodeType": "ParameterList",
"parameters": [],
"src": "27186:2:9"
},
"returnParameters": {
"id": 1037,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1036,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1038,
"src": "27212:16:9",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 1034,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "27212:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 1035,
"nodeType": "ArrayTypeName",
"src": "27212:9:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
}
],
"src": "27211:18:9"
},
"scope": 1165,
"src": "27162:68:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1039,
"nodeType": "StructuredDocumentation",
"src": "27234:285:9",
"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": 1046,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getReserveAddressById",
"nameLocation": "27531:21:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1042,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1041,
"mutability": "mutable",
"name": "id",
"nameLocation": "27560:2:9",
"nodeType": "VariableDeclaration",
"scope": 1046,
"src": "27553:9:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1040,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "27553:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "27552:11:9"
},
"returnParameters": {
"id": 1045,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1044,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1046,
"src": "27587:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1043,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "27587:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "27586:9:9"
},
"scope": 1165,
"src": "27522:74:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1047,
"nodeType": "StructuredDocumentation",
"src": "27600:137:9",
"text": " @notice Returns the PoolAddressesProvider connected to this contract\n @return The address of the PoolAddressesProvider"
},
"functionSelector": "0542975c",
"id": 1053,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "ADDRESSES_PROVIDER",
"nameLocation": "27749:18:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1048,
"nodeType": "ParameterList",
"parameters": [],
"src": "27767:2:9"
},
"returnParameters": {
"id": 1052,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1051,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1053,
"src": "27793:22:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
},
"typeName": {
"id": 1050,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1049,
"name": "IPoolAddressesProvider",
"nameLocations": [
"27793:22:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1374,
"src": "27793:22:9"
},
"referencedDeclaration": 1374,
"src": "27793:22:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"visibility": "internal"
}
],
"src": "27792:24:9"
},
"scope": 1165,
"src": "27740:77:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1054,
"nodeType": "StructuredDocumentation",
"src": "27821:147:9",
"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": 1059,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "updateBridgeProtocolFee",
"nameLocation": "27980:23:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1057,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1056,
"mutability": "mutable",
"name": "bridgeProtocolFee",
"nameLocation": "28012:17:9",
"nodeType": "VariableDeclaration",
"scope": 1059,
"src": "28004:25:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1055,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "28004:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "28003:27:9"
},
"returnParameters": {
"id": 1058,
"nodeType": "ParameterList",
"parameters": [],
"src": "28039:0:9"
},
"scope": 1165,
"src": "27971:69:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1060,
"nodeType": "StructuredDocumentation",
"src": "28044:650:9",
"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": 1067,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "updateFlashloanPremiums",
"nameLocation": "28706:23:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1065,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1062,
"mutability": "mutable",
"name": "flashLoanPremiumTotal",
"nameLocation": "28743:21:9",
"nodeType": "VariableDeclaration",
"scope": 1067,
"src": "28735:29:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1061,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "28735:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1064,
"mutability": "mutable",
"name": "flashLoanPremiumToProtocol",
"nameLocation": "28778:26:9",
"nodeType": "VariableDeclaration",
"scope": 1067,
"src": "28770:34:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1063,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "28770:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
}
],
"src": "28729:79:9"
},
"returnParameters": {
"id": 1066,
"nodeType": "ParameterList",
"parameters": [],
"src": "28817:0:9"
},
"scope": 1165,
"src": "28697:121:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1068,
"nodeType": "StructuredDocumentation",
"src": "28822:331:9",
"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": 1076,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "configureEModeCategory",
"nameLocation": "29165:22:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1074,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1070,
"mutability": "mutable",
"name": "id",
"nameLocation": "29194:2:9",
"nodeType": "VariableDeclaration",
"scope": 1076,
"src": "29188:8:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1069,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "29188:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1073,
"mutability": "mutable",
"name": "config",
"nameLocation": "29229:6:9",
"nodeType": "VariableDeclaration",
"scope": 1076,
"src": "29198:37:9",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EModeCategory_$1450_memory_ptr",
"typeString": "struct DataTypes.EModeCategory"
},
"typeName": {
"id": 1072,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1071,
"name": "DataTypes.EModeCategory",
"nameLocations": [
"29198:9:9",
"29208:13:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1450,
"src": "29198:23:9"
},
"referencedDeclaration": 1450,
"src": "29198:23:9",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EModeCategory_$1450_storage_ptr",
"typeString": "struct DataTypes.EModeCategory"
}
},
"visibility": "internal"
}
],
"src": "29187:49:9"
},
"returnParameters": {
"id": 1075,
"nodeType": "ParameterList",
"parameters": [],
"src": "29245:0:9"
},
"scope": 1165,
"src": "29156:90:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1077,
"nodeType": "StructuredDocumentation",
"src": "29250:150:9",
"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": 1085,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getEModeCategoryData",
"nameLocation": "29412:20:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1080,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1079,
"mutability": "mutable",
"name": "id",
"nameLocation": "29439:2:9",
"nodeType": "VariableDeclaration",
"scope": 1085,
"src": "29433:8:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1078,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "29433:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "29432:10:9"
},
"returnParameters": {
"id": 1084,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1083,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1085,
"src": "29466:30:9",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EModeCategory_$1450_memory_ptr",
"typeString": "struct DataTypes.EModeCategory"
},
"typeName": {
"id": 1082,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1081,
"name": "DataTypes.EModeCategory",
"nameLocations": [
"29466:9:9",
"29476:13:9"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1450,
"src": "29466:23:9"
},
"referencedDeclaration": 1450,
"src": "29466:23:9",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EModeCategory_$1450_storage_ptr",
"typeString": "struct DataTypes.EModeCategory"
}
},
"visibility": "internal"
}
],
"src": "29465:32:9"
},
"scope": 1165,
"src": "29403:95:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1086,
"nodeType": "StructuredDocumentation",
"src": "29502:111:9",
"text": " @notice Allows a user to use the protocol in eMode\n @param categoryId The id of the category"
},
"functionSelector": "28530a47",
"id": 1091,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setUserEMode",
"nameLocation": "29625:12:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1089,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1088,
"mutability": "mutable",
"name": "categoryId",
"nameLocation": "29644:10:9",
"nodeType": "VariableDeclaration",
"scope": 1091,
"src": "29638:16:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1087,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "29638:5:9",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "29637:18:9"
},
"returnParameters": {
"id": 1090,
"nodeType": "ParameterList",
"parameters": [],
"src": "29664:0:9"
},
"scope": 1165,
"src": "29616:49:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1092,
"nodeType": "StructuredDocumentation",
"src": "29669:125:9",
"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": 1099,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getUserEMode",
"nameLocation": "29806:12:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1095,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1094,
"mutability": "mutable",
"name": "user",
"nameLocation": "29827:4:9",
"nodeType": "VariableDeclaration",
"scope": 1099,
"src": "29819:12:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1093,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "29819:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "29818:14:9"
},
"returnParameters": {
"id": 1098,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1097,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1099,
"src": "29856:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1096,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "29856:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "29855:9:9"
},
"scope": 1165,
"src": "29797:68:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1100,
"nodeType": "StructuredDocumentation",
"src": "29869:236:9",
"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": 1105,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "resetIsolationModeTotalDebt",
"nameLocation": "30117:27:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1103,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1102,
"mutability": "mutable",
"name": "asset",
"nameLocation": "30153:5:9",
"nodeType": "VariableDeclaration",
"scope": 1105,
"src": "30145:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1101,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "30145:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "30144:15:9"
},
"returnParameters": {
"id": 1104,
"nodeType": "ParameterList",
"parameters": [],
"src": "30168:0:9"
},
"scope": 1165,
"src": "30108:61:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1106,
"nodeType": "StructuredDocumentation",
"src": "30173:191:9",
"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": 1111,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "MAX_STABLE_RATE_BORROW_SIZE_PERCENT",
"nameLocation": "30376:35:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1107,
"nodeType": "ParameterList",
"parameters": [],
"src": "30411:2:9"
},
"returnParameters": {
"id": 1110,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1109,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1111,
"src": "30437:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1108,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "30437:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "30436:9:9"
},
"scope": 1165,
"src": "30367:79:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1112,
"nodeType": "StructuredDocumentation",
"src": "30450:100:9",
"text": " @notice Returns the total fee on flash loans\n @return The total fee on flashloans"
},
"functionSelector": "074b2e43",
"id": 1117,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "FLASHLOAN_PREMIUM_TOTAL",
"nameLocation": "30562:23:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1113,
"nodeType": "ParameterList",
"parameters": [],
"src": "30585:2:9"
},
"returnParameters": {
"id": 1116,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1115,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1117,
"src": "30611:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1114,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "30611:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
}
],
"src": "30610:9:9"
},
"scope": 1165,
"src": "30553:67:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1118,
"nodeType": "StructuredDocumentation",
"src": "30624:133:9",
"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": 1123,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "BRIDGE_PROTOCOL_FEE",
"nameLocation": "30769:19:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1119,
"nodeType": "ParameterList",
"parameters": [],
"src": "30788:2:9"
},
"returnParameters": {
"id": 1122,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1121,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1123,
"src": "30814:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1120,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "30814:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "30813:9:9"
},
"scope": 1165,
"src": "30760:63:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1124,
"nodeType": "StructuredDocumentation",
"src": "30827:139:9",
"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": 1129,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "FLASHLOAN_PREMIUM_TO_PROTOCOL",
"nameLocation": "30978:29:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1125,
"nodeType": "ParameterList",
"parameters": [],
"src": "31007:2:9"
},
"returnParameters": {
"id": 1128,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1127,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1129,
"src": "31033:7:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1126,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "31033:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
}
],
"src": "31032:9:9"
},
"scope": 1165,
"src": "30969:73:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1130,
"nodeType": "StructuredDocumentation",
"src": "31046:151:9",
"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": 1135,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "MAX_NUMBER_RESERVES",
"nameLocation": "31209:19:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1131,
"nodeType": "ParameterList",
"parameters": [],
"src": "31228:2:9"
},
"returnParameters": {
"id": 1134,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1133,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1135,
"src": "31254:6:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1132,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "31254:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "31253:8:9"
},
"scope": 1165,
"src": "31200:62:9",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1136,
"nodeType": "StructuredDocumentation",
"src": "31266:196:9",
"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": 1142,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mintToTreasury",
"nameLocation": "31474:14:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1140,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1139,
"mutability": "mutable",
"name": "assets",
"nameLocation": "31508:6:9",
"nodeType": "VariableDeclaration",
"scope": 1142,
"src": "31489:25:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 1137,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "31489:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 1138,
"nodeType": "ArrayTypeName",
"src": "31489:9:9",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
}
],
"src": "31488:27:9"
},
"returnParameters": {
"id": 1141,
"nodeType": "ParameterList",
"parameters": [],
"src": "31524:0:9"
},
"scope": 1165,
"src": "31465:60:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1143,
"nodeType": "StructuredDocumentation",
"src": "31529:211:9",
"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": 1152,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "rescueTokens",
"nameLocation": "31752:12:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1150,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1145,
"mutability": "mutable",
"name": "token",
"nameLocation": "31773:5:9",
"nodeType": "VariableDeclaration",
"scope": 1152,
"src": "31765:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1144,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "31765:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1147,
"mutability": "mutable",
"name": "to",
"nameLocation": "31788:2:9",
"nodeType": "VariableDeclaration",
"scope": 1152,
"src": "31780:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1146,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "31780:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1149,
"mutability": "mutable",
"name": "amount",
"nameLocation": "31800:6:9",
"nodeType": "VariableDeclaration",
"scope": 1152,
"src": "31792:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1148,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "31792:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "31764:43:9"
},
"returnParameters": {
"id": 1151,
"nodeType": "ParameterList",
"parameters": [],
"src": "31816:0:9"
},
"scope": 1165,
"src": "31743:74:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1153,
"nodeType": "StructuredDocumentation",
"src": "31821:768:9",
"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": 1164,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deposit",
"nameLocation": "32601:7:9",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1162,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1155,
"mutability": "mutable",
"name": "asset",
"nameLocation": "32617:5:9",
"nodeType": "VariableDeclaration",
"scope": 1164,
"src": "32609:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1154,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "32609:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1157,
"mutability": "mutable",
"name": "amount",
"nameLocation": "32632:6:9",
"nodeType": "VariableDeclaration",
"scope": 1164,
"src": "32624:14:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1156,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "32624:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1159,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "32648:10:9",
"nodeType": "VariableDeclaration",
"scope": 1164,
"src": "32640:18:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1158,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "32640:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1161,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "32667:12:9",
"nodeType": "VariableDeclaration",
"scope": 1164,
"src": "32660:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1160,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "32660:6:9",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "32608:72:9"
},
"returnParameters": {
"id": 1163,
"nodeType": "ParameterList",
"parameters": [],
"src": "32689:0:9"
},
"scope": 1165,
"src": "32592:98:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 1166,
"src": "298:32394:9",
"usedErrors": [],
"usedEvents": [
546,
557,
570,
581,
599,
612,
622,
629,
636,
643,
650,
657,
675,
692,
707,
714
]
}
],
"src": "37:32656:9"
},
"id": 9
},
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"exportedSymbols": {
"IPoolAddressesProvider": [
1374
]
},
"id": 1375,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1167,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:10"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IPoolAddressesProvider",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 1168,
"nodeType": "StructuredDocumentation",
"src": "62:126:10",
"text": " @title IPoolAddressesProvider\n @author Aave\n @notice Defines the basic interface for a Pool Addresses Provider."
},
"fullyImplemented": false,
"id": 1374,
"linearizedBaseContracts": [
1374
],
"name": "IPoolAddressesProvider",
"nameLocation": "199:22:10",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 1169,
"nodeType": "StructuredDocumentation",
"src": "226:164:10",
"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": 1175,
"name": "MarketIdSet",
"nameLocation": "399:11:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1174,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1171,
"indexed": true,
"mutability": "mutable",
"name": "oldMarketId",
"nameLocation": "426:11:10",
"nodeType": "VariableDeclaration",
"scope": 1175,
"src": "411:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1170,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "411:6:10",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1173,
"indexed": true,
"mutability": "mutable",
"name": "newMarketId",
"nameLocation": "454:11:10",
"nodeType": "VariableDeclaration",
"scope": 1175,
"src": "439:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1172,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "439:6:10",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "410:56:10"
},
"src": "393:74:10"
},
{
"anonymous": false,
"documentation": {
"id": 1176,
"nodeType": "StructuredDocumentation",
"src": "471:155:10",
"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": 1182,
"name": "PoolUpdated",
"nameLocation": "635:11:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1181,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1178,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "663:10:10",
"nodeType": "VariableDeclaration",
"scope": 1182,
"src": "647:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1177,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "647:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1180,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "691:10:10",
"nodeType": "VariableDeclaration",
"scope": 1182,
"src": "675:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1179,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "675:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "646:56:10"
},
"src": "629:74:10"
},
{
"anonymous": false,
"documentation": {
"id": 1183,
"nodeType": "StructuredDocumentation",
"src": "707:192:10",
"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": 1189,
"name": "PoolConfiguratorUpdated",
"nameLocation": "908:23:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1188,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1185,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "948:10:10",
"nodeType": "VariableDeclaration",
"scope": 1189,
"src": "932:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1184,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "932:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1187,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "976:10:10",
"nodeType": "VariableDeclaration",
"scope": 1189,
"src": "960:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1186,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "960:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "931:56:10"
},
"src": "902:86:10"
},
{
"anonymous": false,
"documentation": {
"id": 1190,
"nodeType": "StructuredDocumentation",
"src": "992:177:10",
"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": 1196,
"name": "PriceOracleUpdated",
"nameLocation": "1178:18:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1195,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1192,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "1213:10:10",
"nodeType": "VariableDeclaration",
"scope": 1196,
"src": "1197:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1191,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1197:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1194,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "1241:10:10",
"nodeType": "VariableDeclaration",
"scope": 1196,
"src": "1225:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1193,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1225:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1196:56:10"
},
"src": "1172:81:10"
},
{
"anonymous": false,
"documentation": {
"id": 1197,
"nodeType": "StructuredDocumentation",
"src": "1257:174:10",
"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": 1203,
"name": "ACLManagerUpdated",
"nameLocation": "1440:17:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1202,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1199,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "1474:10:10",
"nodeType": "VariableDeclaration",
"scope": 1203,
"src": "1458:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1198,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1458:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1201,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "1502:10:10",
"nodeType": "VariableDeclaration",
"scope": 1203,
"src": "1486:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1200,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1486:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1457:56:10"
},
"src": "1434:80:10"
},
{
"anonymous": false,
"documentation": {
"id": 1204,
"nodeType": "StructuredDocumentation",
"src": "1518:168:10",
"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": 1210,
"name": "ACLAdminUpdated",
"nameLocation": "1695:15:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1209,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1206,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "1727:10:10",
"nodeType": "VariableDeclaration",
"scope": 1210,
"src": "1711:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1205,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1711:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1208,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "1755:10:10",
"nodeType": "VariableDeclaration",
"scope": 1210,
"src": "1739:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1207,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1739:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1710:56:10"
},
"src": "1689:78:10"
},
{
"anonymous": false,
"documentation": {
"id": 1211,
"nodeType": "StructuredDocumentation",
"src": "1771:202:10",
"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": 1217,
"name": "PriceOracleSentinelUpdated",
"nameLocation": "1982:26:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1216,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1213,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "2025:10:10",
"nodeType": "VariableDeclaration",
"scope": 1217,
"src": "2009:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1212,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2009:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1215,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "2053:10:10",
"nodeType": "VariableDeclaration",
"scope": 1217,
"src": "2037:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1214,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2037:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2008:56:10"
},
"src": "1976:89:10"
},
{
"anonymous": false,
"documentation": {
"id": 1218,
"nodeType": "StructuredDocumentation",
"src": "2069:193:10",
"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": 1224,
"name": "PoolDataProviderUpdated",
"nameLocation": "2271:23:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1223,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1220,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "2311:10:10",
"nodeType": "VariableDeclaration",
"scope": 1224,
"src": "2295:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1219,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2295:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1222,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "2339:10:10",
"nodeType": "VariableDeclaration",
"scope": 1224,
"src": "2323:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1221,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2323:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2294:56:10"
},
"src": "2265:86:10"
},
{
"anonymous": false,
"documentation": {
"id": 1225,
"nodeType": "StructuredDocumentation",
"src": "2355:243:10",
"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": 1233,
"name": "ProxyCreated",
"nameLocation": "2607:12:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1232,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1227,
"indexed": true,
"mutability": "mutable",
"name": "id",
"nameLocation": "2641:2:10",
"nodeType": "VariableDeclaration",
"scope": 1233,
"src": "2625:18:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1226,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2625:7:10",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1229,
"indexed": true,
"mutability": "mutable",
"name": "proxyAddress",
"nameLocation": "2665:12:10",
"nodeType": "VariableDeclaration",
"scope": 1233,
"src": "2649:28:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1228,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2649:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1231,
"indexed": true,
"mutability": "mutable",
"name": "implementationAddress",
"nameLocation": "2699:21:10",
"nodeType": "VariableDeclaration",
"scope": 1233,
"src": "2683:37:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1230,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2683:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2619:105:10"
},
"src": "2601:124:10"
},
{
"anonymous": false,
"documentation": {
"id": 1234,
"nodeType": "StructuredDocumentation",
"src": "2729:238:10",
"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": 1242,
"name": "AddressSet",
"nameLocation": "2976:10:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1241,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1236,
"indexed": true,
"mutability": "mutable",
"name": "id",
"nameLocation": "3003:2:10",
"nodeType": "VariableDeclaration",
"scope": 1242,
"src": "2987:18:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1235,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2987:7:10",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1238,
"indexed": true,
"mutability": "mutable",
"name": "oldAddress",
"nameLocation": "3023:10:10",
"nodeType": "VariableDeclaration",
"scope": 1242,
"src": "3007:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1237,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3007:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1240,
"indexed": true,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "3051:10:10",
"nodeType": "VariableDeclaration",
"scope": 1242,
"src": "3035:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1239,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3035:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2986:76:10"
},
"src": "2970:93:10"
},
{
"anonymous": false,
"documentation": {
"id": 1243,
"nodeType": "StructuredDocumentation",
"src": "3067:367:10",
"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": 1253,
"name": "AddressSetAsProxy",
"nameLocation": "3443:17:10",
"nodeType": "EventDefinition",
"parameters": {
"id": 1252,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1245,
"indexed": true,
"mutability": "mutable",
"name": "id",
"nameLocation": "3482:2:10",
"nodeType": "VariableDeclaration",
"scope": 1253,
"src": "3466:18:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1244,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3466:7:10",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1247,
"indexed": true,
"mutability": "mutable",
"name": "proxyAddress",
"nameLocation": "3506:12:10",
"nodeType": "VariableDeclaration",
"scope": 1253,
"src": "3490:28:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1246,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3490:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1249,
"indexed": false,
"mutability": "mutable",
"name": "oldImplementationAddress",
"nameLocation": "3532:24:10",
"nodeType": "VariableDeclaration",
"scope": 1253,
"src": "3524:32:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1248,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3524:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1251,
"indexed": true,
"mutability": "mutable",
"name": "newImplementationAddress",
"nameLocation": "3578:24:10",
"nodeType": "VariableDeclaration",
"scope": 1253,
"src": "3562:40:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1250,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3562:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "3460:146:10"
},
"src": "3437:170:10"
},
{
"documentation": {
"id": 1254,
"nodeType": "StructuredDocumentation",
"src": "3611:117:10",
"text": " @notice Returns the id of the Aave market to which this contract points to.\n @return The market id"
},
"functionSelector": "568ef470",
"id": 1259,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getMarketId",
"nameLocation": "3740:11:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1255,
"nodeType": "ParameterList",
"parameters": [],
"src": "3751:2:10"
},
"returnParameters": {
"id": 1258,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1257,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1259,
"src": "3777:13:10",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 1256,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "3777:6:10",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "3776:15:10"
},
"scope": 1374,
"src": "3731:61:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1260,
"nodeType": "StructuredDocumentation",
"src": "3796:252:10",
"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": 1265,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setMarketId",
"nameLocation": "4060:11:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1263,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1262,
"mutability": "mutable",
"name": "newMarketId",
"nameLocation": "4088:11:10",
"nodeType": "VariableDeclaration",
"scope": 1265,
"src": "4072:27:10",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 1261,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "4072:6:10",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "4071:29:10"
},
"returnParameters": {
"id": 1264,
"nodeType": "ParameterList",
"parameters": [],
"src": "4109:0:10"
},
"scope": 1374,
"src": "4051:59:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1266,
"nodeType": "StructuredDocumentation",
"src": "4114:306:10",
"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": 1273,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getAddress",
"nameLocation": "4432:10:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1269,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1268,
"mutability": "mutable",
"name": "id",
"nameLocation": "4451:2:10",
"nodeType": "VariableDeclaration",
"scope": 1273,
"src": "4443:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1267,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "4443:7:10",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "4442:12:10"
},
"returnParameters": {
"id": 1272,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1271,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1273,
"src": "4478:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1270,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4478:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "4477:9:10"
},
"scope": 1374,
"src": "4423:64:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1274,
"nodeType": "StructuredDocumentation",
"src": "4491:485:10",
"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": 1281,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setAddressAsProxy",
"nameLocation": "4988:17:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1279,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1276,
"mutability": "mutable",
"name": "id",
"nameLocation": "5014:2:10",
"nodeType": "VariableDeclaration",
"scope": 1281,
"src": "5006:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1275,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5006:7:10",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1278,
"mutability": "mutable",
"name": "newImplementationAddress",
"nameLocation": "5026:24:10",
"nodeType": "VariableDeclaration",
"scope": 1281,
"src": "5018:32:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1277,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5018:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5005:46:10"
},
"returnParameters": {
"id": 1280,
"nodeType": "ParameterList",
"parameters": [],
"src": "5060:0:10"
},
"scope": 1374,
"src": "4979:82:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1282,
"nodeType": "StructuredDocumentation",
"src": "5065:244:10",
"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": 1289,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setAddress",
"nameLocation": "5321:10:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1287,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1284,
"mutability": "mutable",
"name": "id",
"nameLocation": "5340:2:10",
"nodeType": "VariableDeclaration",
"scope": 1289,
"src": "5332:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1283,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5332:7:10",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1286,
"mutability": "mutable",
"name": "newAddress",
"nameLocation": "5352:10:10",
"nodeType": "VariableDeclaration",
"scope": 1289,
"src": "5344:18:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1285,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5344:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5331:32:10"
},
"returnParameters": {
"id": 1288,
"nodeType": "ParameterList",
"parameters": [],
"src": "5372:0:10"
},
"scope": 1374,
"src": "5312:61:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1290,
"nodeType": "StructuredDocumentation",
"src": "5377:97:10",
"text": " @notice Returns the address of the Pool proxy.\n @return The Pool proxy address"
},
"functionSelector": "026b1d5f",
"id": 1295,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPool",
"nameLocation": "5486:7:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1291,
"nodeType": "ParameterList",
"parameters": [],
"src": "5493:2:10"
},
"returnParameters": {
"id": 1294,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1293,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1295,
"src": "5519:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1292,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5519:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5518:9:10"
},
"scope": 1374,
"src": "5477:51:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1296,
"nodeType": "StructuredDocumentation",
"src": "5532:224:10",
"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": 1301,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPoolImpl",
"nameLocation": "5768:11:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1299,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1298,
"mutability": "mutable",
"name": "newPoolImpl",
"nameLocation": "5788:11:10",
"nodeType": "VariableDeclaration",
"scope": 1301,
"src": "5780:19:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1297,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5780:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5779:21:10"
},
"returnParameters": {
"id": 1300,
"nodeType": "ParameterList",
"parameters": [],
"src": "5809:0:10"
},
"scope": 1374,
"src": "5759:51:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1302,
"nodeType": "StructuredDocumentation",
"src": "5814:121:10",
"text": " @notice Returns the address of the PoolConfigurator proxy.\n @return The PoolConfigurator proxy address"
},
"functionSelector": "631adfca",
"id": 1307,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPoolConfigurator",
"nameLocation": "5947:19:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1303,
"nodeType": "ParameterList",
"parameters": [],
"src": "5966:2:10"
},
"returnParameters": {
"id": 1306,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1305,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1307,
"src": "5992:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1304,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5992:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "5991:9:10"
},
"scope": 1374,
"src": "5938:63:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1308,
"nodeType": "StructuredDocumentation",
"src": "6005:272:10",
"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": 1313,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPoolConfiguratorImpl",
"nameLocation": "6289:23:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1311,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1310,
"mutability": "mutable",
"name": "newPoolConfiguratorImpl",
"nameLocation": "6321:23:10",
"nodeType": "VariableDeclaration",
"scope": 1313,
"src": "6313:31:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1309,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6313:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "6312:33:10"
},
"returnParameters": {
"id": 1312,
"nodeType": "ParameterList",
"parameters": [],
"src": "6354:0:10"
},
"scope": 1374,
"src": "6280:75:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1314,
"nodeType": "StructuredDocumentation",
"src": "6359:107:10",
"text": " @notice Returns the address of the price oracle.\n @return The address of the PriceOracle"
},
"functionSelector": "fca513a8",
"id": 1319,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPriceOracle",
"nameLocation": "6478:14:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1315,
"nodeType": "ParameterList",
"parameters": [],
"src": "6492:2:10"
},
"returnParameters": {
"id": 1318,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1317,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1319,
"src": "6518:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1316,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6518:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "6517:9:10"
},
"scope": 1374,
"src": "6469:58:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1320,
"nodeType": "StructuredDocumentation",
"src": "6531:125:10",
"text": " @notice Updates the address of the price oracle.\n @param newPriceOracle The address of the new PriceOracle"
},
"functionSelector": "530e784f",
"id": 1325,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPriceOracle",
"nameLocation": "6668:14:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1323,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1322,
"mutability": "mutable",
"name": "newPriceOracle",
"nameLocation": "6691:14:10",
"nodeType": "VariableDeclaration",
"scope": 1325,
"src": "6683:22:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1321,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6683:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "6682:24:10"
},
"returnParameters": {
"id": 1324,
"nodeType": "ParameterList",
"parameters": [],
"src": "6715:0:10"
},
"scope": 1374,
"src": "6659:57:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1326,
"nodeType": "StructuredDocumentation",
"src": "6720:105:10",
"text": " @notice Returns the address of the ACL manager.\n @return The address of the ACLManager"
},
"functionSelector": "707cd716",
"id": 1331,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getACLManager",
"nameLocation": "6837:13:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1327,
"nodeType": "ParameterList",
"parameters": [],
"src": "6850:2:10"
},
"returnParameters": {
"id": 1330,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1329,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1331,
"src": "6876:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1328,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6876:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "6875:9:10"
},
"scope": 1374,
"src": "6828:57:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1332,
"nodeType": "StructuredDocumentation",
"src": "6889:122:10",
"text": " @notice Updates the address of the ACL manager.\n @param newAclManager The address of the new ACLManager"
},
"functionSelector": "ed301ca9",
"id": 1337,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setACLManager",
"nameLocation": "7023:13:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1335,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1334,
"mutability": "mutable",
"name": "newAclManager",
"nameLocation": "7045:13:10",
"nodeType": "VariableDeclaration",
"scope": 1337,
"src": "7037:21:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1333,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7037:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "7036:23:10"
},
"returnParameters": {
"id": 1336,
"nodeType": "ParameterList",
"parameters": [],
"src": "7068:0:10"
},
"scope": 1374,
"src": "7014:55:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1338,
"nodeType": "StructuredDocumentation",
"src": "7073:102:10",
"text": " @notice Returns the address of the ACL admin.\n @return The address of the ACL admin"
},
"functionSelector": "0e67178c",
"id": 1343,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getACLAdmin",
"nameLocation": "7187:11:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1339,
"nodeType": "ParameterList",
"parameters": [],
"src": "7198:2:10"
},
"returnParameters": {
"id": 1342,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1341,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1343,
"src": "7224:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1340,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7224:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "7223:9:10"
},
"scope": 1374,
"src": "7178:55:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1344,
"nodeType": "StructuredDocumentation",
"src": "7237:117:10",
"text": " @notice Updates the address of the ACL admin.\n @param newAclAdmin The address of the new ACL admin"
},
"functionSelector": "76d84ffc",
"id": 1349,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setACLAdmin",
"nameLocation": "7366:11:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1347,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1346,
"mutability": "mutable",
"name": "newAclAdmin",
"nameLocation": "7386:11:10",
"nodeType": "VariableDeclaration",
"scope": 1349,
"src": "7378:19:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1345,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7378:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "7377:21:10"
},
"returnParameters": {
"id": 1348,
"nodeType": "ParameterList",
"parameters": [],
"src": "7407:0:10"
},
"scope": 1374,
"src": "7357:51:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1350,
"nodeType": "StructuredDocumentation",
"src": "7412:124:10",
"text": " @notice Returns the address of the price oracle sentinel.\n @return The address of the PriceOracleSentinel"
},
"functionSelector": "5eb88d3d",
"id": 1355,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPriceOracleSentinel",
"nameLocation": "7548:22:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1351,
"nodeType": "ParameterList",
"parameters": [],
"src": "7570:2:10"
},
"returnParameters": {
"id": 1354,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1353,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1355,
"src": "7596:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1352,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7596:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "7595:9:10"
},
"scope": 1374,
"src": "7539:66:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1356,
"nodeType": "StructuredDocumentation",
"src": "7609:150:10",
"text": " @notice Updates the address of the price oracle sentinel.\n @param newPriceOracleSentinel The address of the new PriceOracleSentinel"
},
"functionSelector": "74944cec",
"id": 1361,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPriceOracleSentinel",
"nameLocation": "7771:22:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1359,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1358,
"mutability": "mutable",
"name": "newPriceOracleSentinel",
"nameLocation": "7802:22:10",
"nodeType": "VariableDeclaration",
"scope": 1361,
"src": "7794:30:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1357,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7794:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "7793:32:10"
},
"returnParameters": {
"id": 1360,
"nodeType": "ParameterList",
"parameters": [],
"src": "7834:0:10"
},
"scope": 1374,
"src": "7762:73:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1362,
"nodeType": "StructuredDocumentation",
"src": "7839:109:10",
"text": " @notice Returns the address of the data provider.\n @return The address of the DataProvider"
},
"functionSelector": "e860accb",
"id": 1367,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPoolDataProvider",
"nameLocation": "7960:19:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1363,
"nodeType": "ParameterList",
"parameters": [],
"src": "7979:2:10"
},
"returnParameters": {
"id": 1366,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1365,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1367,
"src": "8005:7:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1364,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "8005:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "8004:9:10"
},
"scope": 1374,
"src": "7951:63:10",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1368,
"nodeType": "StructuredDocumentation",
"src": "8018:128:10",
"text": " @notice Updates the address of the data provider.\n @param newDataProvider The address of the new DataProvider"
},
"functionSelector": "e44e9ed1",
"id": 1373,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPoolDataProvider",
"nameLocation": "8158:19:10",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1371,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1370,
"mutability": "mutable",
"name": "newDataProvider",
"nameLocation": "8186:15:10",
"nodeType": "VariableDeclaration",
"scope": 1373,
"src": "8178:23:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1369,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "8178:7:10",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "8177:25:10"
},
"returnParameters": {
"id": 1372,
"nodeType": "ParameterList",
"parameters": [],
"src": "8211:0:10"
},
"scope": 1374,
"src": "8149:63:10",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 1375,
"src": "189:8025:10",
"usedErrors": [],
"usedEvents": [
1175,
1182,
1189,
1196,
1203,
1210,
1217,
1224,
1233,
1242,
1253
]
}
],
"src": "37:8178:10"
},
"id": 10
},
"@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"exportedSymbols": {
"IPriceOracleGetter": [
1398
]
},
"id": 1399,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1376,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:11"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IPriceOracleGetter",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 1377,
"nodeType": "StructuredDocumentation",
"src": "62:100:11",
"text": " @title IPriceOracleGetter\n @author Aave\n @notice Interface for the Aave price oracle."
},
"fullyImplemented": false,
"id": 1398,
"linearizedBaseContracts": [
1398
],
"name": "IPriceOracleGetter",
"nameLocation": "173:18:11",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 1378,
"nodeType": "StructuredDocumentation",
"src": "196:164:11",
"text": " @notice Returns the base currency address\n @dev Address 0x0 is reserved for USD as base currency.\n @return Returns the base currency address."
},
"functionSelector": "e19f4700",
"id": 1383,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "BASE_CURRENCY",
"nameLocation": "372:13:11",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1379,
"nodeType": "ParameterList",
"parameters": [],
"src": "385:2:11"
},
"returnParameters": {
"id": 1382,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1381,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1383,
"src": "411:7:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1380,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "411:7:11",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "410:9:11"
},
"scope": 1398,
"src": "363:57:11",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1384,
"nodeType": "StructuredDocumentation",
"src": "424:138:11",
"text": " @notice Returns the base currency unit\n @dev 1 ether for ETH, 1e8 for USD.\n @return Returns the base currency unit."
},
"functionSelector": "8c89b64f",
"id": 1389,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "BASE_CURRENCY_UNIT",
"nameLocation": "574:18:11",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1385,
"nodeType": "ParameterList",
"parameters": [],
"src": "592:2:11"
},
"returnParameters": {
"id": 1388,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1387,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1389,
"src": "618:7:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1386,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "618:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "617:9:11"
},
"scope": 1398,
"src": "565:62:11",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 1390,
"nodeType": "StructuredDocumentation",
"src": "631:146:11",
"text": " @notice Returns the asset price in the base currency\n @param asset The address of the asset\n @return The price of the asset"
},
"functionSelector": "b3596f07",
"id": 1397,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getAssetPrice",
"nameLocation": "789:13:11",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1393,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1392,
"mutability": "mutable",
"name": "asset",
"nameLocation": "811:5:11",
"nodeType": "VariableDeclaration",
"scope": 1397,
"src": "803:13:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1391,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "803:7:11",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "802:15:11"
},
"returnParameters": {
"id": 1396,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1395,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1397,
"src": "841:7:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1394,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "841:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "840:9:11"
},
"scope": 1398,
"src": "780:70:11",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 1399,
"src": "163:689:11",
"usedErrors": [],
"usedEvents": []
}
],
"src": "37:816:11"
},
"id": 11
},
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol": {
"ast": {
"absolutePath": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"exportedSymbols": {
"DataTypes": [
1750
]
},
"id": 1751,
"license": "BUSL-1.1",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1400,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "37:23:12"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "DataTypes",
"contractDependencies": [],
"contractKind": "library",
"fullyImplemented": true,
"id": 1750,
"linearizedBaseContracts": [
1750
],
"name": "DataTypes",
"nameLocation": "70:9:12",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "DataTypes.ReserveData",
"id": 1432,
"members": [
{
"constant": false,
"id": 1403,
"mutability": "mutable",
"name": "configuration",
"nameLocation": "172:13:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "148:37:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_storage_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
},
"typeName": {
"id": 1402,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1401,
"name": "ReserveConfigurationMap",
"nameLocations": [
"148:23:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1435,
"src": "148:23:12"
},
"referencedDeclaration": 1435,
"src": "148:23:12",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_storage_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1405,
"mutability": "mutable",
"name": "liquidityIndex",
"nameLocation": "243:14:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "235:22:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1404,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "235:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1407,
"mutability": "mutable",
"name": "currentLiquidityRate",
"nameLocation": "319:20:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "311:28:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1406,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "311:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1409,
"mutability": "mutable",
"name": "variableBorrowIndex",
"nameLocation": "399:19:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "391:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1408,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "391:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1411,
"mutability": "mutable",
"name": "currentVariableBorrowRate",
"nameLocation": "489:25:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "481:33:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1410,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "481:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1413,
"mutability": "mutable",
"name": "currentStableBorrowRate",
"nameLocation": "583:23:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "575:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1412,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "575:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1415,
"mutability": "mutable",
"name": "lastUpdateTimestamp",
"nameLocation": "650:19:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "643:26:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint40",
"typeString": "uint40"
},
"typeName": {
"id": 1414,
"name": "uint40",
"nodeType": "ElementaryTypeName",
"src": "643:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint40",
"typeString": "uint40"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1417,
"mutability": "mutable",
"name": "id",
"nameLocation": "770:2:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "763:9:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1416,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "763:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1419,
"mutability": "mutable",
"name": "aTokenAddress",
"nameLocation": "807:13:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "799:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1418,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "799:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1421,
"mutability": "mutable",
"name": "stableDebtTokenAddress",
"nameLocation": "864:22:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "856:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1420,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "856:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1423,
"mutability": "mutable",
"name": "variableDebtTokenAddress",
"nameLocation": "932:24:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "924:32:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1422,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "924:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1425,
"mutability": "mutable",
"name": "interestRateStrategyAddress",
"nameLocation": "1014:27:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "1006:35:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1424,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1006:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1427,
"mutability": "mutable",
"name": "accruedToTreasury",
"nameLocation": "1098:17:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "1090:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1426,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "1090:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1429,
"mutability": "mutable",
"name": "unbacked",
"nameLocation": "1204:8:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "1196:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1428,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "1196:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1431,
"mutability": "mutable",
"name": "isolationModeTotalDebt",
"nameLocation": "1299:22:12",
"nodeType": "VariableDeclaration",
"scope": 1432,
"src": "1291:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
},
"typeName": {
"id": 1430,
"name": "uint128",
"nodeType": "ElementaryTypeName",
"src": "1291:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint128",
"typeString": "uint128"
}
},
"visibility": "internal"
}
],
"name": "ReserveData",
"nameLocation": "91:11:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "84:1242:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ReserveConfigurationMap",
"id": 1435,
"members": [
{
"constant": false,
"id": 1434,
"mutability": "mutable",
"name": "data",
"nameLocation": "2260:4:12",
"nodeType": "VariableDeclaration",
"scope": 1435,
"src": "2252:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1433,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2252:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "ReserveConfigurationMap",
"nameLocation": "1337:23:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "1330:939:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.UserConfigurationMap",
"id": 1439,
"members": [
{
"constant": false,
"id": 1438,
"mutability": "mutable",
"name": "data",
"nameLocation": "2578:4:12",
"nodeType": "VariableDeclaration",
"scope": 1439,
"src": "2570:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1437,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2570:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "UserConfigurationMap",
"nameLocation": "2280:20:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "2273:314:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.EModeCategory",
"id": 1450,
"members": [
{
"constant": false,
"id": 1441,
"mutability": "mutable",
"name": "ltv",
"nameLocation": "2695:3:12",
"nodeType": "VariableDeclaration",
"scope": 1450,
"src": "2688:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1440,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2688:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1443,
"mutability": "mutable",
"name": "liquidationThreshold",
"nameLocation": "2711:20:12",
"nodeType": "VariableDeclaration",
"scope": 1450,
"src": "2704:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1442,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2704:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1445,
"mutability": "mutable",
"name": "liquidationBonus",
"nameLocation": "2744:16:12",
"nodeType": "VariableDeclaration",
"scope": 1450,
"src": "2737:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1444,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2737:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1447,
"mutability": "mutable",
"name": "priceSource",
"nameLocation": "2885:11:12",
"nodeType": "VariableDeclaration",
"scope": 1450,
"src": "2877:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1446,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2877:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1449,
"mutability": "mutable",
"name": "label",
"nameLocation": "2909:5:12",
"nodeType": "VariableDeclaration",
"scope": 1450,
"src": "2902:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 1448,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2902:6:12",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"name": "EModeCategory",
"nameLocation": "2598:13:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "2591:328:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.InterestRateMode",
"id": 1454,
"members": [
{
"id": 1451,
"name": "NONE",
"nameLocation": "2946:4:12",
"nodeType": "EnumValue",
"src": "2946:4:12"
},
{
"id": 1452,
"name": "STABLE",
"nameLocation": "2952:6:12",
"nodeType": "EnumValue",
"src": "2952:6:12"
},
{
"id": 1453,
"name": "VARIABLE",
"nameLocation": "2960:8:12",
"nodeType": "EnumValue",
"src": "2960:8:12"
}
],
"name": "InterestRateMode",
"nameLocation": "2928:16:12",
"nodeType": "EnumDefinition",
"src": "2923:46:12"
},
{
"canonicalName": "DataTypes.ReserveCache",
"id": 1496,
"members": [
{
"constant": false,
"id": 1456,
"mutability": "mutable",
"name": "currScaledVariableDebt",
"nameLocation": "3007:22:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "2999:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1455,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2999:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1458,
"mutability": "mutable",
"name": "nextScaledVariableDebt",
"nameLocation": "3043:22:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3035:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1457,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3035:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1460,
"mutability": "mutable",
"name": "currPrincipalStableDebt",
"nameLocation": "3079:23:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3071:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1459,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3071:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1462,
"mutability": "mutable",
"name": "currAvgStableBorrowRate",
"nameLocation": "3116:23:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3108:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1461,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3108:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1464,
"mutability": "mutable",
"name": "currTotalStableDebt",
"nameLocation": "3153:19:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3145:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1463,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3145:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1466,
"mutability": "mutable",
"name": "nextAvgStableBorrowRate",
"nameLocation": "3186:23:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3178:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1465,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3178:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1468,
"mutability": "mutable",
"name": "nextTotalStableDebt",
"nameLocation": "3223:19:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3215:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1467,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3215:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1470,
"mutability": "mutable",
"name": "currLiquidityIndex",
"nameLocation": "3256:18:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3248:26:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1469,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3248:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1472,
"mutability": "mutable",
"name": "nextLiquidityIndex",
"nameLocation": "3288:18:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3280:26:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1471,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3280:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1474,
"mutability": "mutable",
"name": "currVariableBorrowIndex",
"nameLocation": "3320:23:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3312:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1473,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3312:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1476,
"mutability": "mutable",
"name": "nextVariableBorrowIndex",
"nameLocation": "3357:23:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3349:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1475,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3349:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1478,
"mutability": "mutable",
"name": "currLiquidityRate",
"nameLocation": "3394:17:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3386:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1477,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3386:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1480,
"mutability": "mutable",
"name": "currVariableBorrowRate",
"nameLocation": "3425:22:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3417:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1479,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3417:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1482,
"mutability": "mutable",
"name": "reserveFactor",
"nameLocation": "3461:13:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3453:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1481,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3453:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1485,
"mutability": "mutable",
"name": "reserveConfiguration",
"nameLocation": "3504:20:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3480:44:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_storage_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
},
"typeName": {
"id": 1484,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1483,
"name": "ReserveConfigurationMap",
"nameLocations": [
"3480:23:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1435,
"src": "3480:23:12"
},
"referencedDeclaration": 1435,
"src": "3480:23:12",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$1435_storage_ptr",
"typeString": "struct DataTypes.ReserveConfigurationMap"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1487,
"mutability": "mutable",
"name": "aTokenAddress",
"nameLocation": "3538:13:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3530:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1486,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3530:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1489,
"mutability": "mutable",
"name": "stableDebtTokenAddress",
"nameLocation": "3565:22:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3557:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1488,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3557:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1491,
"mutability": "mutable",
"name": "variableDebtTokenAddress",
"nameLocation": "3601:24:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3593:32:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1490,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3593:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1493,
"mutability": "mutable",
"name": "reserveLastUpdateTimestamp",
"nameLocation": "3638:26:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3631:33:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint40",
"typeString": "uint40"
},
"typeName": {
"id": 1492,
"name": "uint40",
"nodeType": "ElementaryTypeName",
"src": "3631:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint40",
"typeString": "uint40"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1495,
"mutability": "mutable",
"name": "stableDebtLastUpdateTimestamp",
"nameLocation": "3677:29:12",
"nodeType": "VariableDeclaration",
"scope": 1496,
"src": "3670:36:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint40",
"typeString": "uint40"
},
"typeName": {
"id": 1494,
"name": "uint40",
"nodeType": "ElementaryTypeName",
"src": "3670:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint40",
"typeString": "uint40"
}
},
"visibility": "internal"
}
],
"name": "ReserveCache",
"nameLocation": "2980:12:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "2973:738:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ExecuteLiquidationCallParams",
"id": 1515,
"members": [
{
"constant": false,
"id": 1498,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "3765:13:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3757:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1497,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3757:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1500,
"mutability": "mutable",
"name": "debtToCover",
"nameLocation": "3792:11:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3784:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1499,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3784:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1502,
"mutability": "mutable",
"name": "collateralAsset",
"nameLocation": "3817:15:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3809:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1501,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3809:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1504,
"mutability": "mutable",
"name": "debtAsset",
"nameLocation": "3846:9:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3838:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1503,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3838:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1506,
"mutability": "mutable",
"name": "user",
"nameLocation": "3869:4:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3861:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1505,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3861:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1508,
"mutability": "mutable",
"name": "receiveAToken",
"nameLocation": "3884:13:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3879:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1507,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3879:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1510,
"mutability": "mutable",
"name": "priceOracle",
"nameLocation": "3911:11:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3903:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1509,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3903:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1512,
"mutability": "mutable",
"name": "userEModeCategory",
"nameLocation": "3934:17:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3928:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1511,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "3928:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1514,
"mutability": "mutable",
"name": "priceOracleSentinel",
"nameLocation": "3965:19:12",
"nodeType": "VariableDeclaration",
"scope": 1515,
"src": "3957:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1513,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3957:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"name": "ExecuteLiquidationCallParams",
"nameLocation": "3722:28:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "3715:274:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ExecuteSupplyParams",
"id": 1524,
"members": [
{
"constant": false,
"id": 1517,
"mutability": "mutable",
"name": "asset",
"nameLocation": "4034:5:12",
"nodeType": "VariableDeclaration",
"scope": 1524,
"src": "4026:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1516,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4026:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1519,
"mutability": "mutable",
"name": "amount",
"nameLocation": "4053:6:12",
"nodeType": "VariableDeclaration",
"scope": 1524,
"src": "4045:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1518,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4045:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1521,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "4073:10:12",
"nodeType": "VariableDeclaration",
"scope": 1524,
"src": "4065:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1520,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4065:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1523,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "4096:12:12",
"nodeType": "VariableDeclaration",
"scope": 1524,
"src": "4089:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1522,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "4089:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"name": "ExecuteSupplyParams",
"nameLocation": "4000:19:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "3993:120:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ExecuteBorrowParams",
"id": 1550,
"members": [
{
"constant": false,
"id": 1526,
"mutability": "mutable",
"name": "asset",
"nameLocation": "4158:5:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4150:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1525,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4150:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1528,
"mutability": "mutable",
"name": "user",
"nameLocation": "4177:4:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4169:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1527,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4169:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1530,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "4195:10:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4187:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1529,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4187:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1532,
"mutability": "mutable",
"name": "amount",
"nameLocation": "4219:6:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4211:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1531,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4211:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1535,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "4248:16:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4231:33:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
},
"typeName": {
"id": 1534,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1533,
"name": "InterestRateMode",
"nameLocations": [
"4231:16:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1454,
"src": "4231:16:12"
},
"referencedDeclaration": 1454,
"src": "4231:16:12",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1537,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "4277:12:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4270:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1536,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "4270:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1539,
"mutability": "mutable",
"name": "releaseUnderlying",
"nameLocation": "4300:17:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4295:22:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1538,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "4295:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1541,
"mutability": "mutable",
"name": "maxStableRateBorrowSizePercent",
"nameLocation": "4331:30:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4323:38:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1540,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4323:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1543,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "4375:13:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4367:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1542,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4367:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1545,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "4402:6:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4394:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1544,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4394:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1547,
"mutability": "mutable",
"name": "userEModeCategory",
"nameLocation": "4420:17:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4414:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1546,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "4414:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1549,
"mutability": "mutable",
"name": "priceOracleSentinel",
"nameLocation": "4451:19:12",
"nodeType": "VariableDeclaration",
"scope": 1550,
"src": "4443:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1548,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4443:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"name": "ExecuteBorrowParams",
"nameLocation": "4124:19:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "4117:358:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ExecuteRepayParams",
"id": 1562,
"members": [
{
"constant": false,
"id": 1552,
"mutability": "mutable",
"name": "asset",
"nameLocation": "4519:5:12",
"nodeType": "VariableDeclaration",
"scope": 1562,
"src": "4511:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1551,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4511:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1554,
"mutability": "mutable",
"name": "amount",
"nameLocation": "4538:6:12",
"nodeType": "VariableDeclaration",
"scope": 1562,
"src": "4530:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1553,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4530:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1557,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "4567:16:12",
"nodeType": "VariableDeclaration",
"scope": 1562,
"src": "4550:33:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
},
"typeName": {
"id": 1556,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1555,
"name": "InterestRateMode",
"nameLocations": [
"4550:16:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1454,
"src": "4550:16:12"
},
"referencedDeclaration": 1454,
"src": "4550:16:12",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1559,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "4597:10:12",
"nodeType": "VariableDeclaration",
"scope": 1562,
"src": "4589:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1558,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4589:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1561,
"mutability": "mutable",
"name": "useATokens",
"nameLocation": "4618:10:12",
"nodeType": "VariableDeclaration",
"scope": 1562,
"src": "4613:15:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1560,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "4613:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"name": "ExecuteRepayParams",
"nameLocation": "4486:18:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "4479:154:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ExecuteWithdrawParams",
"id": 1575,
"members": [
{
"constant": false,
"id": 1564,
"mutability": "mutable",
"name": "asset",
"nameLocation": "4680:5:12",
"nodeType": "VariableDeclaration",
"scope": 1575,
"src": "4672:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1563,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4672:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1566,
"mutability": "mutable",
"name": "amount",
"nameLocation": "4699:6:12",
"nodeType": "VariableDeclaration",
"scope": 1575,
"src": "4691:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1565,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4691:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1568,
"mutability": "mutable",
"name": "to",
"nameLocation": "4719:2:12",
"nodeType": "VariableDeclaration",
"scope": 1575,
"src": "4711:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1567,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4711:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1570,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "4735:13:12",
"nodeType": "VariableDeclaration",
"scope": 1575,
"src": "4727:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1569,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4727:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1572,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "4762:6:12",
"nodeType": "VariableDeclaration",
"scope": 1575,
"src": "4754:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1571,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4754:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1574,
"mutability": "mutable",
"name": "userEModeCategory",
"nameLocation": "4780:17:12",
"nodeType": "VariableDeclaration",
"scope": 1575,
"src": "4774:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1573,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "4774:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"name": "ExecuteWithdrawParams",
"nameLocation": "4644:21:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "4637:165:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ExecuteSetUserEModeParams",
"id": 1582,
"members": [
{
"constant": false,
"id": 1577,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "4853:13:12",
"nodeType": "VariableDeclaration",
"scope": 1582,
"src": "4845:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1576,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4845:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1579,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "4880:6:12",
"nodeType": "VariableDeclaration",
"scope": 1582,
"src": "4872:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1578,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4872:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1581,
"mutability": "mutable",
"name": "categoryId",
"nameLocation": "4898:10:12",
"nodeType": "VariableDeclaration",
"scope": 1582,
"src": "4892:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1580,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "4892:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"name": "ExecuteSetUserEModeParams",
"nameLocation": "4813:25:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "4806:107:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.FinalizeTransferParams",
"id": 1601,
"members": [
{
"constant": false,
"id": 1584,
"mutability": "mutable",
"name": "asset",
"nameLocation": "4961:5:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "4953:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1583,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4953:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1586,
"mutability": "mutable",
"name": "from",
"nameLocation": "4980:4:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "4972:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1585,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4972:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1588,
"mutability": "mutable",
"name": "to",
"nameLocation": "4998:2:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "4990:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1587,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4990:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1590,
"mutability": "mutable",
"name": "amount",
"nameLocation": "5014:6:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "5006:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1589,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5006:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1592,
"mutability": "mutable",
"name": "balanceFromBefore",
"nameLocation": "5034:17:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "5026:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1591,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5026:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1594,
"mutability": "mutable",
"name": "balanceToBefore",
"nameLocation": "5065:15:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "5057:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1593,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5057:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1596,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "5094:13:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "5086:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1595,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5086:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1598,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "5121:6:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "5113:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1597,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5113:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1600,
"mutability": "mutable",
"name": "fromEModeCategory",
"nameLocation": "5139:17:12",
"nodeType": "VariableDeclaration",
"scope": 1601,
"src": "5133:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1599,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "5133:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"name": "FinalizeTransferParams",
"nameLocation": "4924:22:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "4917:244:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.FlashloanParams",
"id": 1633,
"members": [
{
"constant": false,
"id": 1603,
"mutability": "mutable",
"name": "receiverAddress",
"nameLocation": "5202:15:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5194:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1602,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5194:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1606,
"mutability": "mutable",
"name": "assets",
"nameLocation": "5233:6:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5223:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 1604,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5223:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 1605,
"nodeType": "ArrayTypeName",
"src": "5223:9:12",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1609,
"mutability": "mutable",
"name": "amounts",
"nameLocation": "5255:7:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5245:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 1607,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5245:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1608,
"nodeType": "ArrayTypeName",
"src": "5245:9:12",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1612,
"mutability": "mutable",
"name": "interestRateModes",
"nameLocation": "5278:17:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5268:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 1610,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5268:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 1611,
"nodeType": "ArrayTypeName",
"src": "5268:9:12",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1614,
"mutability": "mutable",
"name": "onBehalfOf",
"nameLocation": "5309:10:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5301:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1613,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5301:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1616,
"mutability": "mutable",
"name": "params",
"nameLocation": "5331:6:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5325:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1615,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "5325:5:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1618,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "5350:12:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5343:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1617,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "5343:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1620,
"mutability": "mutable",
"name": "flashLoanPremiumToProtocol",
"nameLocation": "5376:26:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5368:34:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1619,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5368:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1622,
"mutability": "mutable",
"name": "flashLoanPremiumTotal",
"nameLocation": "5416:21:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5408:29:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1621,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5408:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1624,
"mutability": "mutable",
"name": "maxStableRateBorrowSizePercent",
"nameLocation": "5451:30:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5443:38:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1623,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5443:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1626,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "5495:13:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5487:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1625,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5487:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1628,
"mutability": "mutable",
"name": "addressesProvider",
"nameLocation": "5522:17:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5514:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1627,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5514:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1630,
"mutability": "mutable",
"name": "userEModeCategory",
"nameLocation": "5551:17:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5545:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1629,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "5545:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1632,
"mutability": "mutable",
"name": "isAuthorizedFlashBorrower",
"nameLocation": "5579:25:12",
"nodeType": "VariableDeclaration",
"scope": 1633,
"src": "5574:30:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1631,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "5574:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"name": "FlashloanParams",
"nameLocation": "5172:15:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "5165:444:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.FlashloanSimpleParams",
"id": 1648,
"members": [
{
"constant": false,
"id": 1635,
"mutability": "mutable",
"name": "receiverAddress",
"nameLocation": "5656:15:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5648:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1634,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5648:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1637,
"mutability": "mutable",
"name": "asset",
"nameLocation": "5685:5:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5677:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1636,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5677:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1639,
"mutability": "mutable",
"name": "amount",
"nameLocation": "5704:6:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5696:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1638,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5696:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1641,
"mutability": "mutable",
"name": "params",
"nameLocation": "5722:6:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5716:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1640,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "5716:5:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1643,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "5741:12:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5734:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1642,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "5734:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1645,
"mutability": "mutable",
"name": "flashLoanPremiumToProtocol",
"nameLocation": "5767:26:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5759:34:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1644,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5759:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1647,
"mutability": "mutable",
"name": "flashLoanPremiumTotal",
"nameLocation": "5807:21:12",
"nodeType": "VariableDeclaration",
"scope": 1648,
"src": "5799:29:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1646,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5799:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "FlashloanSimpleParams",
"nameLocation": "5620:21:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "5613:220:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.FlashLoanRepaymentParams",
"id": 1661,
"members": [
{
"constant": false,
"id": 1650,
"mutability": "mutable",
"name": "amount",
"nameLocation": "5883:6:12",
"nodeType": "VariableDeclaration",
"scope": 1661,
"src": "5875:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1649,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5875:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1652,
"mutability": "mutable",
"name": "totalPremium",
"nameLocation": "5903:12:12",
"nodeType": "VariableDeclaration",
"scope": 1661,
"src": "5895:20:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1651,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5895:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1654,
"mutability": "mutable",
"name": "flashLoanPremiumToProtocol",
"nameLocation": "5929:26:12",
"nodeType": "VariableDeclaration",
"scope": 1661,
"src": "5921:34:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1653,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5921:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1656,
"mutability": "mutable",
"name": "asset",
"nameLocation": "5969:5:12",
"nodeType": "VariableDeclaration",
"scope": 1661,
"src": "5961:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1655,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5961:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1658,
"mutability": "mutable",
"name": "receiverAddress",
"nameLocation": "5988:15:12",
"nodeType": "VariableDeclaration",
"scope": 1661,
"src": "5980:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1657,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5980:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1660,
"mutability": "mutable",
"name": "referralCode",
"nameLocation": "6016:12:12",
"nodeType": "VariableDeclaration",
"scope": 1661,
"src": "6009:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1659,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "6009:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"name": "FlashLoanRepaymentParams",
"nameLocation": "5844:24:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "5837:196:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.CalculateUserAccountDataParams",
"id": 1673,
"members": [
{
"constant": false,
"id": 1664,
"mutability": "mutable",
"name": "userConfig",
"nameLocation": "6102:10:12",
"nodeType": "VariableDeclaration",
"scope": 1673,
"src": "6081:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_UserConfigurationMap_$1439_storage_ptr",
"typeString": "struct DataTypes.UserConfigurationMap"
},
"typeName": {
"id": 1663,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1662,
"name": "UserConfigurationMap",
"nameLocations": [
"6081:20:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1439,
"src": "6081:20:12"
},
"referencedDeclaration": 1439,
"src": "6081:20:12",
"typeDescriptions": {
"typeIdentifier": "t_struct$_UserConfigurationMap_$1439_storage_ptr",
"typeString": "struct DataTypes.UserConfigurationMap"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1666,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "6126:13:12",
"nodeType": "VariableDeclaration",
"scope": 1673,
"src": "6118:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1665,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6118:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1668,
"mutability": "mutable",
"name": "user",
"nameLocation": "6153:4:12",
"nodeType": "VariableDeclaration",
"scope": 1673,
"src": "6145:12:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1667,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6145:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1670,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "6171:6:12",
"nodeType": "VariableDeclaration",
"scope": 1673,
"src": "6163:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1669,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6163:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1672,
"mutability": "mutable",
"name": "userEModeCategory",
"nameLocation": "6189:17:12",
"nodeType": "VariableDeclaration",
"scope": 1673,
"src": "6183:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1671,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "6183:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"name": "CalculateUserAccountDataParams",
"nameLocation": "6044:30:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "6037:174:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ValidateBorrowParams",
"id": 1705,
"members": [
{
"constant": false,
"id": 1676,
"mutability": "mutable",
"name": "reserveCache",
"nameLocation": "6262:12:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6249:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveCache_$1496_storage_ptr",
"typeString": "struct DataTypes.ReserveCache"
},
"typeName": {
"id": 1675,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1674,
"name": "ReserveCache",
"nameLocations": [
"6249:12:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1496,
"src": "6249:12:12"
},
"referencedDeclaration": 1496,
"src": "6249:12:12",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveCache_$1496_storage_ptr",
"typeString": "struct DataTypes.ReserveCache"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1679,
"mutability": "mutable",
"name": "userConfig",
"nameLocation": "6301:10:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6280:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_UserConfigurationMap_$1439_storage_ptr",
"typeString": "struct DataTypes.UserConfigurationMap"
},
"typeName": {
"id": 1678,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1677,
"name": "UserConfigurationMap",
"nameLocations": [
"6280:20:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1439,
"src": "6280:20:12"
},
"referencedDeclaration": 1439,
"src": "6280:20:12",
"typeDescriptions": {
"typeIdentifier": "t_struct$_UserConfigurationMap_$1439_storage_ptr",
"typeString": "struct DataTypes.UserConfigurationMap"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1681,
"mutability": "mutable",
"name": "asset",
"nameLocation": "6325:5:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6317:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1680,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6317:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1683,
"mutability": "mutable",
"name": "userAddress",
"nameLocation": "6344:11:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6336:19:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1682,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6336:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1685,
"mutability": "mutable",
"name": "amount",
"nameLocation": "6369:6:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6361:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1684,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6361:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1688,
"mutability": "mutable",
"name": "interestRateMode",
"nameLocation": "6398:16:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6381:33:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
},
"typeName": {
"id": 1687,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1686,
"name": "InterestRateMode",
"nameLocations": [
"6381:16:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1454,
"src": "6381:16:12"
},
"referencedDeclaration": 1454,
"src": "6381:16:12",
"typeDescriptions": {
"typeIdentifier": "t_enum$_InterestRateMode_$1454",
"typeString": "enum DataTypes.InterestRateMode"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1690,
"mutability": "mutable",
"name": "maxStableLoanPercent",
"nameLocation": "6428:20:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6420:28:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1689,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6420:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1692,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "6462:13:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6454:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1691,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6454:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1694,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "6489:6:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6481:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1693,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6481:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1696,
"mutability": "mutable",
"name": "userEModeCategory",
"nameLocation": "6507:17:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6501:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1695,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "6501:5:12",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1698,
"mutability": "mutable",
"name": "priceOracleSentinel",
"nameLocation": "6538:19:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6530:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1697,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6530:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1700,
"mutability": "mutable",
"name": "isolationModeActive",
"nameLocation": "6568:19:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6563:24:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1699,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "6563:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1702,
"mutability": "mutable",
"name": "isolationModeCollateralAddress",
"nameLocation": "6601:30:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6593:38:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1701,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6593:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1704,
"mutability": "mutable",
"name": "isolationModeDebtCeiling",
"nameLocation": "6645:24:12",
"nodeType": "VariableDeclaration",
"scope": 1705,
"src": "6637:32:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1703,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6637:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "ValidateBorrowParams",
"nameLocation": "6222:20:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "6215:459:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.ValidateLiquidationCallParams",
"id": 1715,
"members": [
{
"constant": false,
"id": 1708,
"mutability": "mutable",
"name": "debtReserveCache",
"nameLocation": "6734:16:12",
"nodeType": "VariableDeclaration",
"scope": 1715,
"src": "6721:29:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveCache_$1496_storage_ptr",
"typeString": "struct DataTypes.ReserveCache"
},
"typeName": {
"id": 1707,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1706,
"name": "ReserveCache",
"nameLocations": [
"6721:12:12"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1496,
"src": "6721:12:12"
},
"referencedDeclaration": 1496,
"src": "6721:12:12",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveCache_$1496_storage_ptr",
"typeString": "struct DataTypes.ReserveCache"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1710,
"mutability": "mutable",
"name": "totalDebt",
"nameLocation": "6764:9:12",
"nodeType": "VariableDeclaration",
"scope": 1715,
"src": "6756:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1709,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6756:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1712,
"mutability": "mutable",
"name": "healthFactor",
"nameLocation": "6787:12:12",
"nodeType": "VariableDeclaration",
"scope": 1715,
"src": "6779:20:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1711,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6779:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1714,
"mutability": "mutable",
"name": "priceOracleSentinel",
"nameLocation": "6813:19:12",
"nodeType": "VariableDeclaration",
"scope": 1715,
"src": "6805:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1713,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "6805:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"name": "ValidateLiquidationCallParams",
"nameLocation": "6685:29:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "6678:159:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.CalculateInterestRatesParams",
"id": 1734,
"members": [
{
"constant": false,
"id": 1717,
"mutability": "mutable",
"name": "unbacked",
"nameLocation": "6891:8:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "6883:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1716,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6883:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1719,
"mutability": "mutable",
"name": "liquidityAdded",
"nameLocation": "6913:14:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "6905:22:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1718,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6905:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1721,
"mutability": "mutable",
"name": "liquidityTaken",
"nameLocation": "6941:14:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "6933:22:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1720,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6933:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1723,
"mutability": "mutable",
"name": "totalStableDebt",
"nameLocation": "6969:15:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "6961:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1722,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6961:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1725,
"mutability": "mutable",
"name": "totalVariableDebt",
"nameLocation": "6998:17:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "6990:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1724,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "6990:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1727,
"mutability": "mutable",
"name": "averageStableBorrowRate",
"nameLocation": "7029:23:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "7021:31:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1726,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7021:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1729,
"mutability": "mutable",
"name": "reserveFactor",
"nameLocation": "7066:13:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "7058:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1728,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "7058:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1731,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "7093:7:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "7085:15:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1730,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7085:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1733,
"mutability": "mutable",
"name": "aToken",
"nameLocation": "7114:6:12",
"nodeType": "VariableDeclaration",
"scope": 1734,
"src": "7106:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1732,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7106:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"name": "CalculateInterestRatesParams",
"nameLocation": "6848:28:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "6841:284:12",
"visibility": "public"
},
{
"canonicalName": "DataTypes.InitReserveParams",
"id": 1749,
"members": [
{
"constant": false,
"id": 1736,
"mutability": "mutable",
"name": "asset",
"nameLocation": "7168:5:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7160:13:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1735,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7160:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1738,
"mutability": "mutable",
"name": "aTokenAddress",
"nameLocation": "7187:13:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7179:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1737,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7179:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1740,
"mutability": "mutable",
"name": "stableDebtAddress",
"nameLocation": "7214:17:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7206:25:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1739,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7206:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1742,
"mutability": "mutable",
"name": "variableDebtAddress",
"nameLocation": "7245:19:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7237:27:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1741,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7237:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1744,
"mutability": "mutable",
"name": "interestRateStrategyAddress",
"nameLocation": "7278:27:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7270:35:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1743,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "7270:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1746,
"mutability": "mutable",
"name": "reservesCount",
"nameLocation": "7318:13:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7311:20:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1745,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "7311:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1748,
"mutability": "mutable",
"name": "maxNumberReserves",
"nameLocation": "7344:17:12",
"nodeType": "VariableDeclaration",
"scope": 1749,
"src": "7337:24:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 1747,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "7337:6:12",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"name": "InitReserveParams",
"nameLocation": "7136:17:12",
"nodeType": "StructDefinition",
"scope": 1750,
"src": "7129:237:12",
"visibility": "public"
}
],
"scope": 1751,
"src": "62:7306:12",
"usedErrors": [],
"usedEvents": []
}
],
"src": "37:7332:12"
},
"id": 12
},
"contracts/adapters/paraswap/BaseParaSwapAdapter.sol": {
"ast": {
"absolutePath": "contracts/adapters/paraswap/BaseParaSwapAdapter.sol",
"exportedSymbols": {
"BaseParaSwapAdapter": [
2029
],
"DataTypes": [
1750
],
"FlashLoanSimpleReceiverBase": [
464
],
"GPv2SafeERC20": [
70
],
"IERC20": [
174
],
"IERC20Detailed": [
196
],
"IERC20WithPermit": [
526
],
"IPoolAddressesProvider": [
1374
],
"IPriceOracleGetter": [
1398
],
"Ownable": [
305
],
"SafeMath": [
425
]
},
"id": 2030,
"license": "AGPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1752,
"literals": [
"solidity",
"^",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "38:24:13"
},
{
"absolutePath": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"file": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
"id": 1754,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 1751,
"src": "66:89:13",
"symbolAliases": [
{
"foreign": {
"id": 1753,
"name": "DataTypes",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1750,
"src": "74:9:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"file": "@aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol",
"id": 1756,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 465,
"src": "157:115:13",
"symbolAliases": [
{
"foreign": {
"id": 1755,
"name": "FlashLoanSimpleReceiverBase",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 464,
"src": "165:27:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"file": "@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol",
"id": 1758,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 71,
"src": "274:102:13",
"symbolAliases": [
{
"foreign": {
"id": 1757,
"name": "GPv2SafeERC20",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 70,
"src": "282:13:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"file": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
"id": 1760,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 175,
"src": "378:94:13",
"symbolAliases": [
{
"foreign": {
"id": 1759,
"name": "IERC20",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 174,
"src": "386:6:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"file": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol",
"id": 1762,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 197,
"src": "474:110:13",
"symbolAliases": [
{
"foreign": {
"id": 1761,
"name": "IERC20Detailed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 196,
"src": "482:14:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"file": "@aave/core-v3/contracts/interfaces/IERC20WithPermit.sol",
"id": 1764,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 527,
"src": "586:89:13",
"symbolAliases": [
{
"foreign": {
"id": 1763,
"name": "IERC20WithPermit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 526,
"src": "594:16:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"file": "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"id": 1766,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 1375,
"src": "677:101:13",
"symbolAliases": [
{
"foreign": {
"id": 1765,
"name": "IPoolAddressesProvider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1374,
"src": "685:22:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"file": "@aave/core-v3/contracts/interfaces/IPriceOracleGetter.sol",
"id": 1768,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 1399,
"src": "780:93:13",
"symbolAliases": [
{
"foreign": {
"id": 1767,
"name": "IPriceOracleGetter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1398,
"src": "788:18:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"file": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeMath.sol",
"id": 1770,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 426,
"src": "875:98:13",
"symbolAliases": [
{
"foreign": {
"id": 1769,
"name": "SafeMath",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 425,
"src": "883:8:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"file": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Ownable.sol",
"id": 1772,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 2030,
"sourceUnit": 306,
"src": "975:96:13",
"symbolAliases": [
{
"foreign": {
"id": 1771,
"name": "Ownable",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 305,
"src": "983:7:13",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 1774,
"name": "FlashLoanSimpleReceiverBase",
"nameLocations": [
"1246:27:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 464,
"src": "1246:27:13"
},
"id": 1775,
"nodeType": "InheritanceSpecifier",
"src": "1246:27:13"
},
{
"baseName": {
"id": 1776,
"name": "Ownable",
"nameLocations": [
"1275:7:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 305,
"src": "1275:7:13"
},
"id": 1777,
"nodeType": "InheritanceSpecifier",
"src": "1275:7:13"
}
],
"canonicalName": "BaseParaSwapAdapter",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 1773,
"nodeType": "StructuredDocumentation",
"src": "1075:128:13",
"text": " @title BaseParaSwapAdapter\n @notice Utility functions for adapters using ParaSwap\n @author Jason Raymond Bell"
},
"fullyImplemented": false,
"id": 2029,
"linearizedBaseContracts": [
2029,
305,
96,
464,
500
],
"name": "BaseParaSwapAdapter",
"nameLocation": "1223:19:13",
"nodeType": "ContractDefinition",
"nodes": [
{
"global": false,
"id": 1780,
"libraryName": {
"id": 1778,
"name": "SafeMath",
"nameLocations": [
"1294:8:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 425,
"src": "1294:8:13"
},
"nodeType": "UsingForDirective",
"src": "1288:27:13",
"typeName": {
"id": 1779,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1307:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
{
"global": false,
"id": 1784,
"libraryName": {
"id": 1781,
"name": "GPv2SafeERC20",
"nameLocations": [
"1325:13:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 70,
"src": "1325:13:13"
},
"nodeType": "UsingForDirective",
"src": "1319:31:13",
"typeName": {
"id": 1783,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1782,
"name": "IERC20",
"nameLocations": [
"1343:6:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "1343:6:13"
},
"referencedDeclaration": 174,
"src": "1343:6:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
}
},
{
"global": false,
"id": 1788,
"libraryName": {
"id": 1785,
"name": "GPv2SafeERC20",
"nameLocations": [
"1360:13:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 70,
"src": "1360:13:13"
},
"nodeType": "UsingForDirective",
"src": "1354:39:13",
"typeName": {
"id": 1787,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1786,
"name": "IERC20Detailed",
"nameLocations": [
"1378:14:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 196,
"src": "1378:14:13"
},
"referencedDeclaration": 196,
"src": "1378:14:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Detailed_$196",
"typeString": "contract IERC20Detailed"
}
}
},
{
"global": false,
"id": 1792,
"libraryName": {
"id": 1789,
"name": "GPv2SafeERC20",
"nameLocations": [
"1403:13:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 70,
"src": "1403:13:13"
},
"nodeType": "UsingForDirective",
"src": "1397:41:13",
"typeName": {
"id": 1791,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1790,
"name": "IERC20WithPermit",
"nameLocations": [
"1421:16:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 526,
"src": "1421:16:13"
},
"referencedDeclaration": 526,
"src": "1421:16:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
}
},
{
"canonicalName": "BaseParaSwapAdapter.PermitSignature",
"id": 1803,
"members": [
{
"constant": false,
"id": 1794,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1482:6:13",
"nodeType": "VariableDeclaration",
"scope": 1803,
"src": "1474:14:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1793,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1474:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1796,
"mutability": "mutable",
"name": "deadline",
"nameLocation": "1503:8:13",
"nodeType": "VariableDeclaration",
"scope": 1803,
"src": "1495:16:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1795,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1495:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1798,
"mutability": "mutable",
"name": "v",
"nameLocation": "1524:1:13",
"nodeType": "VariableDeclaration",
"scope": 1803,
"src": "1518:7:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1797,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1518:5:13",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1800,
"mutability": "mutable",
"name": "r",
"nameLocation": "1540:1:13",
"nodeType": "VariableDeclaration",
"scope": 1803,
"src": "1532:9:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1799,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1532:7:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1802,
"mutability": "mutable",
"name": "s",
"nameLocation": "1556:1:13",
"nodeType": "VariableDeclaration",
"scope": 1803,
"src": "1548:9:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 1801,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1548:7:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"name": "PermitSignature",
"nameLocation": "1451:15:13",
"nodeType": "StructDefinition",
"scope": 2029,
"src": "1444:119:13",
"visibility": "public"
},
{
"constant": true,
"functionSelector": "32e4b286",
"id": 1806,
"mutability": "constant",
"name": "MAX_SLIPPAGE_PERCENT",
"nameLocation": "1628:20:13",
"nodeType": "VariableDeclaration",
"scope": 2029,
"src": "1604:51:13",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1804,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1604:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"hexValue": "33303030",
"id": 1805,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1651:4:13",
"typeDescriptions": {
"typeIdentifier": "t_rational_3000_by_1",
"typeString": "int_const 3000"
},
"value": "3000"
},
"visibility": "public"
},
{
"constant": false,
"functionSelector": "38013f02",
"id": 1809,
"mutability": "immutable",
"name": "ORACLE",
"nameLocation": "1705:6:13",
"nodeType": "VariableDeclaration",
"scope": 2029,
"src": "1669:42:13",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPriceOracleGetter_$1398",
"typeString": "contract IPriceOracleGetter"
},
"typeName": {
"id": 1808,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1807,
"name": "IPriceOracleGetter",
"nameLocations": [
"1669:18:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1398,
"src": "1669:18:13"
},
"referencedDeclaration": 1398,
"src": "1669:18:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPriceOracleGetter_$1398",
"typeString": "contract IPriceOracleGetter"
}
},
"visibility": "public"
},
{
"anonymous": false,
"eventSelector": "a078c4190abe07940190effc1846be0ccf03ad6007bc9e93f9697d0b460befbb",
"id": 1819,
"name": "Swapped",
"nameLocation": "1724:7:13",
"nodeType": "EventDefinition",
"parameters": {
"id": 1818,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1811,
"indexed": true,
"mutability": "mutable",
"name": "fromAsset",
"nameLocation": "1754:9:13",
"nodeType": "VariableDeclaration",
"scope": 1819,
"src": "1738:25:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1810,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1738:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1813,
"indexed": true,
"mutability": "mutable",
"name": "toAsset",
"nameLocation": "1786:7:13",
"nodeType": "VariableDeclaration",
"scope": 1819,
"src": "1770:23:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1812,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1770:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1815,
"indexed": false,
"mutability": "mutable",
"name": "fromAmount",
"nameLocation": "1808:10:13",
"nodeType": "VariableDeclaration",
"scope": 1819,
"src": "1800:18:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1814,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1800:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1817,
"indexed": false,
"mutability": "mutable",
"name": "receivedAmount",
"nameLocation": "1833:14:13",
"nodeType": "VariableDeclaration",
"scope": 1819,
"src": "1825:22:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1816,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1825:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1731:121:13"
},
"src": "1718:135:13"
},
{
"anonymous": false,
"eventSelector": "bf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d",
"id": 1829,
"name": "Bought",
"nameLocation": "1863:6:13",
"nodeType": "EventDefinition",
"parameters": {
"id": 1828,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1821,
"indexed": true,
"mutability": "mutable",
"name": "fromAsset",
"nameLocation": "1892:9:13",
"nodeType": "VariableDeclaration",
"scope": 1829,
"src": "1876:25:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1820,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1876:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1823,
"indexed": true,
"mutability": "mutable",
"name": "toAsset",
"nameLocation": "1924:7:13",
"nodeType": "VariableDeclaration",
"scope": 1829,
"src": "1908:23:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1822,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1908:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1825,
"indexed": false,
"mutability": "mutable",
"name": "amountSold",
"nameLocation": "1946:10:13",
"nodeType": "VariableDeclaration",
"scope": 1829,
"src": "1938:18:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1824,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1938:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1827,
"indexed": false,
"mutability": "mutable",
"name": "receivedAmount",
"nameLocation": "1971:14:13",
"nodeType": "VariableDeclaration",
"scope": 1829,
"src": "1963:22:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1826,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1963:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1869:121:13"
},
"src": "1857:134:13"
},
{
"body": {
"id": 1846,
"nodeType": "Block",
"src": "2108:76:13",
"statements": [
{
"expression": {
"id": 1844,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 1838,
"name": "ORACLE",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1809,
"src": "2115:6:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPriceOracleGetter_$1398",
"typeString": "contract IPriceOracleGetter"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"id": 1840,
"name": "addressesProvider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1832,
"src": "2143:17:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"id": 1841,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "2161:14:13",
"memberName": "getPriceOracle",
"nodeType": "MemberAccess",
"referencedDeclaration": 1319,
"src": "2143:32:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_address_$",
"typeString": "function () view external returns (address)"
}
},
"id": 1842,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2143:34:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1839,
"name": "IPriceOracleGetter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1398,
"src": "2124:18:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IPriceOracleGetter_$1398_$",
"typeString": "type(contract IPriceOracleGetter)"
}
},
"id": 1843,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2124:54:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPriceOracleGetter_$1398",
"typeString": "contract IPriceOracleGetter"
}
},
"src": "2115:63:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPriceOracleGetter_$1398",
"typeString": "contract IPriceOracleGetter"
}
},
"id": 1845,
"nodeType": "ExpressionStatement",
"src": "2115:63:13"
}
]
},
"id": 1847,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"id": 1835,
"name": "addressesProvider",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1832,
"src": "2089:17:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
}
],
"id": 1836,
"kind": "baseConstructorSpecifier",
"modifierName": {
"id": 1834,
"name": "FlashLoanSimpleReceiverBase",
"nameLocations": [
"2061:27:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 464,
"src": "2061:27:13"
},
"nodeType": "ModifierInvocation",
"src": "2061:46:13"
}
],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1833,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1832,
"mutability": "mutable",
"name": "addressesProvider",
"nameLocation": "2038:17:13",
"nodeType": "VariableDeclaration",
"scope": 1847,
"src": "2015:40:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
},
"typeName": {
"id": 1831,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1830,
"name": "IPoolAddressesProvider",
"nameLocations": [
"2015:22:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1374,
"src": "2015:22:13"
},
"referencedDeclaration": 1374,
"src": "2015:22:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolAddressesProvider_$1374",
"typeString": "contract IPoolAddressesProvider"
}
},
"visibility": "internal"
}
],
"src": "2008:52:13"
},
"returnParameters": {
"id": 1837,
"nodeType": "ParameterList",
"parameters": [],
"src": "2108:0:13"
},
"scope": 2029,
"src": "1997:187:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 1860,
"nodeType": "Block",
"src": "2408:47:13",
"statements": [
{
"expression": {
"arguments": [
{
"id": 1857,
"name": "asset",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1850,
"src": "2443:5:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"id": 1855,
"name": "ORACLE",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1809,
"src": "2422:6:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPriceOracleGetter_$1398",
"typeString": "contract IPriceOracleGetter"
}
},
"id": 1856,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "2429:13:13",
"memberName": "getAssetPrice",
"nodeType": "MemberAccess",
"referencedDeclaration": 1397,
"src": "2422:20:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint256_$",
"typeString": "function (address) view external returns (uint256)"
}
},
"id": 1858,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2422:27:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 1854,
"id": 1859,
"nodeType": "Return",
"src": "2415:34:13"
}
]
},
"documentation": {
"id": 1848,
"nodeType": "StructuredDocumentation",
"src": "2190:148:13",
"text": " @dev Get the price of the asset from the oracle denominated in eth\n @param asset address\n @return eth price for the asset"
},
"id": 1861,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_getPrice",
"nameLocation": "2351:9:13",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1851,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1850,
"mutability": "mutable",
"name": "asset",
"nameLocation": "2369:5:13",
"nodeType": "VariableDeclaration",
"scope": 1861,
"src": "2361:13:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1849,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2361:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2360:15:13"
},
"returnParameters": {
"id": 1854,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1853,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1861,
"src": "2399:7:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1852,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2399:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2398:9:13"
},
"scope": 2029,
"src": "2342:113:13",
"stateMutability": "view",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 1885,
"nodeType": "Block",
"src": "2635:181:13",
"statements": [
{
"assignments": [
1871
],
"declarations": [
{
"constant": false,
"id": 1871,
"mutability": "mutable",
"name": "decimals",
"nameLocation": "2648:8:13",
"nodeType": "VariableDeclaration",
"scope": 1885,
"src": "2642:14:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1870,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "2642:5:13",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"id": 1875,
"initialValue": {
"arguments": [],
"expression": {
"argumentTypes": [],
"expression": {
"id": 1872,
"name": "asset",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1865,
"src": "2659:5:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Detailed_$196",
"typeString": "contract IERC20Detailed"
}
},
"id": 1873,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "2665:8:13",
"memberName": "decimals",
"nodeType": "MemberAccess",
"referencedDeclaration": 195,
"src": "2659:14:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$__$returns$_t_uint8_$",
"typeString": "function () view external returns (uint8)"
}
},
"id": 1874,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2659:16:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2642:33:13"
},
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"id": 1879,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 1877,
"name": "decimals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1871,
"src": "2743:8:13",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"hexValue": "3737",
"id": 1878,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2755:2:13",
"typeDescriptions": {
"typeIdentifier": "t_rational_77_by_1",
"typeString": "int_const 77"
},
"value": "77"
},
"src": "2743:14:13",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "544f4f5f4d414e595f444543494d414c535f4f4e5f544f4b454e",
"id": 1880,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2759:28:13",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_fc5915f8715e0da4bd5e6487e67e57e89850a48fc18d4e921a811a8c928ad119",
"typeString": "literal_string \"TOO_MANY_DECIMALS_ON_TOKEN\""
},
"value": "TOO_MANY_DECIMALS_ON_TOKEN"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_fc5915f8715e0da4bd5e6487e67e57e89850a48fc18d4e921a811a8c928ad119",
"typeString": "literal_string \"TOO_MANY_DECIMALS_ON_TOKEN\""
}
],
"id": 1876,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "2735:7:13",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1881,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2735:53:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1882,
"nodeType": "ExpressionStatement",
"src": "2735:53:13"
},
{
"expression": {
"id": 1883,
"name": "decimals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1871,
"src": "2802:8:13",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"functionReturnParameters": 1869,
"id": 1884,
"nodeType": "Return",
"src": "2795:15:13"
}
]
},
"documentation": {
"id": 1862,
"nodeType": "StructuredDocumentation",
"src": "2461:96:13",
"text": " @dev Get the decimals of an asset\n @return number of decimals of the asset"
},
"id": 1886,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_getDecimals",
"nameLocation": "2570:12:13",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1866,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1865,
"mutability": "mutable",
"name": "asset",
"nameLocation": "2598:5:13",
"nodeType": "VariableDeclaration",
"scope": 1886,
"src": "2583:20:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Detailed_$196",
"typeString": "contract IERC20Detailed"
},
"typeName": {
"id": 1864,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1863,
"name": "IERC20Detailed",
"nameLocations": [
"2583:14:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 196,
"src": "2583:14:13"
},
"referencedDeclaration": 196,
"src": "2583:14:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Detailed_$196",
"typeString": "contract IERC20Detailed"
}
},
"visibility": "internal"
}
],
"src": "2582:22:13"
},
"returnParameters": {
"id": 1869,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1868,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1886,
"src": "2628:5:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 1867,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "2628:5:13",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "2627:7:13"
},
"scope": 2029,
"src": "2561:255:13",
"stateMutability": "view",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 1900,
"nodeType": "Block",
"src": "3015:46:13",
"statements": [
{
"expression": {
"arguments": [
{
"id": 1897,
"name": "asset",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1889,
"src": "3049:5:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"id": 1895,
"name": "POOL",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 444,
"src": "3029:4:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"id": 1896,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "3034:14:13",
"memberName": "getReserveData",
"nodeType": "MemberAccess",
"referencedDeclaration": 1015,
"src": "3029:19:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_struct$_ReserveData_$1432_memory_ptr_$",
"typeString": "function (address) view external returns (struct DataTypes.ReserveData memory)"
}
},
"id": 1898,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "3029:26:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveData_$1432_memory_ptr",
"typeString": "struct DataTypes.ReserveData memory"
}
},
"functionReturnParameters": 1894,
"id": 1899,
"nodeType": "Return",
"src": "3022:33:13"
}
]
},
"documentation": {
"id": 1887,
"nodeType": "StructuredDocumentation",
"src": "2822:96:13",
"text": " @dev Get the aToken associated to the asset\n @return address of the aToken"
},
"id": 1901,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_getReserveData",
"nameLocation": "2931:15:13",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1889,
"mutability": "mutable",
"name": "asset",
"nameLocation": "2955:5:13",
"nodeType": "VariableDeclaration",
"scope": 1901,
"src": "2947:13:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1888,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2947:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2946:15:13"
},
"returnParameters": {
"id": 1894,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1893,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 1901,
"src": "2985:28:13",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveData_$1432_memory_ptr",
"typeString": "struct DataTypes.ReserveData"
},
"typeName": {
"id": 1892,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1891,
"name": "DataTypes.ReserveData",
"nameLocations": [
"2985:9:13",
"2995:11:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1432,
"src": "2985:21:13"
},
"referencedDeclaration": 1432,
"src": "2985:21:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveData_$1432_storage_ptr",
"typeString": "struct DataTypes.ReserveData"
}
},
"visibility": "internal"
}
],
"src": "2984:30:13"
},
"scope": 2029,
"src": "2922:139:13",
"stateMutability": "view",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 1934,
"nodeType": "Block",
"src": "3220:209:13",
"statements": [
{
"assignments": [
1915
],
"declarations": [
{
"constant": false,
"id": 1915,
"mutability": "mutable",
"name": "reserveAToken",
"nameLocation": "3244:13:13",
"nodeType": "VariableDeclaration",
"scope": 1934,
"src": "3227:30:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
},
"typeName": {
"id": 1914,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1913,
"name": "IERC20WithPermit",
"nameLocations": [
"3227:16:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 526,
"src": "3227:16:13"
},
"referencedDeclaration": 526,
"src": "3227:16:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
},
"visibility": "internal"
}
],
"id": 1925,
"initialValue": {
"arguments": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"id": 1920,
"name": "reserve",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1903,
"src": "3309:7:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1919,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "3301:7:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 1918,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3301:7:13",
"typeDescriptions": {}
}
},
"id": 1921,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "3301:16:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1917,
"name": "_getReserveData",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1901,
"src": "3285:15:13",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_struct$_ReserveData_$1432_memory_ptr_$",
"typeString": "function (address) view returns (struct DataTypes.ReserveData memory)"
}
},
"id": 1922,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "3285:33:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_struct$_ReserveData_$1432_memory_ptr",
"typeString": "struct DataTypes.ReserveData memory"
}
},
"id": 1923,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "3319:13:13",
"memberName": "aTokenAddress",
"nodeType": "MemberAccess",
"referencedDeclaration": 1419,
"src": "3285:47:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1916,
"name": "IERC20WithPermit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 526,
"src": "3260:16:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_IERC20WithPermit_$526_$",
"typeString": "type(contract IERC20WithPermit)"
}
},
"id": 1924,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "3260:79:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3227:112:13"
},
{
"expression": {
"arguments": [
{
"id": 1927,
"name": "reserve",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1903,
"src": "3369:7:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 1928,
"name": "reserveAToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1915,
"src": "3378:13:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
},
{
"id": 1929,
"name": "user",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1905,
"src": "3393:4:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 1930,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1907,
"src": "3399:6:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"id": 1931,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1910,
"src": "3407:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
],
"id": 1926,
"name": "_pullATokenAndWithdraw",
"nodeType": "Identifier",
"overloadedDeclarations": [
1935,
2004
],
"referencedDeclaration": 2004,
"src": "3346:22:13",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_contract$_IERC20WithPermit_$526_$_t_address_$_t_uint256_$_t_struct$_PermitSignature_$1803_memory_ptr_$returns$__$",
"typeString": "function (address,contract IERC20WithPermit,address,uint256,struct BaseParaSwapAdapter.PermitSignature memory)"
}
},
"id": 1932,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "3346:77:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1933,
"nodeType": "ExpressionStatement",
"src": "3346:77:13"
}
]
},
"id": 1935,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_pullATokenAndWithdraw",
"nameLocation": "3076:22:13",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1911,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1903,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "3113:7:13",
"nodeType": "VariableDeclaration",
"scope": 1935,
"src": "3105:15:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1902,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3105:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1905,
"mutability": "mutable",
"name": "user",
"nameLocation": "3135:4:13",
"nodeType": "VariableDeclaration",
"scope": 1935,
"src": "3127:12:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1904,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3127:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1907,
"mutability": "mutable",
"name": "amount",
"nameLocation": "3154:6:13",
"nodeType": "VariableDeclaration",
"scope": 1935,
"src": "3146:14:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1906,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3146:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1910,
"mutability": "mutable",
"name": "permitSignature",
"nameLocation": "3190:15:13",
"nodeType": "VariableDeclaration",
"scope": 1935,
"src": "3167:38:13",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature"
},
"typeName": {
"id": 1909,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1908,
"name": "PermitSignature",
"nameLocations": [
"3167:15:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1803,
"src": "3167:15:13"
},
"referencedDeclaration": 1803,
"src": "3167:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_storage_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature"
}
},
"visibility": "internal"
}
],
"src": "3098:112:13"
},
"returnParameters": {
"id": 1912,
"nodeType": "ParameterList",
"parameters": [],
"src": "3220:0:13"
},
"scope": 2029,
"src": "3067:362:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 2003,
"nodeType": "Block",
"src": "3945:595:13",
"statements": [
{
"condition": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1954,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"expression": {
"id": 1951,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1948,
"src": "4032:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
},
"id": 1952,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4048:8:13",
"memberName": "deadline",
"nodeType": "MemberAccess",
"referencedDeclaration": 1796,
"src": "4032:24:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"hexValue": "30",
"id": 1953,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4060:1:13",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "4032:29:13",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 1976,
"nodeType": "IfStatement",
"src": "4028:272:13",
"trueBody": {
"id": 1975,
"nodeType": "Block",
"src": "4063:237:13",
"statements": [
{
"expression": {
"arguments": [
{
"id": 1958,
"name": "user",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1943,
"src": "4103:4:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"arguments": [
{
"id": 1961,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "4126:4:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
],
"id": 1960,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4118:7:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 1959,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4118:7:13",
"typeDescriptions": {}
}
},
"id": 1962,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4118:13:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"expression": {
"id": 1963,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1948,
"src": "4142:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
},
"id": 1964,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4158:6:13",
"memberName": "amount",
"nodeType": "MemberAccess",
"referencedDeclaration": 1794,
"src": "4142:22:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"expression": {
"id": 1965,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1948,
"src": "4175:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
},
"id": 1966,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4191:8:13",
"memberName": "deadline",
"nodeType": "MemberAccess",
"referencedDeclaration": 1796,
"src": "4175:24:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"expression": {
"id": 1967,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1948,
"src": "4210:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
},
"id": 1968,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4226:1:13",
"memberName": "v",
"nodeType": "MemberAccess",
"referencedDeclaration": 1798,
"src": "4210:17:13",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
{
"expression": {
"id": 1969,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1948,
"src": "4238:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
},
"id": 1970,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4254:1:13",
"memberName": "r",
"nodeType": "MemberAccess",
"referencedDeclaration": 1800,
"src": "4238:17:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"expression": {
"id": 1971,
"name": "permitSignature",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1948,
"src": "4266:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature memory"
}
},
"id": 1972,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4282:1:13",
"memberName": "s",
"nodeType": "MemberAccess",
"referencedDeclaration": 1802,
"src": "4266:17:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"expression": {
"id": 1955,
"name": "reserveAToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1941,
"src": "4072:13:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
},
"id": 1957,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4086:6:13",
"memberName": "permit",
"nodeType": "MemberAccess",
"referencedDeclaration": 525,
"src": "4072:20:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$__$",
"typeString": "function (address,address,uint256,uint256,uint8,bytes32,bytes32) external"
}
},
"id": 1973,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4072:220:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1974,
"nodeType": "ExpressionStatement",
"src": "4072:220:13"
}
]
}
},
{
"expression": {
"arguments": [
{
"id": 1980,
"name": "user",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1943,
"src": "4377:4:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"arguments": [
{
"id": 1983,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "4391:4:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
],
"id": 1982,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4383:7:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 1981,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4383:7:13",
"typeDescriptions": {}
}
},
"id": 1984,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4383:13:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 1985,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1945,
"src": "4398:6:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"id": 1977,
"name": "reserveAToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1941,
"src": "4346:13:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
},
"id": 1979,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4360:16:13",
"memberName": "safeTransferFrom",
"nodeType": "MemberAccess",
"referencedDeclaration": 58,
"src": "4346:30:13",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IERC20_$174_$_t_address_$_t_address_$_t_uint256_$returns$__$attached_to$_t_contract$_IERC20_$174_$",
"typeString": "function (contract IERC20,address,address,uint256)"
}
},
"id": 1986,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4346:59:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1987,
"nodeType": "ExpressionStatement",
"src": "4346:59:13"
},
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1999,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [
{
"id": 1991,
"name": "reserve",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1938,
"src": "4461:7:13",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 1992,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1945,
"src": "4470:6:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"arguments": [
{
"id": 1995,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "4486:4:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
],
"id": 1994,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4478:7:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 1993,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4478:7:13",
"typeDescriptions": {}
}
},
"id": 1996,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4478:13:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"id": 1989,
"name": "POOL",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 444,
"src": "4447:4:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPool_$1165",
"typeString": "contract IPool"
}
},
"id": 1990,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4452:8:13",
"memberName": "withdraw",
"nodeType": "MemberAccess",
"referencedDeclaration": 782,
"src": "4447:13:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_address_$returns$_t_uint256_$",
"typeString": "function (address,uint256,address) external returns (uint256)"
}
},
"id": 1997,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4447:45:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"id": 1998,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1945,
"src": "4496:6:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "4447:55:13",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "554e45585045435445445f414d4f554e545f57495448445241574e",
"id": 2000,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4504:29:13",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_85a045c7862eb0e81d59fe8dfd2ed8c824917ce215328caf39199676e5939f87",
"typeString": "literal_string \"UNEXPECTED_AMOUNT_WITHDRAWN\""
},
"value": "UNEXPECTED_AMOUNT_WITHDRAWN"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_85a045c7862eb0e81d59fe8dfd2ed8c824917ce215328caf39199676e5939f87",
"typeString": "literal_string \"UNEXPECTED_AMOUNT_WITHDRAWN\""
}
],
"id": 1988,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "4439:7:13",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 2001,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4439:95:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2002,
"nodeType": "ExpressionStatement",
"src": "4439:95:13"
}
]
},
"documentation": {
"id": 1936,
"nodeType": "StructuredDocumentation",
"src": "3435:316:13",
"text": " @dev Pull the ATokens from the user\n @param reserve address of the asset\n @param reserveAToken address of the aToken of the reserve\n @param user address\n @param amount of tokens to be transferred to the contract\n @param permitSignature struct containing the permit signature"
},
"id": 2004,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_pullATokenAndWithdraw",
"nameLocation": "3764:22:13",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1949,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1938,
"mutability": "mutable",
"name": "reserve",
"nameLocation": "3801:7:13",
"nodeType": "VariableDeclaration",
"scope": 2004,
"src": "3793:15:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1937,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3793:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1941,
"mutability": "mutable",
"name": "reserveAToken",
"nameLocation": "3832:13:13",
"nodeType": "VariableDeclaration",
"scope": 2004,
"src": "3815:30:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
},
"typeName": {
"id": 1940,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1939,
"name": "IERC20WithPermit",
"nameLocations": [
"3815:16:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 526,
"src": "3815:16:13"
},
"referencedDeclaration": 526,
"src": "3815:16:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20WithPermit_$526",
"typeString": "contract IERC20WithPermit"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1943,
"mutability": "mutable",
"name": "user",
"nameLocation": "3860:4:13",
"nodeType": "VariableDeclaration",
"scope": 2004,
"src": "3852:12:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1942,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3852:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1945,
"mutability": "mutable",
"name": "amount",
"nameLocation": "3879:6:13",
"nodeType": "VariableDeclaration",
"scope": 2004,
"src": "3871:14:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1944,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3871:7:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 1948,
"mutability": "mutable",
"name": "permitSignature",
"nameLocation": "3915:15:13",
"nodeType": "VariableDeclaration",
"scope": 2004,
"src": "3892:38:13",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_memory_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature"
},
"typeName": {
"id": 1947,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 1946,
"name": "PermitSignature",
"nameLocations": [
"3892:15:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 1803,
"src": "3892:15:13"
},
"referencedDeclaration": 1803,
"src": "3892:15:13",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PermitSignature_$1803_storage_ptr",
"typeString": "struct BaseParaSwapAdapter.PermitSignature"
}
},
"visibility": "internal"
}
],
"src": "3786:149:13"
},
"returnParameters": {
"id": 1950,
"nodeType": "ParameterList",
"parameters": [],
"src": "3945:0:13"
},
"scope": 2029,
"src": "3755:785:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 2027,
"nodeType": "Block",
"src": "4822:72:13",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 2016,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 241,
"src": "4848:5:13",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 2017,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4848:7:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"arguments": [
{
"arguments": [
{
"id": 2022,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "4881:4:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_BaseParaSwapAdapter_$2029",
"typeString": "contract BaseParaSwapAdapter"
}
],
"id": 2021,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "4873:7:13",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 2020,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4873:7:13",
"typeDescriptions": {}
}
},
"id": 2023,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4873:13:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"id": 2018,
"name": "token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2008,
"src": "4857:5:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"id": 2019,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4863:9:13",
"memberName": "balanceOf",
"nodeType": "MemberAccess",
"referencedDeclaration": 113,
"src": "4857:15:13",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint256_$",
"typeString": "function (address) view external returns (uint256)"
}
},
"id": 2024,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4857:30:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"id": 2013,
"name": "token",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2008,
"src": "4829:5:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"id": 2015,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "4835:12:13",
"memberName": "safeTransfer",
"nodeType": "MemberAccess",
"referencedDeclaration": 30,
"src": "4829:18:13",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IERC20_$174_$_t_address_$_t_uint256_$returns$__$attached_to$_t_contract$_IERC20_$174_$",
"typeString": "function (contract IERC20,address,uint256)"
}
},
"id": 2025,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "4829:59:13",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2026,
"nodeType": "ExpressionStatement",
"src": "4829:59:13"
}
]
},
"documentation": {
"id": 2005,
"nodeType": "StructuredDocumentation",
"src": "4546:217:13",
"text": " @dev Emergency rescue for token stucked on this contract, as failsafe mechanism\n - Funds should never remain in this contract more time than during transactions\n - Only callable by the owner"
},
"functionSelector": "00ae3bf8",
"id": 2028,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 2011,
"kind": "modifierInvocation",
"modifierName": {
"id": 2010,
"name": "onlyOwner",
"nameLocations": [
"4812:9:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 254,
"src": "4812:9:13"
},
"nodeType": "ModifierInvocation",
"src": "4812:9:13"
}
],
"name": "rescueTokens",
"nameLocation": "4776:12:13",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2009,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2008,
"mutability": "mutable",
"name": "token",
"nameLocation": "4796:5:13",
"nodeType": "VariableDeclaration",
"scope": 2028,
"src": "4789:12:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
},
"typeName": {
"id": 2007,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 2006,
"name": "IERC20",
"nameLocations": [
"4789:6:13"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 174,
"src": "4789:6:13"
},
"referencedDeclaration": 174,
"src": "4789:6:13",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$174",
"typeString": "contract IERC20"
}
},
"visibility": "internal"
}
],
"src": "4788:14:13"
},
"returnParameters": {
"id": 2012,
"nodeType": "ParameterList",
"parameters": [],
"src": "4822:0:13"
},
"scope": 2029,
"src": "4767:127:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 2030,
"src": "1205:3692:13",
"usedErrors": [],
"usedEvents": [
210,
1819,
1829
]
}
],
"src": "38:4861:13"
},
"id": 13
}
}
}
}