7169 lines
232 KiB
JSON
7169 lines
232 KiB
JSON
{
|
|
"id": "1fd7efffab681b6305445047a8521636",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/libraries/DataTypesHelper.sol": {
|
|
"content": "// SPDX-License-Identifier: AGPL-3.0\r\npragma solidity ^0.8.10;\r\n\r\nimport {IERC20} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol';\r\nimport {DataTypes} from '@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol';\r\n\r\n/**\r\n * @title DataTypesHelper\r\n * @author Aave\r\n * @dev Helper library to track user current debt balance, used by WrappedTokenGatewayV3\r\n */\r\nlibrary DataTypesHelper {\r\n /**\r\n * @notice Fetches the user current stable and variable debt balances\r\n * @param user The user address\r\n * @param reserve The reserve data object\r\n * @return The stable debt balance\r\n * @return The variable debt balance\r\n **/\r\n function getUserCurrentDebt(\r\n address user,\r\n DataTypes.ReserveData memory reserve\r\n ) internal view returns (uint256, uint256) {\r\n return (\r\n IERC20(reserve.stableDebtTokenAddress).balanceOf(user),\r\n IERC20(reserve.variableDebtTokenAddress).balanceOf(user)\r\n );\r\n }\r\n}\r\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/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"
|
|
}
|
|
},
|
|
"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/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/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:1:-: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:1:-:0;;;;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "17000",
|
|
"executionCost": "92",
|
|
"totalCost": "17092"
|
|
}
|
|
},
|
|
"legacyAssembly": {
|
|
".code": [
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH #[$]",
|
|
"source": 1,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH [$]",
|
|
"source": 1,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "B"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP3",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP3",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP3",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "CODECOPY",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP1",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "MLOAD",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "BYTE",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "EQ",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH [tag]",
|
|
"source": 1,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "JUMPI",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "MSTORE",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "4"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "MSTORE",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "24"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "REVERT",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "tag",
|
|
"source": 1,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "JUMPDEST",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "ADDRESS",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "MSTORE",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP2",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "MSTORE8",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP3",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP2",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "RETURN",
|
|
"source": 1
|
|
}
|
|
],
|
|
".data": {
|
|
"0": {
|
|
".auxdata": "a2646970667358221220268e604dd9a812fcdfe19d6b0771b9dc7547e930ac2b7b55146739a880438dd964736f6c634300081a0033",
|
|
".code": [
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSHDEPLOYADDRESS",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "ADDRESS",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "EQ",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "MSTORE",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "PUSH",
|
|
"source": 1,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "DUP1",
|
|
"source": 1
|
|
},
|
|
{
|
|
"begin": 62,
|
|
"end": 7368,
|
|
"name": "REVERT",
|
|
"source": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sourceList": [
|
|
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
|
|
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
|
|
"contracts/libraries/DataTypesHelper.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/libraries/DataTypesHelper.sol": {
|
|
"DataTypesHelper": {
|
|
"abi": [],
|
|
"devdoc": {
|
|
"author": "Aave",
|
|
"details": "Helper library to track user current debt balance, used by WrappedTokenGatewayV3",
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"title": "DataTypesHelper",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": " /* \"contracts/libraries/DataTypesHelper.sol\":399:968 library DataTypesHelper {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/libraries/DataTypesHelper.sol\":399:968 library DataTypesHelper {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220a510015b6b92cb014e01a8a2a33327fa9c123fda66e5a0dab5a0d0e28cbb33d064736f6c634300081a0033\n}\n",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220a510015b6b92cb014e01a8a2a33327fa9c123fda66e5a0dab5a0d0e28cbb33d064736f6c634300081a0033",
|
|
"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 0xA5 LT ADD JUMPDEST PUSH12 0x92CB014E01A8A2A33327FA9C SLT EXTCODEHASH 0xDA PUSH7 0xE5A0DAB5A0D0E2 DUP13 0xBB CALLER 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
|
|
"sourceMap": "399:569:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea2646970667358221220a510015b6b92cb014e01a8a2a33327fa9c123fda66e5a0dab5a0d0e28cbb33d064736f6c634300081a0033",
|
|
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xA5 LT ADD JUMPDEST PUSH12 0x92CB014E01A8A2A33327FA9C SLT EXTCODEHASH 0xDA PUSH7 0xE5A0DAB5A0D0E2 DUP13 0xBB CALLER 0xD0 PUSH5 0x736F6C6343 STOP ADDMOD BYTE STOP CALLER ",
|
|
"sourceMap": "399:569:2:-:0;;;;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "17000",
|
|
"executionCost": "92",
|
|
"totalCost": "17092"
|
|
},
|
|
"internal": {
|
|
"getUserCurrentDebt(address,struct DataTypes.ReserveData memory)": "infinite"
|
|
}
|
|
},
|
|
"legacyAssembly": {
|
|
".code": [
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH #[$]",
|
|
"source": 2,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH [$]",
|
|
"source": 2,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "B"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "CODECOPY",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "MLOAD",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "BYTE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "EQ",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH [tag]",
|
|
"source": 2,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "JUMPI",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "4"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "24"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "tag",
|
|
"source": 2,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "JUMPDEST",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "ADDRESS",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "73"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "MSTORE8",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP3",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP2",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "RETURN",
|
|
"source": 2
|
|
}
|
|
],
|
|
".data": {
|
|
"0": {
|
|
".auxdata": "a2646970667358221220a510015b6b92cb014e01a8a2a33327fa9c123fda66e5a0dab5a0d0e28cbb33d064736f6c634300081a0033",
|
|
".code": [
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSHDEPLOYADDRESS",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "ADDRESS",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "EQ",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "MSTORE",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "PUSH",
|
|
"source": 2,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "DUP1",
|
|
"source": 2
|
|
},
|
|
{
|
|
"begin": 399,
|
|
"end": 968,
|
|
"name": "REVERT",
|
|
"source": 2
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sourceList": [
|
|
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
|
|
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
|
|
"contracts/libraries/DataTypesHelper.sol",
|
|
"#utility.yul"
|
|
]
|
|
},
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Aave\",\"details\":\"Helper library to track user current debt balance, used by WrappedTokenGatewayV3\",\"kind\":\"dev\",\"methods\":{},\"title\":\"DataTypesHelper\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/libraries/DataTypesHelper.sol\":\"DataTypesHelper\"},\"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/protocol/libraries/types/DataTypes.sol\":{\"keccak256\":\"0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828\",\"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN\"]},\"contracts/libraries/DataTypesHelper.sol\":{\"keccak256\":\"0xf30eeb28f5d4eb86f6786842604e6405b0dca383286c94f4d83a72f3a141fb69\",\"license\":\"AGPL-3.0\",\"urls\":[\"bzz-raw://701982204b681779263750449210c84dde008e4ef7e3d8ed867442240a6027eb\",\"dweb:/ipfs/QmTvBjVowfDx34dZDuXiBATeon4T1SozPZSTRkw69rYRRc\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol": {
|
|
"ast": {
|
|
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
|
|
"exportedSymbols": {
|
|
"IERC20": [
|
|
77
|
|
]
|
|
},
|
|
"id": 78,
|
|
"license": "AGPL-3.0",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "37:23:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IERC20",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 2,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "62:70:0",
|
|
"text": " @dev Interface of the ERC20 standard as defined in the EIP."
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 77,
|
|
"linearizedBaseContracts": [
|
|
77
|
|
],
|
|
"name": "IERC20",
|
|
"nameLocation": "143:6:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"documentation": {
|
|
"id": 3,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "154:62:0",
|
|
"text": " @dev Returns the amount of tokens in existence."
|
|
},
|
|
"functionSelector": "18160ddd",
|
|
"id": 8,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "totalSupply",
|
|
"nameLocation": "228:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 4,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "239:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 7,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 6,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 8,
|
|
"src": "265:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "265:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "264:9:0"
|
|
},
|
|
"scope": 77,
|
|
"src": "219:55:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 9,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "278:68:0",
|
|
"text": " @dev Returns the amount of tokens owned by `account`."
|
|
},
|
|
"functionSelector": "70a08231",
|
|
"id": 16,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "balanceOf",
|
|
"nameLocation": "358:9:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 12,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 11,
|
|
"mutability": "mutable",
|
|
"name": "account",
|
|
"nameLocation": "376:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "368:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 10,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "368:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "367:17:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 15,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 14,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "408:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 13,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "408:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "407:9:0"
|
|
},
|
|
"scope": 77,
|
|
"src": "349:68:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 17,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "421:197:0",
|
|
"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": 26,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "transfer",
|
|
"nameLocation": "630:8:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 22,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 19,
|
|
"mutability": "mutable",
|
|
"name": "recipient",
|
|
"nameLocation": "647:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 26,
|
|
"src": "639:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 18,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "639:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 21,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "666:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 26,
|
|
"src": "658:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 20,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "658:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "638:35:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 25,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 24,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 26,
|
|
"src": "692:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 23,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "692:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "691:6:0"
|
|
},
|
|
"scope": 77,
|
|
"src": "621:77:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 27,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "702:252:0",
|
|
"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": 36,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "allowance",
|
|
"nameLocation": "966:9:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 32,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 29,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "984:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 36,
|
|
"src": "976:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 28,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "976:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 31,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "999:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 36,
|
|
"src": "991:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 30,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "991:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "975:32:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 35,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 34,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 36,
|
|
"src": "1031:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 33,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1031:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1030:9:0"
|
|
},
|
|
"scope": 77,
|
|
"src": "957:83:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 37,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1044:616:0",
|
|
"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": 46,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "approve",
|
|
"nameLocation": "1672:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 42,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 39,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "1688:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 46,
|
|
"src": "1680:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 38,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1680:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 41,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "1705:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 46,
|
|
"src": "1697:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 40,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1697:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1679:33:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 45,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 44,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 46,
|
|
"src": "1731:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 43,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1731:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1730:6:0"
|
|
},
|
|
"scope": 77,
|
|
"src": "1663:74:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 47,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1741:280:0",
|
|
"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": 58,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "transferFrom",
|
|
"nameLocation": "2033:12:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 54,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 49,
|
|
"mutability": "mutable",
|
|
"name": "sender",
|
|
"nameLocation": "2054:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 58,
|
|
"src": "2046:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 48,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2046:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 51,
|
|
"mutability": "mutable",
|
|
"name": "recipient",
|
|
"nameLocation": "2070:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 58,
|
|
"src": "2062:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 50,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2062:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 53,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "2089:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 58,
|
|
"src": "2081:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 52,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2081:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2045:51:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 57,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 56,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 58,
|
|
"src": "2115:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 55,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2115:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2114:6:0"
|
|
},
|
|
"scope": 77,
|
|
"src": "2024:97:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 59,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2125:148:0",
|
|
"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": 67,
|
|
"name": "Transfer",
|
|
"nameLocation": "2282:8:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 66,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 61,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "2307:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "2291:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 60,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2291:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 63,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2329:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "2313:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 62,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2313:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 65,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "2341:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 67,
|
|
"src": "2333:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 64,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2333:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2290:57:0"
|
|
},
|
|
"src": "2276:72:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 68,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "2352:142:0",
|
|
"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": 76,
|
|
"name": "Approval",
|
|
"nameLocation": "2503:8:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 75,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 70,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "2528:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 76,
|
|
"src": "2512:21:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 69,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2512:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 72,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "spender",
|
|
"nameLocation": "2551:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 76,
|
|
"src": "2535:23:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 71,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2535:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 74,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "value",
|
|
"nameLocation": "2568:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 76,
|
|
"src": "2560:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 73,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2560:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2511:63:0"
|
|
},
|
|
"src": "2497:78:0"
|
|
}
|
|
],
|
|
"scope": 78,
|
|
"src": "133:2444:0",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
67,
|
|
76
|
|
]
|
|
}
|
|
],
|
|
"src": "37:2541:0"
|
|
},
|
|
"id": 0
|
|
},
|
|
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol": {
|
|
"ast": {
|
|
"absolutePath": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
|
|
"exportedSymbols": {
|
|
"DataTypes": [
|
|
429
|
|
]
|
|
},
|
|
"id": 430,
|
|
"license": "BUSL-1.1",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 79,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "37:23:1"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "DataTypes",
|
|
"contractDependencies": [],
|
|
"contractKind": "library",
|
|
"fullyImplemented": true,
|
|
"id": 429,
|
|
"linearizedBaseContracts": [
|
|
429
|
|
],
|
|
"name": "DataTypes",
|
|
"nameLocation": "70:9:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "DataTypes.ReserveData",
|
|
"id": 111,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 82,
|
|
"mutability": "mutable",
|
|
"name": "configuration",
|
|
"nameLocation": "172:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "148:37:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$114_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 81,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 80,
|
|
"name": "ReserveConfigurationMap",
|
|
"nameLocations": [
|
|
"148:23:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 114,
|
|
"src": "148:23:1"
|
|
},
|
|
"referencedDeclaration": 114,
|
|
"src": "148:23:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$114_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 84,
|
|
"mutability": "mutable",
|
|
"name": "liquidityIndex",
|
|
"nameLocation": "243:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "235:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 83,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "235:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 86,
|
|
"mutability": "mutable",
|
|
"name": "currentLiquidityRate",
|
|
"nameLocation": "319:20:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "311:28:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 85,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "311:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 88,
|
|
"mutability": "mutable",
|
|
"name": "variableBorrowIndex",
|
|
"nameLocation": "399:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "391:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 87,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "391:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 90,
|
|
"mutability": "mutable",
|
|
"name": "currentVariableBorrowRate",
|
|
"nameLocation": "489:25:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "481:33:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 89,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "481:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 92,
|
|
"mutability": "mutable",
|
|
"name": "currentStableBorrowRate",
|
|
"nameLocation": "583:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "575:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 91,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "575:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 94,
|
|
"mutability": "mutable",
|
|
"name": "lastUpdateTimestamp",
|
|
"nameLocation": "650:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "643:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
},
|
|
"typeName": {
|
|
"id": 93,
|
|
"name": "uint40",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "643:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 96,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "770:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "763:9:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 95,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "763:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 98,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "807:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "799:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 97,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "799:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 100,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtTokenAddress",
|
|
"nameLocation": "864:22:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "856:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 99,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "856:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 102,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtTokenAddress",
|
|
"nameLocation": "932:24:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "924:32:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 101,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "924:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 104,
|
|
"mutability": "mutable",
|
|
"name": "interestRateStrategyAddress",
|
|
"nameLocation": "1014:27:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "1006:35:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 103,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1006:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 106,
|
|
"mutability": "mutable",
|
|
"name": "accruedToTreasury",
|
|
"nameLocation": "1098:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "1090:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 105,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1090:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 108,
|
|
"mutability": "mutable",
|
|
"name": "unbacked",
|
|
"nameLocation": "1204:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "1196:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 107,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1196:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 110,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeTotalDebt",
|
|
"nameLocation": "1299:22:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "1291:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 109,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1291:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ReserveData",
|
|
"nameLocation": "91:11:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "84:1242:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ReserveConfigurationMap",
|
|
"id": 114,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 113,
|
|
"mutability": "mutable",
|
|
"name": "data",
|
|
"nameLocation": "2260:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 114,
|
|
"src": "2252:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 112,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2252:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ReserveConfigurationMap",
|
|
"nameLocation": "1337:23:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "1330:939:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.UserConfigurationMap",
|
|
"id": 118,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 117,
|
|
"mutability": "mutable",
|
|
"name": "data",
|
|
"nameLocation": "2578:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 118,
|
|
"src": "2570:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 116,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2570:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "UserConfigurationMap",
|
|
"nameLocation": "2280:20:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "2273:314:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.EModeCategory",
|
|
"id": 129,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 120,
|
|
"mutability": "mutable",
|
|
"name": "ltv",
|
|
"nameLocation": "2695:3:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "2688:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 119,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2688:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 122,
|
|
"mutability": "mutable",
|
|
"name": "liquidationThreshold",
|
|
"nameLocation": "2711:20:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "2704:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 121,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2704:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 124,
|
|
"mutability": "mutable",
|
|
"name": "liquidationBonus",
|
|
"nameLocation": "2744:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "2737:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 123,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2737:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 126,
|
|
"mutability": "mutable",
|
|
"name": "priceSource",
|
|
"nameLocation": "2885:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "2877:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 125,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2877:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 128,
|
|
"mutability": "mutable",
|
|
"name": "label",
|
|
"nameLocation": "2909:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "2902:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 127,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2902:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "EModeCategory",
|
|
"nameLocation": "2598:13:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "2591:328:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.InterestRateMode",
|
|
"id": 133,
|
|
"members": [
|
|
{
|
|
"id": 130,
|
|
"name": "NONE",
|
|
"nameLocation": "2946:4:1",
|
|
"nodeType": "EnumValue",
|
|
"src": "2946:4:1"
|
|
},
|
|
{
|
|
"id": 131,
|
|
"name": "STABLE",
|
|
"nameLocation": "2952:6:1",
|
|
"nodeType": "EnumValue",
|
|
"src": "2952:6:1"
|
|
},
|
|
{
|
|
"id": 132,
|
|
"name": "VARIABLE",
|
|
"nameLocation": "2960:8:1",
|
|
"nodeType": "EnumValue",
|
|
"src": "2960:8:1"
|
|
}
|
|
],
|
|
"name": "InterestRateMode",
|
|
"nameLocation": "2928:16:1",
|
|
"nodeType": "EnumDefinition",
|
|
"src": "2923:46:1"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ReserveCache",
|
|
"id": 175,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 135,
|
|
"mutability": "mutable",
|
|
"name": "currScaledVariableDebt",
|
|
"nameLocation": "3007:22:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "2999:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 134,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2999:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 137,
|
|
"mutability": "mutable",
|
|
"name": "nextScaledVariableDebt",
|
|
"nameLocation": "3043:22:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3035:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 136,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3035:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 139,
|
|
"mutability": "mutable",
|
|
"name": "currPrincipalStableDebt",
|
|
"nameLocation": "3079:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3071:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 138,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3071:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 141,
|
|
"mutability": "mutable",
|
|
"name": "currAvgStableBorrowRate",
|
|
"nameLocation": "3116:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3108:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 140,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3108:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 143,
|
|
"mutability": "mutable",
|
|
"name": "currTotalStableDebt",
|
|
"nameLocation": "3153:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3145:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 142,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3145:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 145,
|
|
"mutability": "mutable",
|
|
"name": "nextAvgStableBorrowRate",
|
|
"nameLocation": "3186:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3178:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 144,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3178:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 147,
|
|
"mutability": "mutable",
|
|
"name": "nextTotalStableDebt",
|
|
"nameLocation": "3223:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3215:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 146,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3215:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 149,
|
|
"mutability": "mutable",
|
|
"name": "currLiquidityIndex",
|
|
"nameLocation": "3256:18:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3248:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 148,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3248:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 151,
|
|
"mutability": "mutable",
|
|
"name": "nextLiquidityIndex",
|
|
"nameLocation": "3288:18:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3280:26:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 150,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3280:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 153,
|
|
"mutability": "mutable",
|
|
"name": "currVariableBorrowIndex",
|
|
"nameLocation": "3320:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3312:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 152,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3312:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 155,
|
|
"mutability": "mutable",
|
|
"name": "nextVariableBorrowIndex",
|
|
"nameLocation": "3357:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3349:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 154,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3349:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 157,
|
|
"mutability": "mutable",
|
|
"name": "currLiquidityRate",
|
|
"nameLocation": "3394:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3386:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 156,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3386:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 159,
|
|
"mutability": "mutable",
|
|
"name": "currVariableBorrowRate",
|
|
"nameLocation": "3425:22:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3417:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 158,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3417:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 161,
|
|
"mutability": "mutable",
|
|
"name": "reserveFactor",
|
|
"nameLocation": "3461:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3453:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 160,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3453:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 164,
|
|
"mutability": "mutable",
|
|
"name": "reserveConfiguration",
|
|
"nameLocation": "3504:20:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3480:44:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$114_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 163,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 162,
|
|
"name": "ReserveConfigurationMap",
|
|
"nameLocations": [
|
|
"3480:23:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 114,
|
|
"src": "3480:23:1"
|
|
},
|
|
"referencedDeclaration": 114,
|
|
"src": "3480:23:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveConfigurationMap_$114_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 166,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "3538:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3530:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 165,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3530:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 168,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtTokenAddress",
|
|
"nameLocation": "3565:22:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3557:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 167,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3557:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 170,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtTokenAddress",
|
|
"nameLocation": "3601:24:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3593:32:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 169,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3593:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 172,
|
|
"mutability": "mutable",
|
|
"name": "reserveLastUpdateTimestamp",
|
|
"nameLocation": "3638:26:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3631:33:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
},
|
|
"typeName": {
|
|
"id": 171,
|
|
"name": "uint40",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3631:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 174,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtLastUpdateTimestamp",
|
|
"nameLocation": "3677:29:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 175,
|
|
"src": "3670:36:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
},
|
|
"typeName": {
|
|
"id": 173,
|
|
"name": "uint40",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3670:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint40",
|
|
"typeString": "uint40"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ReserveCache",
|
|
"nameLocation": "2980:12:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "2973:738:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteLiquidationCallParams",
|
|
"id": 194,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 177,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "3765:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3757:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 176,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3757:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 179,
|
|
"mutability": "mutable",
|
|
"name": "debtToCover",
|
|
"nameLocation": "3792:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3784:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 178,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3784:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 181,
|
|
"mutability": "mutable",
|
|
"name": "collateralAsset",
|
|
"nameLocation": "3817:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3809:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 180,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3809:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 183,
|
|
"mutability": "mutable",
|
|
"name": "debtAsset",
|
|
"nameLocation": "3846:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3838:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 182,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3838:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 185,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "3869:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3861:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 184,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3861:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 187,
|
|
"mutability": "mutable",
|
|
"name": "receiveAToken",
|
|
"nameLocation": "3884:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3879:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 186,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3879:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 189,
|
|
"mutability": "mutable",
|
|
"name": "priceOracle",
|
|
"nameLocation": "3911:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3903:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 188,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3903:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 191,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "3934:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3928:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 190,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3928:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 193,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "3965:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 194,
|
|
"src": "3957:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 192,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3957:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteLiquidationCallParams",
|
|
"nameLocation": "3722:28:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "3715:274:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteSupplyParams",
|
|
"id": 203,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 196,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4034:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 203,
|
|
"src": "4026:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 195,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4026:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 198,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4053:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 203,
|
|
"src": "4045:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 197,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4045:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 200,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "4073:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 203,
|
|
"src": "4065:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 199,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4065:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 202,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "4096:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 203,
|
|
"src": "4089:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 201,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4089:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteSupplyParams",
|
|
"nameLocation": "4000:19:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "3993:120:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteBorrowParams",
|
|
"id": 229,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 205,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4158:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4150:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 204,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4150:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 207,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "4177:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4169:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 206,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4169:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 209,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "4195:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4187:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 208,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4187:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 211,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4219:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4211:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 210,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4211:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 214,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "4248:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4231:33:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$133",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 213,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 212,
|
|
"name": "InterestRateMode",
|
|
"nameLocations": [
|
|
"4231:16:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 133,
|
|
"src": "4231:16:1"
|
|
},
|
|
"referencedDeclaration": 133,
|
|
"src": "4231:16:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$133",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 216,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "4277:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4270:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 215,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4270:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 218,
|
|
"mutability": "mutable",
|
|
"name": "releaseUnderlying",
|
|
"nameLocation": "4300:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4295:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 217,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4295:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 220,
|
|
"mutability": "mutable",
|
|
"name": "maxStableRateBorrowSizePercent",
|
|
"nameLocation": "4331:30:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4323:38:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 219,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4323:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 222,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "4375:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4367:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 221,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4367:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 224,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "4402:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4394:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 223,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4394:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 226,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "4420:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4414:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 225,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4414:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 228,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "4451:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 229,
|
|
"src": "4443:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 227,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4443:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteBorrowParams",
|
|
"nameLocation": "4124:19:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "4117:358:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteRepayParams",
|
|
"id": 241,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 231,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4519:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 241,
|
|
"src": "4511:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 230,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4511:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 233,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4538:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 241,
|
|
"src": "4530:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 232,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4530:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 236,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "4567:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 241,
|
|
"src": "4550:33:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$133",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 235,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 234,
|
|
"name": "InterestRateMode",
|
|
"nameLocations": [
|
|
"4550:16:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 133,
|
|
"src": "4550:16:1"
|
|
},
|
|
"referencedDeclaration": 133,
|
|
"src": "4550:16:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$133",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 238,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "4597:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 241,
|
|
"src": "4589:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 237,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4589:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 240,
|
|
"mutability": "mutable",
|
|
"name": "useATokens",
|
|
"nameLocation": "4618:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 241,
|
|
"src": "4613:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 239,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4613:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteRepayParams",
|
|
"nameLocation": "4486:18:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "4479:154:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteWithdrawParams",
|
|
"id": 254,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 243,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4680:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 254,
|
|
"src": "4672:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 242,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4672:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 245,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "4699:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 254,
|
|
"src": "4691:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 244,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4691:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 247,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "4719:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 254,
|
|
"src": "4711:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 246,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4711:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 249,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "4735:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 254,
|
|
"src": "4727:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 248,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4727:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 251,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "4762:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 254,
|
|
"src": "4754:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 250,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4754:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 253,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "4780:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 254,
|
|
"src": "4774:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 252,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4774:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteWithdrawParams",
|
|
"nameLocation": "4644:21:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "4637:165:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ExecuteSetUserEModeParams",
|
|
"id": 261,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 256,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "4853:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 261,
|
|
"src": "4845:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 255,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4845:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 258,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "4880:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 261,
|
|
"src": "4872:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 257,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4872:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 260,
|
|
"mutability": "mutable",
|
|
"name": "categoryId",
|
|
"nameLocation": "4898:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 261,
|
|
"src": "4892:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 259,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4892:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ExecuteSetUserEModeParams",
|
|
"nameLocation": "4813:25:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "4806:107:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FinalizeTransferParams",
|
|
"id": 280,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 263,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "4961:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "4953:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 262,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4953:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 265,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "4980:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "4972:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 264,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4972:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 267,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "4998:2:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "4990:10:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 266,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "4990:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 269,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "5014:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "5006:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 268,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5006:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 271,
|
|
"mutability": "mutable",
|
|
"name": "balanceFromBefore",
|
|
"nameLocation": "5034:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "5026:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 270,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5026:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 273,
|
|
"mutability": "mutable",
|
|
"name": "balanceToBefore",
|
|
"nameLocation": "5065:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "5057:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 272,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5057:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 275,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "5094:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "5086:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 274,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5086:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 277,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "5121:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "5113:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 276,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5113:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 279,
|
|
"mutability": "mutable",
|
|
"name": "fromEModeCategory",
|
|
"nameLocation": "5139:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 280,
|
|
"src": "5133:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 278,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5133:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FinalizeTransferParams",
|
|
"nameLocation": "4924:22:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "4917:244:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FlashloanParams",
|
|
"id": 312,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 282,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "5202:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5194:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 281,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5194:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 285,
|
|
"mutability": "mutable",
|
|
"name": "assets",
|
|
"nameLocation": "5233:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5223:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 283,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5223:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 284,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "5223:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 288,
|
|
"mutability": "mutable",
|
|
"name": "amounts",
|
|
"nameLocation": "5255:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5245:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 286,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5245:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 287,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "5245:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 291,
|
|
"mutability": "mutable",
|
|
"name": "interestRateModes",
|
|
"nameLocation": "5278:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5268:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 289,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5268:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 290,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "5268:9:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 293,
|
|
"mutability": "mutable",
|
|
"name": "onBehalfOf",
|
|
"nameLocation": "5309:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5301:18:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 292,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5301:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 295,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "5331:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5325:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 294,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5325:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 297,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "5350:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5343:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 296,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5343:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 299,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "5376:26:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5368:34:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 298,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5368:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 301,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumTotal",
|
|
"nameLocation": "5416:21:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5408:29:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 300,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5408:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 303,
|
|
"mutability": "mutable",
|
|
"name": "maxStableRateBorrowSizePercent",
|
|
"nameLocation": "5451:30:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5443:38:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 302,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5443:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 305,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "5495:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5487:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 304,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5487:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 307,
|
|
"mutability": "mutable",
|
|
"name": "addressesProvider",
|
|
"nameLocation": "5522:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5514:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 306,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5514:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 309,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "5551:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5545:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 308,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5545:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 311,
|
|
"mutability": "mutable",
|
|
"name": "isAuthorizedFlashBorrower",
|
|
"nameLocation": "5579:25:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 312,
|
|
"src": "5574:30:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 310,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5574:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FlashloanParams",
|
|
"nameLocation": "5172:15:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "5165:444:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FlashloanSimpleParams",
|
|
"id": 327,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 314,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "5656:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5648:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 313,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5648:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 316,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "5685:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5677:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 315,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5677:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 318,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "5704:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5696:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 317,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5696:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 320,
|
|
"mutability": "mutable",
|
|
"name": "params",
|
|
"nameLocation": "5722:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5716:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 319,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5716:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 322,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "5741:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5734:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 321,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5734:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 324,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "5767:26:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5759:34:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 323,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5759:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 326,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumTotal",
|
|
"nameLocation": "5807:21:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 327,
|
|
"src": "5799:29:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 325,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5799:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FlashloanSimpleParams",
|
|
"nameLocation": "5620:21:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "5613:220:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.FlashLoanRepaymentParams",
|
|
"id": 340,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 329,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "5883:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 340,
|
|
"src": "5875:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 328,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5875:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 331,
|
|
"mutability": "mutable",
|
|
"name": "totalPremium",
|
|
"nameLocation": "5903:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 340,
|
|
"src": "5895:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 330,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5895:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 333,
|
|
"mutability": "mutable",
|
|
"name": "flashLoanPremiumToProtocol",
|
|
"nameLocation": "5929:26:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 340,
|
|
"src": "5921:34:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 332,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5921:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 335,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "5969:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 340,
|
|
"src": "5961:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 334,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5961:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 337,
|
|
"mutability": "mutable",
|
|
"name": "receiverAddress",
|
|
"nameLocation": "5988:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 340,
|
|
"src": "5980:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 336,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "5980:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 339,
|
|
"mutability": "mutable",
|
|
"name": "referralCode",
|
|
"nameLocation": "6016:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 340,
|
|
"src": "6009:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 338,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6009:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "FlashLoanRepaymentParams",
|
|
"nameLocation": "5844:24:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "5837:196:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.CalculateUserAccountDataParams",
|
|
"id": 352,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 343,
|
|
"mutability": "mutable",
|
|
"name": "userConfig",
|
|
"nameLocation": "6102:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 352,
|
|
"src": "6081:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$118_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 342,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 341,
|
|
"name": "UserConfigurationMap",
|
|
"nameLocations": [
|
|
"6081:20:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 118,
|
|
"src": "6081:20:1"
|
|
},
|
|
"referencedDeclaration": 118,
|
|
"src": "6081:20:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$118_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 345,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "6126:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 352,
|
|
"src": "6118:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 344,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6118:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 347,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "6153:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 352,
|
|
"src": "6145:12:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 346,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6145:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 349,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "6171:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 352,
|
|
"src": "6163:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 348,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6163:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 351,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "6189:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 352,
|
|
"src": "6183:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 350,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6183:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "CalculateUserAccountDataParams",
|
|
"nameLocation": "6044:30:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "6037:174:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ValidateBorrowParams",
|
|
"id": 384,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 355,
|
|
"mutability": "mutable",
|
|
"name": "reserveCache",
|
|
"nameLocation": "6262:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6249:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$175_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
},
|
|
"typeName": {
|
|
"id": 354,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 353,
|
|
"name": "ReserveCache",
|
|
"nameLocations": [
|
|
"6249:12:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 175,
|
|
"src": "6249:12:1"
|
|
},
|
|
"referencedDeclaration": 175,
|
|
"src": "6249:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$175_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 358,
|
|
"mutability": "mutable",
|
|
"name": "userConfig",
|
|
"nameLocation": "6301:10:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6280:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$118_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
},
|
|
"typeName": {
|
|
"id": 357,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 356,
|
|
"name": "UserConfigurationMap",
|
|
"nameLocations": [
|
|
"6280:20:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 118,
|
|
"src": "6280:20:1"
|
|
},
|
|
"referencedDeclaration": 118,
|
|
"src": "6280:20:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_UserConfigurationMap_$118_storage_ptr",
|
|
"typeString": "struct DataTypes.UserConfigurationMap"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 360,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "6325:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6317:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 359,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6317:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 362,
|
|
"mutability": "mutable",
|
|
"name": "userAddress",
|
|
"nameLocation": "6344:11:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6336:19:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 361,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6336:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 364,
|
|
"mutability": "mutable",
|
|
"name": "amount",
|
|
"nameLocation": "6369:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6361:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 363,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6361:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 367,
|
|
"mutability": "mutable",
|
|
"name": "interestRateMode",
|
|
"nameLocation": "6398:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6381:33:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$133",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
},
|
|
"typeName": {
|
|
"id": 366,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 365,
|
|
"name": "InterestRateMode",
|
|
"nameLocations": [
|
|
"6381:16:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 133,
|
|
"src": "6381:16:1"
|
|
},
|
|
"referencedDeclaration": 133,
|
|
"src": "6381:16:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_InterestRateMode_$133",
|
|
"typeString": "enum DataTypes.InterestRateMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 369,
|
|
"mutability": "mutable",
|
|
"name": "maxStableLoanPercent",
|
|
"nameLocation": "6428:20:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6420:28:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 368,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6420:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 371,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "6462:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6454:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 370,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6454:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 373,
|
|
"mutability": "mutable",
|
|
"name": "oracle",
|
|
"nameLocation": "6489:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6481:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 372,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6481:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 375,
|
|
"mutability": "mutable",
|
|
"name": "userEModeCategory",
|
|
"nameLocation": "6507:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6501:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 374,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6501:5:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 377,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "6538:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6530:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 376,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6530:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 379,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeActive",
|
|
"nameLocation": "6568:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6563:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 378,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6563:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 381,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeCollateralAddress",
|
|
"nameLocation": "6601:30:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6593:38:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 380,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6593:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 383,
|
|
"mutability": "mutable",
|
|
"name": "isolationModeDebtCeiling",
|
|
"nameLocation": "6645:24:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 384,
|
|
"src": "6637:32:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 382,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6637:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ValidateBorrowParams",
|
|
"nameLocation": "6222:20:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "6215:459:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.ValidateLiquidationCallParams",
|
|
"id": 394,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 387,
|
|
"mutability": "mutable",
|
|
"name": "debtReserveCache",
|
|
"nameLocation": "6734:16:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 394,
|
|
"src": "6721:29:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$175_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
},
|
|
"typeName": {
|
|
"id": 386,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 385,
|
|
"name": "ReserveCache",
|
|
"nameLocations": [
|
|
"6721:12:1"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 175,
|
|
"src": "6721:12:1"
|
|
},
|
|
"referencedDeclaration": 175,
|
|
"src": "6721:12:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveCache_$175_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveCache"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 389,
|
|
"mutability": "mutable",
|
|
"name": "totalDebt",
|
|
"nameLocation": "6764:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 394,
|
|
"src": "6756:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 388,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6756:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 391,
|
|
"mutability": "mutable",
|
|
"name": "healthFactor",
|
|
"nameLocation": "6787:12:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 394,
|
|
"src": "6779:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 390,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6779:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 393,
|
|
"mutability": "mutable",
|
|
"name": "priceOracleSentinel",
|
|
"nameLocation": "6813:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 394,
|
|
"src": "6805:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 392,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6805:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ValidateLiquidationCallParams",
|
|
"nameLocation": "6685:29:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "6678:159:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.CalculateInterestRatesParams",
|
|
"id": 413,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 396,
|
|
"mutability": "mutable",
|
|
"name": "unbacked",
|
|
"nameLocation": "6891:8:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "6883:16:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 395,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6883:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 398,
|
|
"mutability": "mutable",
|
|
"name": "liquidityAdded",
|
|
"nameLocation": "6913:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "6905:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 397,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6905:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 400,
|
|
"mutability": "mutable",
|
|
"name": "liquidityTaken",
|
|
"nameLocation": "6941:14:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "6933:22:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 399,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6933:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 402,
|
|
"mutability": "mutable",
|
|
"name": "totalStableDebt",
|
|
"nameLocation": "6969:15:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "6961:23:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 401,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6961:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 404,
|
|
"mutability": "mutable",
|
|
"name": "totalVariableDebt",
|
|
"nameLocation": "6998:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "6990:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 403,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "6990:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 406,
|
|
"mutability": "mutable",
|
|
"name": "averageStableBorrowRate",
|
|
"nameLocation": "7029:23:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "7021:31:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 405,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7021:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 408,
|
|
"mutability": "mutable",
|
|
"name": "reserveFactor",
|
|
"nameLocation": "7066:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "7058:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 407,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7058:7:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 410,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "7093:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "7085:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 409,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7085:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 412,
|
|
"mutability": "mutable",
|
|
"name": "aToken",
|
|
"nameLocation": "7114:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 413,
|
|
"src": "7106:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 411,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7106:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "CalculateInterestRatesParams",
|
|
"nameLocation": "6848:28:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "6841:284:1",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "DataTypes.InitReserveParams",
|
|
"id": 428,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 415,
|
|
"mutability": "mutable",
|
|
"name": "asset",
|
|
"nameLocation": "7168:5:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7160:13:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 414,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7160:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 417,
|
|
"mutability": "mutable",
|
|
"name": "aTokenAddress",
|
|
"nameLocation": "7187:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7179:21:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 416,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7179:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 419,
|
|
"mutability": "mutable",
|
|
"name": "stableDebtAddress",
|
|
"nameLocation": "7214:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7206:25:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 418,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7206:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 421,
|
|
"mutability": "mutable",
|
|
"name": "variableDebtAddress",
|
|
"nameLocation": "7245:19:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7237:27:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 420,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7237:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 423,
|
|
"mutability": "mutable",
|
|
"name": "interestRateStrategyAddress",
|
|
"nameLocation": "7278:27:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7270:35:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 422,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7270:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 425,
|
|
"mutability": "mutable",
|
|
"name": "reservesCount",
|
|
"nameLocation": "7318:13:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7311:20:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 424,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7311:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 427,
|
|
"mutability": "mutable",
|
|
"name": "maxNumberReserves",
|
|
"nameLocation": "7344:17:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 428,
|
|
"src": "7337:24:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
},
|
|
"typeName": {
|
|
"id": 426,
|
|
"name": "uint16",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "7337:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint16",
|
|
"typeString": "uint16"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "InitReserveParams",
|
|
"nameLocation": "7136:17:1",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 429,
|
|
"src": "7129:237:1",
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 430,
|
|
"src": "62:7306:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "37:7332:1"
|
|
},
|
|
"id": 1
|
|
},
|
|
"contracts/libraries/DataTypesHelper.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/libraries/DataTypesHelper.sol",
|
|
"exportedSymbols": {
|
|
"DataTypes": [
|
|
429
|
|
],
|
|
"DataTypesHelper": [
|
|
467
|
|
],
|
|
"IERC20": [
|
|
77
|
|
]
|
|
},
|
|
"id": 468,
|
|
"license": "AGPL-3.0",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 431,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "38:24:2"
|
|
},
|
|
{
|
|
"absolutePath": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
|
|
"file": "@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol",
|
|
"id": 433,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 468,
|
|
"sourceUnit": 78,
|
|
"src": "66:94:2",
|
|
"symbolAliases": [
|
|
{
|
|
"foreign": {
|
|
"id": 432,
|
|
"name": "IERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 77,
|
|
"src": "74:6:2",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nameLocation": "-1:-1:-1"
|
|
}
|
|
],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
|
|
"file": "@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol",
|
|
"id": 435,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 468,
|
|
"sourceUnit": 430,
|
|
"src": "162:89:2",
|
|
"symbolAliases": [
|
|
{
|
|
"foreign": {
|
|
"id": 434,
|
|
"name": "DataTypes",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 429,
|
|
"src": "170:9:2",
|
|
"typeDescriptions": {}
|
|
},
|
|
"nameLocation": "-1:-1:-1"
|
|
}
|
|
],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "DataTypesHelper",
|
|
"contractDependencies": [],
|
|
"contractKind": "library",
|
|
"documentation": {
|
|
"id": 436,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "255:142:2",
|
|
"text": " @title DataTypesHelper\n @author Aave\n @dev Helper library to track user current debt balance, used by WrappedTokenGatewayV3"
|
|
},
|
|
"fullyImplemented": true,
|
|
"id": 467,
|
|
"linearizedBaseContracts": [
|
|
467
|
|
],
|
|
"name": "DataTypesHelper",
|
|
"nameLocation": "407:15:2",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 465,
|
|
"nodeType": "Block",
|
|
"src": "810:155:2",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"components": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"id": 454,
|
|
"name": "user",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 439,
|
|
"src": "882:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 450,
|
|
"name": "reserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 442,
|
|
"src": "840:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveData_$111_memory_ptr",
|
|
"typeString": "struct DataTypes.ReserveData memory"
|
|
}
|
|
},
|
|
"id": 451,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "848:22:2",
|
|
"memberName": "stableDebtTokenAddress",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 100,
|
|
"src": "840:30:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 449,
|
|
"name": "IERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 77,
|
|
"src": "833:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IERC20_$77_$",
|
|
"typeString": "type(contract IERC20)"
|
|
}
|
|
},
|
|
"id": 452,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "833:38:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IERC20_$77",
|
|
"typeString": "contract IERC20"
|
|
}
|
|
},
|
|
"id": 453,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "872:9:2",
|
|
"memberName": "balanceOf",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 16,
|
|
"src": "833:48:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint256_$",
|
|
"typeString": "function (address) view external returns (uint256)"
|
|
}
|
|
},
|
|
"id": 455,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "833:54:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"id": 461,
|
|
"name": "user",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 439,
|
|
"src": "947:4:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 457,
|
|
"name": "reserve",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 442,
|
|
"src": "903:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveData_$111_memory_ptr",
|
|
"typeString": "struct DataTypes.ReserveData memory"
|
|
}
|
|
},
|
|
"id": 458,
|
|
"isConstant": false,
|
|
"isLValue": true,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "911:24:2",
|
|
"memberName": "variableDebtTokenAddress",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 102,
|
|
"src": "903:32:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 456,
|
|
"name": "IERC20",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 77,
|
|
"src": "896:6:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IERC20_$77_$",
|
|
"typeString": "type(contract IERC20)"
|
|
}
|
|
},
|
|
"id": 459,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "896:40:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IERC20_$77",
|
|
"typeString": "contract IERC20"
|
|
}
|
|
},
|
|
"id": 460,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "937:9:2",
|
|
"memberName": "balanceOf",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 16,
|
|
"src": "896:50:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint256_$",
|
|
"typeString": "function (address) view external returns (uint256)"
|
|
}
|
|
},
|
|
"id": 462,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "896:56:2",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"id": 463,
|
|
"isConstant": false,
|
|
"isInlineArray": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"nodeType": "TupleExpression",
|
|
"src": "824:135:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
|
|
"typeString": "tuple(uint256,uint256)"
|
|
}
|
|
},
|
|
"functionReturnParameters": 448,
|
|
"id": 464,
|
|
"nodeType": "Return",
|
|
"src": "817:142:2"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 437,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "428:242:2",
|
|
"text": " @notice Fetches the user current stable and variable debt balances\n @param user The user address\n @param reserve The reserve data object\n @return The stable debt balance\n @return The variable debt balance*"
|
|
},
|
|
"id": 466,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getUserCurrentDebt",
|
|
"nameLocation": "683:18:2",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 443,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 439,
|
|
"mutability": "mutable",
|
|
"name": "user",
|
|
"nameLocation": "716:4:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 466,
|
|
"src": "708:12:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 438,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "708:7:2",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 442,
|
|
"mutability": "mutable",
|
|
"name": "reserve",
|
|
"nameLocation": "756:7:2",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 466,
|
|
"src": "727:36:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveData_$111_memory_ptr",
|
|
"typeString": "struct DataTypes.ReserveData"
|
|
},
|
|
"typeName": {
|
|
"id": 441,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 440,
|
|
"name": "DataTypes.ReserveData",
|
|
"nameLocations": [
|
|
"727:9:2",
|
|
"737:11:2"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 111,
|
|
"src": "727:21:2"
|
|
},
|
|
"referencedDeclaration": 111,
|
|
"src": "727:21:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ReserveData_$111_storage_ptr",
|
|
"typeString": "struct DataTypes.ReserveData"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "701:67:2"
|
|
},
|
|
"returnParameters": {
|
|
"id": 448,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 445,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 466,
|
|
"src": "792:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 444,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "792:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 447,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 466,
|
|
"src": "801:7:2",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 446,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "801:7:2",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "791:18:2"
|
|
},
|
|
"scope": 467,
|
|
"src": "674:291:2",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 468,
|
|
"src": "399:569:2",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "38:932:2"
|
|
},
|
|
"id": 2
|
|
}
|
|
}
|
|
}
|
|
} |