{"file_path":"lib/aave-v3-origin-private/src/contracts/instances/PoolConfiguratorInstance.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.0;\n\nimport {PoolConfigurator, IPoolAddressesProvider, IPool, VersionedInitializable} from '../protocol/pool/PoolConfigurator.sol';\n\n/**\n * @title Aave PoolConfigurator Instance\n * @author BGD Labs\n * @notice Instance of the PoolConfigurator of the Aave protocol\n */\ncontract PoolConfiguratorInstance is PoolConfigurator {\n  uint256 public constant CONFIGURATOR_REVISION = 8;\n\n  /// @inheritdoc VersionedInitializable\n  function getRevision() internal pure virtual override returns (uint256) {\n    return CONFIGURATOR_REVISION;\n  }\n\n  function initialize(IPoolAddressesProvider provider) public virtual override initializer {\n    _addressesProvider = provider;\n    _pool = IPool(_addressesProvider.getPool());\n  }\n}\n","deployed_bytecode":"0x608060405234801561000f575f5ffd5b50600436106101c6575f3560e01c80637af635a6116100fe578063b42d793b1161009e578063d14a09831161006e578063d14a0983146103d0578063f213ef0e146103e3578063f6527810146103f6578063f787ac1f14610409575f5ffd5b8063b42d793b14610384578063b736aaeb14610397578063bfbc47ff146103aa578063c4d66de8146103bd575f5ffd5b806385cbfce3116100d957806385cbfce314610323578063888a1d5e1461033657806396e957c41461035e5780639c1d5f0014610371575f5ffd5b80637af635a6146102e75780637c025f2c146102fd5780637c4e560b14610310575f5ffd5b806348d9fba9116101695780636623c804116101445780636623c8041461029b578063682cf264146102ae5780636aabe21d146102c15780637641f3d9146102d4575f5ffd5b806348d9fba9146102625780634b4e675314610275578063571f03e514610288575f5ffd5b806323415e46116101a457806323415e461461020557806326d2cec2146102185780632dc9552b1461022b578063466196491461023e575f5ffd5b8063110ac256146101ca57806312bc3f61146101df57806314ef0ac5146101f2575b5f5ffd5b6101dd6101d8366004613fc3565b61041c565b005b6101dd6101ed36600461401d565b610698565b6101dd61020036600461406a565b61077e565b6101dd6102133660046140a4565b61079f565b6101dd6102263660046140bf565b61083d565b6101dd6102393660046140e9565b610994565b61024761384081565b60405164ffffffffff90911681526020015b60405180910390f35b6101dd6102703660046140e9565b610a9f565b6101dd6102833660046140bf565b610ab6565b6101dd6102963660046140bf565b610c94565b6101dd6102a9366004614115565b610dc1565b6101dd6102bc3660046140e9565b610f33565b6101dd6102cf3660046141cb565b61105c565b6101dd6102e236600461421c565b611212565b6102ef600881565b604051908152602001610259565b6101dd61030b366004614246565b611224565b6101dd61031e3660046142e2565b611451565b6101dd610331366004613fc3565b61170f565b6102ef6103443660046140a4565b6001600160a01b03165f9081526036602052604090205490565b6101dd61036c3660046140e9565b6119bc565b6101dd61037f36600461432e565b611c4b565b6101dd610392366004614349565b611d93565b6101dd6103a53660046140e9565b611fad565b6101dd6103b836600461406a565b6120d7565b6101dd6103cb3660046140a4565b6120f5565b6101dd6103de3660046140bf565b612245565b6101dd6103f13660046140e9565b612372565b6101dd610404366004613fc3565b61248e565b6101dd610417366004614386565b61284d565b6104246128fb565b60355460405163903a2c7160e01b815260ff841660048201525f916001600160a01b03169063903a2c7190602401602060405180830381865afa15801561046d573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061049191906143b2565b6035546040516335ea6a7560e01b81526001600160a01b0387811660048301529293505f92909116906335ea6a75906024016101e060405180830381865afa1580156104df573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610503919061449d565b90508060e0015161ffff165f1415806105aa5750603554604080516334651b6f60e21b815290516001600160a01b0380891693169163d1946dbc916004808301925f9291908290030181865afa15801561055f573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261058691908101906145c7565b5f815181106105975761059761467b565b60200260200101516001600160a01b0316145b6105c75760405163b77e1e0f60e01b815260040160405180910390fd5b6105da828260e0015161ffff1685612a58565b60355460405160016246f53b60e11b0319815260ff871660048201526001600160801b03831660248201529193506001600160a01b03169063ff72158a906044015f604051808303815f87803b158015610632575f5ffd5b505af1158015610644573d5f5f3e3d5ffd5b50506040805160ff8816815286151560208201526001600160a01b03891693507f60087ca045be9d8d1301445e67d6248eddba97629c80284fa4910c0e52f103ab9250015b60405180910390a25050505050565b6106a0612a9a565b603554604080516334651b6f60e21b815290515f926001600160a01b03169163d1946dbc91600480830192869291908290030181865afa1580156106e6573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261070d91908101906145c7565b90505f5b8151811015610778575f6001600160a01b03168282815181106107365761073661467b565b60200260200101516001600160a01b031614610770576107708282815181106107615761076161467b565b60200260200101518585611d93565b600101610711565b50505050565b610786612bf7565b60355461079c906001600160a01b031682612ce8565b50565b6107a7612a9a565b6035546040516358d4cf1360e11b81526001600160a01b0383811660048301525f60248301529091169063b1a99e26906044015f604051808303815f87803b1580156107f1575f5ffd5b505af1158015610803573d5f5f3e3d5ffd5b50506040516001600160a01b03841692507f1df36dc1651d06d990805068d22811a3a9ca4396190787ef59f9102e61868fff91505f90a250565b6108456128fb565b6127108111156108685760405163239eacb960e01b815260040160405180910390fd5b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa1580156108b0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d4919061468f565b805190915060981c61ffff166108ea8284612f0b565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061091c90879086906004016146a9565b5f604051808303815f87803b158015610933575f5ffd5b505af1158015610945573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507fb5b0a963825337808b6e3154de8e98027595a5cad4219bb3a9bc55b192f4b3919250015b60405180910390a250505050565b61099c612f43565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa1580156109e4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a08919061468f565b8051909150610a1884848461310c565b8151819003610a3a57604051632481224760e01b815260040160405180910390fd5b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610a6c90879086906004016146a9565b5f604051808303815f87803b158015610a83575f5ffd5b505af1158015610a95573d5f5f3e3d5ffd5b5050505050505050565b610aa7612a9a565b610ab282825f611d93565b5050565b610abe6128fb565b612710811115610ae157604051631b9bc96960e11b815260040160405180910390fd5b603554604051635595a8fb60e11b81526001600160a01b0384811660048301529091169063ab2b51f6906024015f604051808303815f87803b158015610b25575f5ffd5b505af1158015610b37573d5f5f3e3d5ffd5b505060355460405163c44b11f760e01b81526001600160a01b0386811660048301525f9450909116915063c44b11f790602401602060405180830381865afa158015610b85573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ba9919061468f565b805190915060401c61ffff16610bbf8284613279565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610bf190879086906004016146a9565b5f604051808303815f87803b158015610c08575f5ffd5b505af1158015610c1a573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507fb46e2b82b0c2cf3d7d9dece53635e165c53e0eaa7a44f904d61a2b7174826aef92500160405180910390a2603554604051634c63ed2760e11b81526001600160a01b038681166004830152909116906398c7da4e90602401610a6c565b610c9c6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa158015610ce4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d08919061468f565b805190915060741c640fffffffff16610d2182846132b6565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610d5390879086906004016146a9565b5f604051808303815f87803b158015610d6a575f5ffd5b505af1158015610d7c573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507f0263602682188540a2d633561c0b4453b7d8566285e99f9f6018b8ef2facef49925001610986565b610dc96132f4565b60355460408051630dc7f58760e11b815290516001600160a01b03909216915f918391631b8feb0e916004808201926020929091908290030181865afa158015610e15573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3991906146c3565b90505f5b83811015610f2c57610e7283868684818110610e5b57610e5b61467b565b9050602002810190610e6d91906146de565b613450565b816001600160a01b0316858583818110610e8e57610e8e61467b565b9050602002810190610ea091906146de565b610eb19060608101906040016140a4565b6001600160a01b03167f1e608c2c753fede2f1f22fca4170277b53ebe5015e488a53414a8921446b7c40878785818110610eed57610eed61467b565b9050602002810190610eff91906146de565b610f0e906101008101906146fd565b604051610f1c929190614768565b60405180910390a3600101610e3d565b5050505050565b610f3b6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa158015610f83573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fa7919061468f565b9050610fb38183613870565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610fe590869085906004016146a9565b5f604051808303815f87803b158015610ffc575f5ffd5b505af115801561100e573d5f5f3e3d5ffd5b50505050826001600160a01b03167f2443ba28e8d1d88d531a3d90b981816a4f3b3c7f1fd4085c6029e81d1b7a570d8360405161104f911515815260200190565b60405180910390a2505050565b6110646128fb565b603554604051635595a8fb60e11b81526001600160a01b0385811660048301529091169063ab2b51f6906024015f604051808303815f87803b1580156110a8575f5ffd5b505af11580156110ba573d5f5f3e3d5ffd5b505050505f60355f9054906101000a90046001600160a01b03166001600160a01b0316631b8feb0e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561110f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061113391906146c3565b60405163a8d9e56f60e01b81529091506001600160a01b0382169063a8d9e56f906111669087908790879060040161477b565b5f604051808303815f87803b15801561117d575f5ffd5b505af115801561118f573d5f5f3e3d5ffd5b50505050806001600160a01b0316846001600160a01b03167f1e608c2c753fede2f1f22fca4170277b53ebe5015e488a53414a8921446b7c4085856040516111d8929190614768565b60405180910390a3603554604051634c63ed2760e11b81526001600160a01b038681166004830152909116906398c7da4e90602401610a6c565b61121a612a9a565b61079c815f610698565b61122c6128fb565b8561ffff165f036112505760405163ec1dd8d560e01b815260040160405180910390fd5b8461ffff165f036112745760405163ec1dd8d560e01b815260040160405180910390fd5b8461ffff168661ffff16111561129d5760405163ec1dd8d560e01b815260040160405180910390fd5b6127108461ffff16116112c35760405163ec1dd8d560e01b815260040160405180910390fd5b6127106112d761ffff87811690871661389d565b11156112f65760405163ec1dd8d560e01b815260040160405180910390fd5b6040805160a08101825260606080820181905261ffff898116835288811660208085019190915290881683850152841515918301919091528251601f860182900482028101820190935284835290919085908590819084018382808284375f9201919091525050505060808201526035546040516318c0b83960e21b81526001600160a01b0390911690636302e0e490611396908b9085906004016147d6565b5f604051808303815f87803b1580156113ad575f5ffd5b505af11580156113bf573d5f5f3e3d5ffd5b505050508760ff167f0acf8b4a3cace10779798a89a206a0ae73a71b63acdd3be2801d39c2ef7ab3cb8888885f898960405161140096959493929190614830565b60405180910390a28760ff167fea07f8a4f488dcc1dc8c27b9c526ac8ba2d04b8024e206616f306c51d9b168268360405161143f911515815260200190565b60405180910390a25050505050505050565b6114596128fb565b8183111561147a576040516332d6d3ef60e01b815260040160405180910390fd5b60355460405163c44b11f760e01b81526001600160a01b0386811660048301525f92169063c44b11f790602401602060405180830381865afa1580156114c2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114e6919061468f565b90508215611541576127108211611510576040516332d6d3ef60e01b815260040160405180910390fd5b61271061151d848461389d565b111561153c576040516332d6d3ef60e01b815260040160405180910390fd5b611569565b8115611560576040516332d6d3ef60e01b815260040160405180910390fd5b611569856138c1565b8361157a8251600160391b16151590565b156115d457506001600160a01b0385165f818152603660209081526040808320889055518781529192917f6a3fa1f355f7c7ab43e41cb277d1f8471f2693c63dca91049d5ec127bb588e10910160405180910390a2611648565b6001600160a01b0386165f908152603660205260409020541561163e576001600160a01b0386165f818152603660209081526040808320839055519182527f6a3fa1f355f7c7ab43e41cb277d1f8471f2693c63dca91049d5ec127bb588e10910160405180910390a25b6116488286613a48565b6116528285613a77565b61165c8284613aad565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061168e90899086906004016146a9565b5f604051808303815f87803b1580156116a5575f5ffd5b505af11580156116b7573d5f5f3e3d5ffd5b505060408051848152602081018890529081018690526001600160a01b03891692507f637febbda9275aea2e85c0ff690444c8d87eb2e8339bbede9715abcc89cb0995915060600160405180910390a2505050505050565b611717612f43565b60355460405163fd89dee560e01b815260ff841660048201525f916001600160a01b03169063fd89dee590602401602060405180830381865afa158015611760573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061178491906143b2565b6035546040516335ea6a7560e01b81526001600160a01b0387811660048301529293505f92909116906335ea6a75906024016101e060405180830381865afa1580156117d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117f6919061449d565b90508060e0015161ffff165f14158061189d5750603554604080516334651b6f60e21b815290516001600160a01b0380891693169163d1946dbc916004808301925f9291908290030181865afa158015611852573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261187991908101906145c7565b5f8151811061188a5761188a61467b565b60200260200101516001600160a01b0316145b6118ba5760405163b77e1e0f60e01b815260040160405180910390fd5b60355460405163583b8edd60e11b815260ff861660048201525f916001600160a01b03169063b0771dba90602401602060405180830381865afa158015611903573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061192791906143b2565b905061193b818360e0015161ffff16613ae6565b868690916119755760405163d039d03d60e01b81526001600160a01b03909216600483015260ff1660248201526044015b60405180910390fd5b5050836119a357815151600160391b16156119a357604051636d30581560e01b815260040160405180910390fd5b6119b483878460e001518888613b21565b505050505050565b6119c4612f43565b6035546040516335ea6a7560e01b81526001600160a01b0384811660048301525f9216906335ea6a75906024016101e060405180830381865afa158015611a0d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a31919061449d565b8051909150611a468151600160391b16151590565b151583151503611a6957604051634c860b2b60e11b815260040160405180910390fd5b611a738184613be0565b8215611baf57611a858460018361310c565b5f8060015b60ff8111611bab5760355460405163583b8edd60e11b815260ff831660048201526001600160a01b039091169063b0771dba90602401602060405180830381865afa158015611adb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aff91906143b2565b9250611b13838660e0015161ffff16613ae6565b15611b995760355460405163fd89dee560e01b815260ff831660048201526001600160a01b039091169063fd89dee590602401602060405180830381865afa158015611b61573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b8591906143b2565b9150611b9982888760e00151846001613b21565b80611ba38161488e565b915050611a8a565b5050505b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90611be190879085906004016146a9565b5f604051808303815f87803b158015611bf8575f5ffd5b505af1158015611c0a573d5f5f3e3d5ffd5b50505050836001600160a01b03167f0c4443d258a350d27dc50c378b2ebf165e6469725f786d21b30cab16823f558784604051610986911515815260200190565b611c53612bf7565b612710816001600160801b03161115611c7f57604051633a168e3960e11b815260040160405180910390fd5b6035546040805163074b2e4360e01b815290515f926001600160a01b03169163074b2e439160048083019260209291908290030181865afa158015611cc6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cea91906143b2565b603554604051629c1d5f60e81b81526001600160801b03851660048201529192506001600160a01b031690639c1d5f00906024015f604051808303815f87803b158015611d35575f5ffd5b505af1158015611d47573d5f5f3e3d5ffd5b5050604080516001600160801b038086168252861660208201527f71aba182c9d0529b516de7a78bed74d49c207ef7e152f52f7ea5d8730138f643935001905060405180910390a15050565b611d9b612a9a565b81158015611daf575064ffffffffff811615155b15611e995761384064ffffffffff82161115611dde5760405163d7c43e0f60e01b815260040160405180910390fd5b5f611de982426148a6565b6035546040516358d4cf1360e11b81526001600160a01b03878116600483015264ffffffffff8416602483015292935091169063b1a99e26906044015f604051808303815f87803b158015611e3c575f5ffd5b505af1158015611e4e573d5f5f3e3d5ffd5b505060405164ffffffffff841681526001600160a01b03871692507fdf4f96448786bcd6fecc9f1fa25f1fbbbee6a5c9e76d635a615ac57bb5983d10915060200160405180910390a2505b60355460405163c44b11f760e01b81526001600160a01b0385811660048301525f92169063c44b11f790602401602060405180830381865afa158015611ee1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f05919061468f565b9050611f118184613c0d565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90611f4390879085906004016146a9565b5f604051808303815f87803b158015611f5a575f5ffd5b505af1158015611f6c573d5f5f3e3d5ffd5b50505050836001600160a01b03167fe188d542a5f11925d3a3af33703cdd30a43cb3e8066a3cf68b1b57f61a5a94b584604051610986911515815260200190565b611fb5612bf7565b80611fc357611fc3826138c1565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa15801561200b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061202f919061468f565b905061203b8183613c3a565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061206d90869085906004016146a9565b5f604051808303815f87803b158015612084575f5ffd5b505af1158015612096573d5f5f3e3d5ffd5b50505050826001600160a01b03167fc36c7d11ba01a5869d52aa4a3781939dab851cbc9ee6e7fdcedc7d58898a3f1e8360405161104f911515815260200190565b6120df612bf7565b60355461079c906001600160a01b031682613c67565b60015460089060ff16806121085750303b155b8061211357505f5481115b6121765760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b606482015260840161196c565b60015460ff16158015612194576001805460ff1916811790555f8290555b603480546001600160a01b0319166001600160a01b0385169081179091556040805163026b1d5f60e01b8152905163026b1d5f916004808201926020929091908290030181865afa1580156121eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061220f91906146c3565b603580546001600160a01b0319166001600160a01b03929092169190911790558015612240576001805460ff191690555b505050565b61224d6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa158015612295573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122b9919061468f565b805190915060501c640fffffffff166122d28284613e14565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061230490879086906004016146a9565b5f604051808303815f87803b15801561231b575f5ffd5b505af115801561232d573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507fc51aca575985d521c5072ad11549bad77013bb786d57f30f94b40ed8f8dc9bc4925001610986565b61237a6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa1580156123c2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123e6919061468f565b90506123f28183613e52565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061242490869085906004016146a9565b5f604051808303815f87803b15801561243b575f5ffd5b505af115801561244d573d5f5f3e3d5ffd5b50505050826001600160a01b03167fc8ff3cc5b0fddaa3e6ebbbd7438f43393e4ea30e88b80ad016c1bc094655034d8360405161104f911515815260200190565b6124966128fb565b60355460405163583b8edd60e11b815260ff841660048201525f916001600160a01b03169063b0771dba90602401602060405180830381865afa1580156124df573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061250391906143b2565b6035546040516335ea6a7560e01b81526001600160a01b0387811660048301529293505f92909116906335ea6a75906024016101e060405180830381865afa158015612551573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612575919061449d565b90508060e0015161ffff165f14158061261c5750603554604080516334651b6f60e21b815290516001600160a01b0380891693169163d1946dbc916004808301925f9291908290030181865afa1580156125d1573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526125f891908101906145c7565b5f815181106126095761260961467b565b60200260200101516001600160a01b0316145b6126395760405163b77e1e0f60e01b815260040160405180910390fd5b826127635760355460405163c44b11f760e01b81526001600160a01b0387811660048301525f92169063c44b11f790602401602060405180830381865afa158015612686573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126aa919061468f565b805190915060101c61ffff165f036126c5576126c5866138c1565b60355460405163fd89dee560e01b815260ff871660048201525f916001600160a01b03169063fd89dee590602401602060405180830381865afa15801561270e573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061273291906143b2565b9050612746818460e0015161ffff16613ae6565b1561275c5761275c81888560e00151895f613b21565b505061278a565b805151600160391b161561278a57604051636d30581560e01b815260040160405180910390fd5b61279d828260e0015161ffff1685612a58565b6035546040516392380ecb60e01b815260ff871660048201526001600160801b03831660248201529193506001600160a01b0316906392380ecb906044015f604051808303815f87803b1580156127f2575f5ffd5b505af1158015612804573d5f5f3e3d5ffd5b50506040805160ff8816815286151560208201526001600160a01b03891693507f79409190108b26fcb0e4570f8e240f627bf18fd01a55f751010224d5bd486098925001610689565b612855612f43565b6035546040516356abfa1b60e11b815260ff8416600482015282151560248201526001600160a01b039091169063ad57f436906044015f604051808303815f87803b1580156128a2575f5ffd5b505af11580156128b4573d5f5f3e3d5ffd5b505050508160ff167fea07f8a4f488dcc1dc8c27b9c526ac8ba2d04b8024e206616f306c51d9b16826826040516128ef911515815260200190565b60405180910390a25050565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612942573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061296691906146c3565b60405163674b5e4d60e01b81523360048201529091506001600160a01b0382169063674b5e4d90602401602060405180830381865afa1580156129ab573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129cf91906148c3565b80612a3b5750604051637be53ca160e01b81523360048201526001600160a01b03821690637be53ca190602401602060405180830381865afa158015612a17573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a3b91906148c3565b61079c576040516366e574d760e01b815260040160405180910390fd5b5f60808310612a7a576040516385e98beb60e01b815260040160405180910390fd5b6001831b8215612a8d5784179050612a93565b19841690505b9392505050565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612ae1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b0591906146c3565b604051637be53ca160e01b81523360048201529091506001600160a01b03821690637be53ca190602401602060405180830381865afa158015612b4a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b6e91906148c3565b80612bda5750604051631280795b60e11b81523360048201526001600160a01b03821690632500f2b690602401602060405180830381865afa158015612bb6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bda91906148c3565b61079c57604051630934f60560e41b815260040160405180910390fd5b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612c3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c6291906146c3565b604051637be53ca160e01b81523360048201529091506001600160a01b03821690637be53ca190602401602060405180830381865afa158015612ca7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ccb91906148c3565b61079c5760405163cdd36a9760e01b815260040160405180910390fd5b5f6001600160a01b03831663cff027d9612d0560208501856140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612d47573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d6b91906146c3565b90505f612dfd6001600160a01b03851663c44b11f7612d8d60208701876140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612dcf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612df3919061468f565b5160301c60ff1690565b90505f637fdd585f60e01b85612e1660208701876140a4565b84612e2460208901896146fd565b612e3160408b018b6146fd565b612e3e60808d018d6146fd565b604051602401612e56999897969594939291906148de565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050612ea483612e9e60808701606088016140a4565b83613e7f565b612eb460808501606086016140a4565b6001600160a01b03908116908416612ecf60208701876140a4565b6001600160a01b03167fa76f65411ec66a7fb6bc467432eb14767900449ae4469fa295e4441fe5e1cb7360405160405180910390a45050505050565b61ffff811115612f2e5760405163239eacb960e01b815260040160405180910390fd5b815161ffff60981b191660989190911b179052565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612f8a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612fae91906146c3565b60405163674b5e4d60e01b81523360048201529091506001600160a01b0382169063674b5e4d90602401602060405180830381865afa158015612ff3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061301791906148c3565b806130835750604051637be53ca160e01b81523360048201526001600160a01b03821690637be53ca190602401602060405180830381865afa15801561305f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061308391906148c3565b806130ef5750604051631280795b60e11b81523360048201526001600160a01b03821690632500f2b690602401602060405180830381865afa1580156130cb573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130ef91906148c3565b61079c5760405163803ddb7b60e01b815260040160405180910390fd5b5f5f831561315a57825161ffff165f03613127575050505050565b825161ffff166001600160a01b0386165f908152603660205260408120829055909150613155908490613a48565b6131da565b8251600160391b161561318057604051636d30581560e01b815260040160405180910390fd5b6001600160a01b0385165f9081526036602052604090205491508115806131ab5750825161ffff1615155b156131b7575050505050565b6131c18383613a48565b6001600160a01b0385165f908152603660205260408120555b846001600160a01b03167f6a3fa1f355f7c7ab43e41cb277d1f8471f2693c63dca91049d5ec127bb588e108260405161321591815260200190565b60405180910390a282516001600160a01b038616907f637febbda9275aea2e85c0ff690444c8d87eb2e8339bbede9715abcc89cb099590849060101c61ffff16865160201c61ffff1660408051938452602084019290925290820152606001610689565b61ffff81111561329c57604051631b9bc96960e11b815260040160405180910390fd5b815169ffff0000000000000000191660409190911b179052565b640fffffffff8111156132dc5760405163606bb6c960e11b815260040160405180910390fd5b8151640fffffffff60741b191660749190911b179052565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa15801561333b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061335f91906146c3565b604051629f719760e51b81523360048201529091506001600160a01b038216906313ee32e090602401602060405180830381865afa1580156133a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906133c791906148c3565b806134335750604051637be53ca160e01b81523360048201526001600160a01b03821690637be53ca190602401602060405180830381865afa15801561340f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061343391906148c3565b61079c57604051630e8e140f60e21b815260040160405180910390fd5b5f61346160608301604084016140a4565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561349c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906134c09190614949565b905060058160ff16116134e657604051630692acc560e51b815260040160405180910390fd5b5f6135876134f760208501856140a4565b637fdd585f60e01b8661351060608801604089016140a4565b8661351e60608a018a6146fd565b61352b60808c018c6146fd565b61353860e08e018e6146fd565b60405160240161355099989796959493929190614964565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613eaf565b90505f6135de61359d60408601602087016140a4565b637fdd585f60e01b876135b66060890160408a016140a4565b876135c460a08b018b6146fd565b6135d160c08d018d6146fd565b61353860e08f018f6146fd565b90506001600160a01b03851663932f12c86135ff60608701604088016140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152818616602482015290841660448201526064015f604051808303815f87803b15801561364d575f5ffd5b505af115801561365f573d5f5f3e3d5ffd5b505060408051602081019091525f8152915061368090508160ff8616613f4e565b61368b816001613c3a565b613695815f613c0d565b61369f815f613be0565b6136b88180516001600f60fc1b0316600160fc1b179052565b6001600160a01b03861663f51e435b6136d760608801604089016140a4565b836040518363ffffffff1660e01b81526004016136f59291906146a9565b5f604051808303815f87803b15801561370c575f5ffd5b505af115801561371e573d5f5f3e3d5ffd5b505050505f866001600160a01b0316631b8feb0e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561375f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061378391906146c3565b90506001600160a01b03811663a8d9e56f6137a46060890160408a016140a4565b6137b26101008a018a6146fd565b6040518463ffffffff1660e01b81526004016137d09392919061477b565b5f604051808303815f87803b1580156137e7575f5ffd5b505af11580156137f9573d5f5f3e3d5ffd5b5050506001600160a01b038516905061381860608801604089016140a4565b604080515f81526001600160a01b03878116602083015285811682840152915192909116917f3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f9181900360600190a350505050505050565b603a8161387d575f613880565b60015b8351670400000000000000191660ff9190911690911b1790915250565b5f811561138819839004841115176138b3575f5ffd5b506127109102611388010490565b6035546040516335ea6a7560e01b81526001600160a01b0383811660048301525f9216906335ea6a75906024016101e060405180830381865afa15801561390a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061392e919061449d565b90505f60345f9054906101000a90046001600160a01b03166001600160a01b031663e860accb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613981573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139a591906146c3565b6040516351460e2560e01b81526001600160a01b03858116600483015291909116906351460e2590602401602060405180830381865afa1580156139eb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a0f9190614999565b905080158015613a2b57506101808201516001600160801b0316155b61224057604051633ccca94760e11b815260040160405180910390fd5b61ffff811115613a6b5760405163324b20e160e11b815260040160405180910390fd5b815161ffff1916179052565b61ffff811115613a995760405162f9474b60e61b815260040160405180910390fd5b815163ffff0000191660109190911b179052565b61ffff811115613ad057604051631506630760e21b815260040160405180910390fd5b815165ffff00000000191660209190911b179052565b5f60808210613b08576040516385e98beb60e01b815260040160405180910390fd5b5060016001600160801b038316821c1615155b92915050565b613b30858461ffff1683612a58565b6035546040516310870f7560e01b815260ff851660048201526001600160801b03831660248201529196506001600160a01b0316906310870f75906044015f604051808303815f87803b158015613b85575f5ffd5b505af1158015613b97573d5f5f3e3d5ffd5b50506040805160ff8616815284151560208201526001600160a01b03881693507fc0a450fbad635333e47f3322ec028a8e0b3909f79c721312a356a0fab5fa8b94925001610689565b603981613bed575f613bf0565b60015b8351670200000000000000191660ff9190911690911b1790915250565b603c81613c1a575f613c1d565b60015b8351671000000000000000191660ff9190911690911b1790915250565b603881613c47575f613c4a565b60015b8351670100000000000000191660ff9190911690911b1790915250565b5f6001600160a01b03831663365090a0613c8460208501856140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015613cc6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613cea91906146c3565b90505f613d0c6001600160a01b03851663c44b11f7612d8d60208701876140a4565b90505f637fdd585f60e01b85613d2560208701876140a4565b84613d3360208901896146fd565b613d4060408b018b6146fd565b613d4d60808d018d6146fd565b604051602401613d65999897969594939291906148de565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050613dad83612e9e60808701606088016140a4565b613dbd60808501606086016140a4565b6001600160a01b03908116908416613dd860208701876140a4565b6001600160a01b03167f9439658a562a5c46b1173589df89cf001483d685bad28aedaff4a88656292d8160405160405180910390a45050505050565b640fffffffff811115613e3a576040516353f4dadb60e11b815260040160405180910390fd5b8151640fffffffff60501b191660509190911b179052565b603f81613e5f575f613e62565b60015b8351678000000000000000191660ff9190911690911b1790915250565b60405163278f794360e11b815283906001600160a01b03821690634f1ef28690610a6c90869086906004016149b0565b5f5f30604051613ebe90613f87565b6001600160a01b039091168152602001604051809103905ff080158015613ee7573d5f5f3e3d5ffd5b5060405163347d5e2560e21b81529091506001600160a01b0382169063d1f5789490613f1990879087906004016149b0565b5f604051808303815f87803b158015613f30575f5ffd5b505af1158015613f42573d5f5f3e3d5ffd5b50929695505050505050565b60ff811115613f7057604051630692acc560e51b815260040160405180910390fd5b815166ff000000000000191660309190911b179052565b6107d8806149d483390190565b6001600160a01b038116811461079c575f5ffd5b60ff8116811461079c575f5ffd5b801515811461079c575f5ffd5b5f5f5f60608486031215613fd5575f5ffd5b8335613fe081613f94565b92506020840135613ff081613fa8565b9150604084013561400081613fb6565b809150509250925092565b64ffffffffff8116811461079c575f5ffd5b5f5f6040838503121561402e575f5ffd5b823561403981613fb6565b915060208301356140498161400b565b809150509250929050565b5f60a08284031215614064575f5ffd5b50919050565b5f6020828403121561407a575f5ffd5b813567ffffffffffffffff811115614090575f5ffd5b61409c84828501614054565b949350505050565b5f602082840312156140b4575f5ffd5b8135612a9381613f94565b5f5f604083850312156140d0575f5ffd5b82356140db81613f94565b946020939093013593505050565b5f5f604083850312156140fa575f5ffd5b823561410581613f94565b9150602083013561404981613fb6565b5f5f60208385031215614126575f5ffd5b823567ffffffffffffffff81111561413c575f5ffd5b8301601f8101851361414c575f5ffd5b803567ffffffffffffffff811115614162575f5ffd5b8560208260051b8401011115614176575f5ffd5b6020919091019590945092505050565b5f5f83601f840112614196575f5ffd5b50813567ffffffffffffffff8111156141ad575f5ffd5b6020830191508360208285010111156141c4575f5ffd5b9250929050565b5f5f5f604084860312156141dd575f5ffd5b83356141e881613f94565b9250602084013567ffffffffffffffff811115614203575f5ffd5b61420f86828701614186565b9497909650939450505050565b5f6020828403121561422c575f5ffd5b8135612a9381613fb6565b61ffff8116811461079c575f5ffd5b5f5f5f5f5f5f5f60c0888a03121561425c575f5ffd5b873561426781613fa8565b9650602088013561427781614237565b9550604088013561428781614237565b9450606088013561429781614237565b9350608088013567ffffffffffffffff8111156142b2575f5ffd5b6142be8a828b01614186565b90945092505060a08801356142d281613fb6565b8091505092959891949750929550565b5f5f5f5f608085870312156142f5575f5ffd5b843561430081613f94565b966020860135965060408601359560600135945092505050565b6001600160801b038116811461079c575f5ffd5b5f6020828403121561433e575f5ffd5b8135612a938161431a565b5f5f5f6060848603121561435b575f5ffd5b833561436681613f94565b9250602084013561437681613fb6565b915060408401356140008161400b565b5f5f60408385031215614397575f5ffd5b823561410581613fa8565b80516143ad8161431a565b919050565b5f602082840312156143c2575f5ffd5b8151612a938161431a565b634e487b7160e01b5f52604160045260245ffd5b6040516101e0810167ffffffffffffffff81118282101715614405576144056143cd565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614434576144346143cd565b604052919050565b5f6020828403121561444c575f5ffd5b6040516020810167ffffffffffffffff8111828210171561446f5761446f6143cd565b6040529151825250919050565b80516143ad8161400b565b80516143ad81614237565b80516143ad81613f94565b5f6101e08284031280156144af575f5ffd5b506144b86143e1565b6144c2848461443c565b81526144d0602084016143a2565b60208201526144e1604084016143a2565b60408201526144f2606084016143a2565b6060820152614503608084016143a2565b608082015261451460a084016143a2565b60a082015261452560c0840161447c565b60c082015261453660e08401614487565b60e08201526145486101008401614492565b61010082015261455b6101208401614492565b61012082015261456e6101408401614492565b6101408201526145816101608401614492565b61016082015261459461018084016143a2565b6101808201526145a76101a084016143a2565b6101a08201526145ba6101c084016143a2565b6101c08201529392505050565b5f602082840312156145d7575f5ffd5b815167ffffffffffffffff8111156145ed575f5ffd5b8201601f810184136145fd575f5ffd5b805167ffffffffffffffff811115614617576146176143cd565b8060051b6146276020820161440b565b91825260208184018101929081019087841115614642575f5ffd5b6020850194505b83851015614670578451925061465e83613f94565b82825260209485019490910190614649565b979650505050505050565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561469f575f5ffd5b612a93838361443c565b6001600160a01b0392909216825251602082015260400190565b5f602082840312156146d3575f5ffd5b8151612a9381613f94565b5f823561011e198336030181126146f3575f5ffd5b9190910192915050565b5f5f8335601e19843603018112614712575f5ffd5b83018035915067ffffffffffffffff82111561472c575f5ffd5b6020019150368190038213156141c4575f5ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f61409c602083018486614740565b6001600160a01b03841681526040602082018190525f9061479f9083018486614740565b95945050505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff831681526040602082015261ffff825116604082015261ffff602083015116606082015261ffff60408301511660808201526060820151151560a08201525f608083015160a060c084015261479f60e08401826147a8565b61ffff87811682528681166020830152851660408201526001600160a01b038416606082015260a0608082018190525f9061486e9083018486614740565b98975050505050505050565b634e487b7160e01b5f52601160045260245ffd5b5f6001820161489f5761489f61487a565b5060010190565b64ffffffffff8181168382160190811115613b1b57613b1b61487a565b5f602082840312156148d3575f5ffd5b8151612a9381613fb6565b6001600160a01b038a81168252891660208201526040810188905260c0606082018190525f90614911908301888a614740565b8281036080840152614924818789614740565b905082810360a0840152614939818587614740565b9c9b505050505050505050505050565b5f60208284031215614959575f5ffd5b8151612a9381613fa8565b6001600160a01b038a811682528916602082015260ff8816604082015260c0606082018190525f90614911908301888a614740565b5f602082840312156149a9575f5ffd5b5051919050565b6001600160a01b03831681526040602082018190525f9061409c908301846147a856fe60a060405234801561000f575f5ffd5b506040516107d83803806107d883398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516107316100a75f395f818161011e01528181610162015281816102140152818161034801528181610371015261048c01526107315ff3fe60806040526004361061004d575f3560e01c80633659cfe6146100645780634f1ef286146100835780635c60da1b14610096578063d1f57894146100c6578063f851a440146100d95761005c565b3661005c5761005a6100ed565b005b61005a6100ed565b34801561006f575f5ffd5b5061005a61007e366004610530565b610114565b61005a610091366004610550565b610158565b3480156100a1575f5ffd5b506100aa610209565b6040516001600160a01b03909116815260200160405180910390f35b61005a6100d43660046105e2565b610258565b3480156100e4575f5ffd5b506100aa61033d565b6100f5610393565b61011261010d5f5160206107055f395f51905f525490565b61039b565b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036101505761014d816103b9565b50565b61014d6100ed565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036101fc57610191836103b9565b5f836001600160a01b031683836040516101ac9291906106a6565b5f60405180830381855af49150503d805f81146101e4576040519150601f19603f3d011682016040523d82523d5f602084013e6101e9565b606091505b50509050806101f6575f5ffd5b50505050565b6102046100ed565b505050565b5f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361024d57505f5160206107055f395f51905f525490565b6102556100ed565b90565b5f61026e5f5160206107055f395f51905f525490565b6001600160a01b031614610280575f5ffd5b6102ab60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6106b5565b5f5160206107055f395f51905f52146102c6576102c66106da565b6102cf826103f8565b805115610339575f826001600160a01b0316826040516102ef91906106ee565b5f60405180830381855af49150503d805f8114610327576040519150601f19603f3d011682016040523d82523d5f602084013e61032c565b606091505b5050905080610204575f5ffd5b5050565b5f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361024d57507f000000000000000000000000000000000000000000000000000000000000000090565b610112610482565b365f5f375f5f365f845af43d5f5f3e8080156103b5573d5ff35b3d5ffd5b6103c2816103f8565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b803b6104715760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000060648201526084015b60405180910390fd5b5f5160206107055f395f51905f5255565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036101125760405162461bcd60e51b815260206004820152603260248201527f43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e20667260448201527137b6903a343290383937bc3c9030b236b4b760711b6064820152608401610468565b80356001600160a01b038116811461052b575f5ffd5b919050565b5f60208284031215610540575f5ffd5b61054982610515565b9392505050565b5f5f5f60408486031215610562575f5ffd5b61056b84610515565b9250602084013567ffffffffffffffff811115610586575f5ffd5b8401601f81018613610596575f5ffd5b803567ffffffffffffffff8111156105ac575f5ffd5b8660208284010111156105bd575f5ffd5b939660209190910195509293505050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156105f3575f5ffd5b6105fc83610515565b9150602083013567ffffffffffffffff811115610617575f5ffd5b8301601f81018513610627575f5ffd5b803567ffffffffffffffff811115610641576106416105ce565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610670576106706105ce565b604052818152828201602001871015610687575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b818382375f9101908152919050565b818103818111156106d457634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52600160045260245ffd5b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca164736f6c634300081b000aa164736f6c634300081b000a","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"cancun","libraries":{"lib/aave-v3-origin-private/src/contracts/protocol/libraries/logic/BorrowLogic.sol":{"BorrowLogic":"0x52Da0ce88202D1542543598D1e1e27F0d344726A"},"lib/aave-v3-origin-private/src/contracts/protocol/libraries/logic/FlashLoanLogic.sol":{"FlashLoanLogic":"0x6D414cd0d5eAf8C43200ac0c325A7E2Ad83B8be6"},"lib/aave-v3-origin-private/src/contracts/protocol/libraries/logic/LiquidationLogic.sol":{"LiquidationLogic":"0x96D5686812e33Ab509ECCDb38C89d15607B2a413"},"lib/aave-v3-origin-private/src/contracts/protocol/libraries/logic/PoolLogic.sol":{"PoolLogic":"0xD70593841C57cbaA04957cc3EAcE95708e48853b"},"lib/aave-v3-origin-private/src/contracts/protocol/libraries/logic/SupplyLogic.sol":{"SupplyLogic":"0x584C7d8c4cb05304FE5Ac7fbc97f20A10Fb07564"}},"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["aave-address-book/=lib/aave-helpers/lib/aave-address-book/src/","aave-helpers/=lib/aave-helpers/","aave-v3-origin-tests/=lib/aave-v3-origin-private/tests/","aave-v3-origin/=lib/aave-v3-origin-private/src/","erc4626-tests/=lib/aave-helpers/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","forge-std/=lib/aave-helpers/lib/forge-std/src/","openzeppelin-contracts-upgradeable/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/","solidity-utils/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/","lib/aave-helpers/:aave-address-book/=lib/aave-helpers/lib/aave-address-book/src/","lib/aave-helpers/:solidity-utils/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/","@openzeppelin/contracts-upgradeable/=lib/aave-v3-origin-private/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/aave-v3-origin-private/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/","aave-v3-origin-private/=lib/aave-v3-origin-private/","ds-test/=lib/aave-v3-origin-private/lib/forge-std/lib/ds-test/src/","halmos-cheatcodes/=lib/aave-v3-origin-private/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/"],"viaIR":false},"optimization_runs":200,"sourcify_repo_url":null,"decoded_constructor_args":null,"compiler_version":"v0.8.27+commit.40a35a09","is_verified_via_verifier_alliance":false,"verified_at":"2026-05-29T08:51:38.508464Z","implementations":[],"proxy_type":null,"external_libraries":[{"name":"BorrowLogic","address_hash":"0x52Da0ce88202D1542543598D1e1e27F0d344726A"},{"name":"FlashLoanLogic","address_hash":"0x6D414cd0d5eAf8C43200ac0c325A7E2Ad83B8be6"},{"name":"LiquidationLogic","address_hash":"0x96D5686812e33Ab509ECCDb38C89d15607B2a413"},{"name":"PoolLogic","address_hash":"0xD70593841C57cbaA04957cc3EAcE95708e48853b"},{"name":"SupplyLogic","address_hash":"0x584C7d8c4cb05304FE5Ac7fbc97f20A10Fb07564"}],"creation_bytecode":"0x60806040525f5f553480156011575f5ffd5b5060085f556151b8806100235f395ff3fe608060405234801561000f575f5ffd5b50600436106101c6575f3560e01c80637af635a6116100fe578063b42d793b1161009e578063d14a09831161006e578063d14a0983146103d0578063f213ef0e146103e3578063f6527810146103f6578063f787ac1f14610409575f5ffd5b8063b42d793b14610384578063b736aaeb14610397578063bfbc47ff146103aa578063c4d66de8146103bd575f5ffd5b806385cbfce3116100d957806385cbfce314610323578063888a1d5e1461033657806396e957c41461035e5780639c1d5f0014610371575f5ffd5b80637af635a6146102e75780637c025f2c146102fd5780637c4e560b14610310575f5ffd5b806348d9fba9116101695780636623c804116101445780636623c8041461029b578063682cf264146102ae5780636aabe21d146102c15780637641f3d9146102d4575f5ffd5b806348d9fba9146102625780634b4e675314610275578063571f03e514610288575f5ffd5b806323415e46116101a457806323415e461461020557806326d2cec2146102185780632dc9552b1461022b578063466196491461023e575f5ffd5b8063110ac256146101ca57806312bc3f61146101df57806314ef0ac5146101f2575b5f5ffd5b6101dd6101d8366004613fc3565b61041c565b005b6101dd6101ed36600461401d565b610698565b6101dd61020036600461406a565b61077e565b6101dd6102133660046140a4565b61079f565b6101dd6102263660046140bf565b61083d565b6101dd6102393660046140e9565b610994565b61024761384081565b60405164ffffffffff90911681526020015b60405180910390f35b6101dd6102703660046140e9565b610a9f565b6101dd6102833660046140bf565b610ab6565b6101dd6102963660046140bf565b610c94565b6101dd6102a9366004614115565b610dc1565b6101dd6102bc3660046140e9565b610f33565b6101dd6102cf3660046141cb565b61105c565b6101dd6102e236600461421c565b611212565b6102ef600881565b604051908152602001610259565b6101dd61030b366004614246565b611224565b6101dd61031e3660046142e2565b611451565b6101dd610331366004613fc3565b61170f565b6102ef6103443660046140a4565b6001600160a01b03165f9081526036602052604090205490565b6101dd61036c3660046140e9565b6119bc565b6101dd61037f36600461432e565b611c4b565b6101dd610392366004614349565b611d93565b6101dd6103a53660046140e9565b611fad565b6101dd6103b836600461406a565b6120d7565b6101dd6103cb3660046140a4565b6120f5565b6101dd6103de3660046140bf565b612245565b6101dd6103f13660046140e9565b612372565b6101dd610404366004613fc3565b61248e565b6101dd610417366004614386565b61284d565b6104246128fb565b60355460405163903a2c7160e01b815260ff841660048201525f916001600160a01b03169063903a2c7190602401602060405180830381865afa15801561046d573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061049191906143b2565b6035546040516335ea6a7560e01b81526001600160a01b0387811660048301529293505f92909116906335ea6a75906024016101e060405180830381865afa1580156104df573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610503919061449d565b90508060e0015161ffff165f1415806105aa5750603554604080516334651b6f60e21b815290516001600160a01b0380891693169163d1946dbc916004808301925f9291908290030181865afa15801561055f573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261058691908101906145c7565b5f815181106105975761059761467b565b60200260200101516001600160a01b0316145b6105c75760405163b77e1e0f60e01b815260040160405180910390fd5b6105da828260e0015161ffff1685612a58565b60355460405160016246f53b60e11b0319815260ff871660048201526001600160801b03831660248201529193506001600160a01b03169063ff72158a906044015f604051808303815f87803b158015610632575f5ffd5b505af1158015610644573d5f5f3e3d5ffd5b50506040805160ff8816815286151560208201526001600160a01b03891693507f60087ca045be9d8d1301445e67d6248eddba97629c80284fa4910c0e52f103ab9250015b60405180910390a25050505050565b6106a0612a9a565b603554604080516334651b6f60e21b815290515f926001600160a01b03169163d1946dbc91600480830192869291908290030181865afa1580156106e6573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261070d91908101906145c7565b90505f5b8151811015610778575f6001600160a01b03168282815181106107365761073661467b565b60200260200101516001600160a01b031614610770576107708282815181106107615761076161467b565b60200260200101518585611d93565b600101610711565b50505050565b610786612bf7565b60355461079c906001600160a01b031682612ce8565b50565b6107a7612a9a565b6035546040516358d4cf1360e11b81526001600160a01b0383811660048301525f60248301529091169063b1a99e26906044015f604051808303815f87803b1580156107f1575f5ffd5b505af1158015610803573d5f5f3e3d5ffd5b50506040516001600160a01b03841692507f1df36dc1651d06d990805068d22811a3a9ca4396190787ef59f9102e61868fff91505f90a250565b6108456128fb565b6127108111156108685760405163239eacb960e01b815260040160405180910390fd5b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa1580156108b0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d4919061468f565b805190915060981c61ffff166108ea8284612f0b565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061091c90879086906004016146a9565b5f604051808303815f87803b158015610933575f5ffd5b505af1158015610945573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507fb5b0a963825337808b6e3154de8e98027595a5cad4219bb3a9bc55b192f4b3919250015b60405180910390a250505050565b61099c612f43565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa1580156109e4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a08919061468f565b8051909150610a1884848461310c565b8151819003610a3a57604051632481224760e01b815260040160405180910390fd5b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610a6c90879086906004016146a9565b5f604051808303815f87803b158015610a83575f5ffd5b505af1158015610a95573d5f5f3e3d5ffd5b5050505050505050565b610aa7612a9a565b610ab282825f611d93565b5050565b610abe6128fb565b612710811115610ae157604051631b9bc96960e11b815260040160405180910390fd5b603554604051635595a8fb60e11b81526001600160a01b0384811660048301529091169063ab2b51f6906024015f604051808303815f87803b158015610b25575f5ffd5b505af1158015610b37573d5f5f3e3d5ffd5b505060355460405163c44b11f760e01b81526001600160a01b0386811660048301525f9450909116915063c44b11f790602401602060405180830381865afa158015610b85573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ba9919061468f565b805190915060401c61ffff16610bbf8284613279565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610bf190879086906004016146a9565b5f604051808303815f87803b158015610c08575f5ffd5b505af1158015610c1a573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507fb46e2b82b0c2cf3d7d9dece53635e165c53e0eaa7a44f904d61a2b7174826aef92500160405180910390a2603554604051634c63ed2760e11b81526001600160a01b038681166004830152909116906398c7da4e90602401610a6c565b610c9c6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa158015610ce4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d08919061468f565b805190915060741c640fffffffff16610d2182846132b6565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610d5390879086906004016146a9565b5f604051808303815f87803b158015610d6a575f5ffd5b505af1158015610d7c573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507f0263602682188540a2d633561c0b4453b7d8566285e99f9f6018b8ef2facef49925001610986565b610dc96132f4565b60355460408051630dc7f58760e11b815290516001600160a01b03909216915f918391631b8feb0e916004808201926020929091908290030181865afa158015610e15573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3991906146c3565b90505f5b83811015610f2c57610e7283868684818110610e5b57610e5b61467b565b9050602002810190610e6d91906146de565b613450565b816001600160a01b0316858583818110610e8e57610e8e61467b565b9050602002810190610ea091906146de565b610eb19060608101906040016140a4565b6001600160a01b03167f1e608c2c753fede2f1f22fca4170277b53ebe5015e488a53414a8921446b7c40878785818110610eed57610eed61467b565b9050602002810190610eff91906146de565b610f0e906101008101906146fd565b604051610f1c929190614768565b60405180910390a3600101610e3d565b5050505050565b610f3b6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa158015610f83573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fa7919061468f565b9050610fb38183613870565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90610fe590869085906004016146a9565b5f604051808303815f87803b158015610ffc575f5ffd5b505af115801561100e573d5f5f3e3d5ffd5b50505050826001600160a01b03167f2443ba28e8d1d88d531a3d90b981816a4f3b3c7f1fd4085c6029e81d1b7a570d8360405161104f911515815260200190565b60405180910390a2505050565b6110646128fb565b603554604051635595a8fb60e11b81526001600160a01b0385811660048301529091169063ab2b51f6906024015f604051808303815f87803b1580156110a8575f5ffd5b505af11580156110ba573d5f5f3e3d5ffd5b505050505f60355f9054906101000a90046001600160a01b03166001600160a01b0316631b8feb0e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561110f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061113391906146c3565b60405163a8d9e56f60e01b81529091506001600160a01b0382169063a8d9e56f906111669087908790879060040161477b565b5f604051808303815f87803b15801561117d575f5ffd5b505af115801561118f573d5f5f3e3d5ffd5b50505050806001600160a01b0316846001600160a01b03167f1e608c2c753fede2f1f22fca4170277b53ebe5015e488a53414a8921446b7c4085856040516111d8929190614768565b60405180910390a3603554604051634c63ed2760e11b81526001600160a01b038681166004830152909116906398c7da4e90602401610a6c565b61121a612a9a565b61079c815f610698565b61122c6128fb565b8561ffff165f036112505760405163ec1dd8d560e01b815260040160405180910390fd5b8461ffff165f036112745760405163ec1dd8d560e01b815260040160405180910390fd5b8461ffff168661ffff16111561129d5760405163ec1dd8d560e01b815260040160405180910390fd5b6127108461ffff16116112c35760405163ec1dd8d560e01b815260040160405180910390fd5b6127106112d761ffff87811690871661389d565b11156112f65760405163ec1dd8d560e01b815260040160405180910390fd5b6040805160a08101825260606080820181905261ffff898116835288811660208085019190915290881683850152841515918301919091528251601f860182900482028101820190935284835290919085908590819084018382808284375f9201919091525050505060808201526035546040516318c0b83960e21b81526001600160a01b0390911690636302e0e490611396908b9085906004016147d6565b5f604051808303815f87803b1580156113ad575f5ffd5b505af11580156113bf573d5f5f3e3d5ffd5b505050508760ff167f0acf8b4a3cace10779798a89a206a0ae73a71b63acdd3be2801d39c2ef7ab3cb8888885f898960405161140096959493929190614830565b60405180910390a28760ff167fea07f8a4f488dcc1dc8c27b9c526ac8ba2d04b8024e206616f306c51d9b168268360405161143f911515815260200190565b60405180910390a25050505050505050565b6114596128fb565b8183111561147a576040516332d6d3ef60e01b815260040160405180910390fd5b60355460405163c44b11f760e01b81526001600160a01b0386811660048301525f92169063c44b11f790602401602060405180830381865afa1580156114c2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114e6919061468f565b90508215611541576127108211611510576040516332d6d3ef60e01b815260040160405180910390fd5b61271061151d848461389d565b111561153c576040516332d6d3ef60e01b815260040160405180910390fd5b611569565b8115611560576040516332d6d3ef60e01b815260040160405180910390fd5b611569856138c1565b8361157a8251600160391b16151590565b156115d457506001600160a01b0385165f818152603660209081526040808320889055518781529192917f6a3fa1f355f7c7ab43e41cb277d1f8471f2693c63dca91049d5ec127bb588e10910160405180910390a2611648565b6001600160a01b0386165f908152603660205260409020541561163e576001600160a01b0386165f818152603660209081526040808320839055519182527f6a3fa1f355f7c7ab43e41cb277d1f8471f2693c63dca91049d5ec127bb588e10910160405180910390a25b6116488286613a48565b6116528285613a77565b61165c8284613aad565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061168e90899086906004016146a9565b5f604051808303815f87803b1580156116a5575f5ffd5b505af11580156116b7573d5f5f3e3d5ffd5b505060408051848152602081018890529081018690526001600160a01b03891692507f637febbda9275aea2e85c0ff690444c8d87eb2e8339bbede9715abcc89cb0995915060600160405180910390a2505050505050565b611717612f43565b60355460405163fd89dee560e01b815260ff841660048201525f916001600160a01b03169063fd89dee590602401602060405180830381865afa158015611760573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061178491906143b2565b6035546040516335ea6a7560e01b81526001600160a01b0387811660048301529293505f92909116906335ea6a75906024016101e060405180830381865afa1580156117d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117f6919061449d565b90508060e0015161ffff165f14158061189d5750603554604080516334651b6f60e21b815290516001600160a01b0380891693169163d1946dbc916004808301925f9291908290030181865afa158015611852573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261187991908101906145c7565b5f8151811061188a5761188a61467b565b60200260200101516001600160a01b0316145b6118ba5760405163b77e1e0f60e01b815260040160405180910390fd5b60355460405163583b8edd60e11b815260ff861660048201525f916001600160a01b03169063b0771dba90602401602060405180830381865afa158015611903573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061192791906143b2565b905061193b818360e0015161ffff16613ae6565b868690916119755760405163d039d03d60e01b81526001600160a01b03909216600483015260ff1660248201526044015b60405180910390fd5b5050836119a357815151600160391b16156119a357604051636d30581560e01b815260040160405180910390fd5b6119b483878460e001518888613b21565b505050505050565b6119c4612f43565b6035546040516335ea6a7560e01b81526001600160a01b0384811660048301525f9216906335ea6a75906024016101e060405180830381865afa158015611a0d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a31919061449d565b8051909150611a468151600160391b16151590565b151583151503611a6957604051634c860b2b60e11b815260040160405180910390fd5b611a738184613be0565b8215611baf57611a858460018361310c565b5f8060015b60ff8111611bab5760355460405163583b8edd60e11b815260ff831660048201526001600160a01b039091169063b0771dba90602401602060405180830381865afa158015611adb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aff91906143b2565b9250611b13838660e0015161ffff16613ae6565b15611b995760355460405163fd89dee560e01b815260ff831660048201526001600160a01b039091169063fd89dee590602401602060405180830381865afa158015611b61573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b8591906143b2565b9150611b9982888760e00151846001613b21565b80611ba38161488e565b915050611a8a565b5050505b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90611be190879085906004016146a9565b5f604051808303815f87803b158015611bf8575f5ffd5b505af1158015611c0a573d5f5f3e3d5ffd5b50505050836001600160a01b03167f0c4443d258a350d27dc50c378b2ebf165e6469725f786d21b30cab16823f558784604051610986911515815260200190565b611c53612bf7565b612710816001600160801b03161115611c7f57604051633a168e3960e11b815260040160405180910390fd5b6035546040805163074b2e4360e01b815290515f926001600160a01b03169163074b2e439160048083019260209291908290030181865afa158015611cc6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cea91906143b2565b603554604051629c1d5f60e81b81526001600160801b03851660048201529192506001600160a01b031690639c1d5f00906024015f604051808303815f87803b158015611d35575f5ffd5b505af1158015611d47573d5f5f3e3d5ffd5b5050604080516001600160801b038086168252861660208201527f71aba182c9d0529b516de7a78bed74d49c207ef7e152f52f7ea5d8730138f643935001905060405180910390a15050565b611d9b612a9a565b81158015611daf575064ffffffffff811615155b15611e995761384064ffffffffff82161115611dde5760405163d7c43e0f60e01b815260040160405180910390fd5b5f611de982426148a6565b6035546040516358d4cf1360e11b81526001600160a01b03878116600483015264ffffffffff8416602483015292935091169063b1a99e26906044015f604051808303815f87803b158015611e3c575f5ffd5b505af1158015611e4e573d5f5f3e3d5ffd5b505060405164ffffffffff841681526001600160a01b03871692507fdf4f96448786bcd6fecc9f1fa25f1fbbbee6a5c9e76d635a615ac57bb5983d10915060200160405180910390a2505b60355460405163c44b11f760e01b81526001600160a01b0385811660048301525f92169063c44b11f790602401602060405180830381865afa158015611ee1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f05919061468f565b9050611f118184613c0d565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b90611f4390879085906004016146a9565b5f604051808303815f87803b158015611f5a575f5ffd5b505af1158015611f6c573d5f5f3e3d5ffd5b50505050836001600160a01b03167fe188d542a5f11925d3a3af33703cdd30a43cb3e8066a3cf68b1b57f61a5a94b584604051610986911515815260200190565b611fb5612bf7565b80611fc357611fc3826138c1565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa15801561200b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061202f919061468f565b905061203b8183613c3a565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061206d90869085906004016146a9565b5f604051808303815f87803b158015612084575f5ffd5b505af1158015612096573d5f5f3e3d5ffd5b50505050826001600160a01b03167fc36c7d11ba01a5869d52aa4a3781939dab851cbc9ee6e7fdcedc7d58898a3f1e8360405161104f911515815260200190565b6120df612bf7565b60355461079c906001600160a01b031682613c67565b60015460089060ff16806121085750303b155b8061211357505f5481115b6121765760405162461bcd60e51b815260206004820152602e60248201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560448201526d195b881a5b9a5d1a585b1a5e995960921b606482015260840161196c565b60015460ff16158015612194576001805460ff1916811790555f8290555b603480546001600160a01b0319166001600160a01b0385169081179091556040805163026b1d5f60e01b8152905163026b1d5f916004808201926020929091908290030181865afa1580156121eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061220f91906146c3565b603580546001600160a01b0319166001600160a01b03929092169190911790558015612240576001805460ff191690555b505050565b61224d6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa158015612295573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122b9919061468f565b805190915060501c640fffffffff166122d28284613e14565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061230490879086906004016146a9565b5f604051808303815f87803b15801561231b575f5ffd5b505af115801561232d573d5f5f3e3d5ffd5b505060408051848152602081018790526001600160a01b03881693507fc51aca575985d521c5072ad11549bad77013bb786d57f30f94b40ed8f8dc9bc4925001610986565b61237a6128fb565b60355460405163c44b11f760e01b81526001600160a01b0384811660048301525f92169063c44b11f790602401602060405180830381865afa1580156123c2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123e6919061468f565b90506123f28183613e52565b60355460405163f51e435b60e01b81526001600160a01b039091169063f51e435b9061242490869085906004016146a9565b5f604051808303815f87803b15801561243b575f5ffd5b505af115801561244d573d5f5f3e3d5ffd5b50505050826001600160a01b03167fc8ff3cc5b0fddaa3e6ebbbd7438f43393e4ea30e88b80ad016c1bc094655034d8360405161104f911515815260200190565b6124966128fb565b60355460405163583b8edd60e11b815260ff841660048201525f916001600160a01b03169063b0771dba90602401602060405180830381865afa1580156124df573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061250391906143b2565b6035546040516335ea6a7560e01b81526001600160a01b0387811660048301529293505f92909116906335ea6a75906024016101e060405180830381865afa158015612551573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612575919061449d565b90508060e0015161ffff165f14158061261c5750603554604080516334651b6f60e21b815290516001600160a01b0380891693169163d1946dbc916004808301925f9291908290030181865afa1580156125d1573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526125f891908101906145c7565b5f815181106126095761260961467b565b60200260200101516001600160a01b0316145b6126395760405163b77e1e0f60e01b815260040160405180910390fd5b826127635760355460405163c44b11f760e01b81526001600160a01b0387811660048301525f92169063c44b11f790602401602060405180830381865afa158015612686573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126aa919061468f565b805190915060101c61ffff165f036126c5576126c5866138c1565b60355460405163fd89dee560e01b815260ff871660048201525f916001600160a01b03169063fd89dee590602401602060405180830381865afa15801561270e573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061273291906143b2565b9050612746818460e0015161ffff16613ae6565b1561275c5761275c81888560e00151895f613b21565b505061278a565b805151600160391b161561278a57604051636d30581560e01b815260040160405180910390fd5b61279d828260e0015161ffff1685612a58565b6035546040516392380ecb60e01b815260ff871660048201526001600160801b03831660248201529193506001600160a01b0316906392380ecb906044015f604051808303815f87803b1580156127f2575f5ffd5b505af1158015612804573d5f5f3e3d5ffd5b50506040805160ff8816815286151560208201526001600160a01b03891693507f79409190108b26fcb0e4570f8e240f627bf18fd01a55f751010224d5bd486098925001610689565b612855612f43565b6035546040516356abfa1b60e11b815260ff8416600482015282151560248201526001600160a01b039091169063ad57f436906044015f604051808303815f87803b1580156128a2575f5ffd5b505af11580156128b4573d5f5f3e3d5ffd5b505050508160ff167fea07f8a4f488dcc1dc8c27b9c526ac8ba2d04b8024e206616f306c51d9b16826826040516128ef911515815260200190565b60405180910390a25050565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612942573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061296691906146c3565b60405163674b5e4d60e01b81523360048201529091506001600160a01b0382169063674b5e4d90602401602060405180830381865afa1580156129ab573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129cf91906148c3565b80612a3b5750604051637be53ca160e01b81523360048201526001600160a01b03821690637be53ca190602401602060405180830381865afa158015612a17573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a3b91906148c3565b61079c576040516366e574d760e01b815260040160405180910390fd5b5f60808310612a7a576040516385e98beb60e01b815260040160405180910390fd5b6001831b8215612a8d5784179050612a93565b19841690505b9392505050565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612ae1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b0591906146c3565b604051637be53ca160e01b81523360048201529091506001600160a01b03821690637be53ca190602401602060405180830381865afa158015612b4a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b6e91906148c3565b80612bda5750604051631280795b60e11b81523360048201526001600160a01b03821690632500f2b690602401602060405180830381865afa158015612bb6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bda91906148c3565b61079c57604051630934f60560e41b815260040160405180910390fd5b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612c3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c6291906146c3565b604051637be53ca160e01b81523360048201529091506001600160a01b03821690637be53ca190602401602060405180830381865afa158015612ca7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ccb91906148c3565b61079c5760405163cdd36a9760e01b815260040160405180910390fd5b5f6001600160a01b03831663cff027d9612d0560208501856140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612d47573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d6b91906146c3565b90505f612dfd6001600160a01b03851663c44b11f7612d8d60208701876140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612dcf573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612df3919061468f565b5160301c60ff1690565b90505f637fdd585f60e01b85612e1660208701876140a4565b84612e2460208901896146fd565b612e3160408b018b6146fd565b612e3e60808d018d6146fd565b604051602401612e56999897969594939291906148de565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050612ea483612e9e60808701606088016140a4565b83613e7f565b612eb460808501606086016140a4565b6001600160a01b03908116908416612ecf60208701876140a4565b6001600160a01b03167fa76f65411ec66a7fb6bc467432eb14767900449ae4469fa295e4441fe5e1cb7360405160405180910390a45050505050565b61ffff811115612f2e5760405163239eacb960e01b815260040160405180910390fd5b815161ffff60981b191660989190911b179052565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa158015612f8a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612fae91906146c3565b60405163674b5e4d60e01b81523360048201529091506001600160a01b0382169063674b5e4d90602401602060405180830381865afa158015612ff3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061301791906148c3565b806130835750604051637be53ca160e01b81523360048201526001600160a01b03821690637be53ca190602401602060405180830381865afa15801561305f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061308391906148c3565b806130ef5750604051631280795b60e11b81523360048201526001600160a01b03821690632500f2b690602401602060405180830381865afa1580156130cb573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130ef91906148c3565b61079c5760405163803ddb7b60e01b815260040160405180910390fd5b5f5f831561315a57825161ffff165f03613127575050505050565b825161ffff166001600160a01b0386165f908152603660205260408120829055909150613155908490613a48565b6131da565b8251600160391b161561318057604051636d30581560e01b815260040160405180910390fd5b6001600160a01b0385165f9081526036602052604090205491508115806131ab5750825161ffff1615155b156131b7575050505050565b6131c18383613a48565b6001600160a01b0385165f908152603660205260408120555b846001600160a01b03167f6a3fa1f355f7c7ab43e41cb277d1f8471f2693c63dca91049d5ec127bb588e108260405161321591815260200190565b60405180910390a282516001600160a01b038616907f637febbda9275aea2e85c0ff690444c8d87eb2e8339bbede9715abcc89cb099590849060101c61ffff16865160201c61ffff1660408051938452602084019290925290820152606001610689565b61ffff81111561329c57604051631b9bc96960e11b815260040160405180910390fd5b815169ffff0000000000000000191660409190911b179052565b640fffffffff8111156132dc5760405163606bb6c960e11b815260040160405180910390fd5b8151640fffffffff60741b191660749190911b179052565b6034546040805163383e6b8b60e11b815290515f926001600160a01b03169163707cd7169160048083019260209291908290030181865afa15801561333b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061335f91906146c3565b604051629f719760e51b81523360048201529091506001600160a01b038216906313ee32e090602401602060405180830381865afa1580156133a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906133c791906148c3565b806134335750604051637be53ca160e01b81523360048201526001600160a01b03821690637be53ca190602401602060405180830381865afa15801561340f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061343391906148c3565b61079c57604051630e8e140f60e21b815260040160405180910390fd5b5f61346160608301604084016140a4565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561349c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906134c09190614949565b905060058160ff16116134e657604051630692acc560e51b815260040160405180910390fd5b5f6135876134f760208501856140a4565b637fdd585f60e01b8661351060608801604089016140a4565b8661351e60608a018a6146fd565b61352b60808c018c6146fd565b61353860e08e018e6146fd565b60405160240161355099989796959493929190614964565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613eaf565b90505f6135de61359d60408601602087016140a4565b637fdd585f60e01b876135b66060890160408a016140a4565b876135c460a08b018b6146fd565b6135d160c08d018d6146fd565b61353860e08f018f6146fd565b90506001600160a01b03851663932f12c86135ff60608701604088016140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152818616602482015290841660448201526064015f604051808303815f87803b15801561364d575f5ffd5b505af115801561365f573d5f5f3e3d5ffd5b505060408051602081019091525f8152915061368090508160ff8616613f4e565b61368b816001613c3a565b613695815f613c0d565b61369f815f613be0565b6136b88180516001600f60fc1b0316600160fc1b179052565b6001600160a01b03861663f51e435b6136d760608801604089016140a4565b836040518363ffffffff1660e01b81526004016136f59291906146a9565b5f604051808303815f87803b15801561370c575f5ffd5b505af115801561371e573d5f5f3e3d5ffd5b505050505f866001600160a01b0316631b8feb0e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561375f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061378391906146c3565b90506001600160a01b03811663a8d9e56f6137a46060890160408a016140a4565b6137b26101008a018a6146fd565b6040518463ffffffff1660e01b81526004016137d09392919061477b565b5f604051808303815f87803b1580156137e7575f5ffd5b505af11580156137f9573d5f5f3e3d5ffd5b5050506001600160a01b038516905061381860608801604089016140a4565b604080515f81526001600160a01b03878116602083015285811682840152915192909116917f3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f9181900360600190a350505050505050565b603a8161387d575f613880565b60015b8351670400000000000000191660ff9190911690911b1790915250565b5f811561138819839004841115176138b3575f5ffd5b506127109102611388010490565b6035546040516335ea6a7560e01b81526001600160a01b0383811660048301525f9216906335ea6a75906024016101e060405180830381865afa15801561390a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061392e919061449d565b90505f60345f9054906101000a90046001600160a01b03166001600160a01b031663e860accb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613981573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139a591906146c3565b6040516351460e2560e01b81526001600160a01b03858116600483015291909116906351460e2590602401602060405180830381865afa1580156139eb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a0f9190614999565b905080158015613a2b57506101808201516001600160801b0316155b61224057604051633ccca94760e11b815260040160405180910390fd5b61ffff811115613a6b5760405163324b20e160e11b815260040160405180910390fd5b815161ffff1916179052565b61ffff811115613a995760405162f9474b60e61b815260040160405180910390fd5b815163ffff0000191660109190911b179052565b61ffff811115613ad057604051631506630760e21b815260040160405180910390fd5b815165ffff00000000191660209190911b179052565b5f60808210613b08576040516385e98beb60e01b815260040160405180910390fd5b5060016001600160801b038316821c1615155b92915050565b613b30858461ffff1683612a58565b6035546040516310870f7560e01b815260ff851660048201526001600160801b03831660248201529196506001600160a01b0316906310870f75906044015f604051808303815f87803b158015613b85575f5ffd5b505af1158015613b97573d5f5f3e3d5ffd5b50506040805160ff8616815284151560208201526001600160a01b03881693507fc0a450fbad635333e47f3322ec028a8e0b3909f79c721312a356a0fab5fa8b94925001610689565b603981613bed575f613bf0565b60015b8351670200000000000000191660ff9190911690911b1790915250565b603c81613c1a575f613c1d565b60015b8351671000000000000000191660ff9190911690911b1790915250565b603881613c47575f613c4a565b60015b8351670100000000000000191660ff9190911690911b1790915250565b5f6001600160a01b03831663365090a0613c8460208501856140a4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015613cc6573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613cea91906146c3565b90505f613d0c6001600160a01b03851663c44b11f7612d8d60208701876140a4565b90505f637fdd585f60e01b85613d2560208701876140a4565b84613d3360208901896146fd565b613d4060408b018b6146fd565b613d4d60808d018d6146fd565b604051602401613d65999897969594939291906148de565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050613dad83612e9e60808701606088016140a4565b613dbd60808501606086016140a4565b6001600160a01b03908116908416613dd860208701876140a4565b6001600160a01b03167f9439658a562a5c46b1173589df89cf001483d685bad28aedaff4a88656292d8160405160405180910390a45050505050565b640fffffffff811115613e3a576040516353f4dadb60e11b815260040160405180910390fd5b8151640fffffffff60501b191660509190911b179052565b603f81613e5f575f613e62565b60015b8351678000000000000000191660ff9190911690911b1790915250565b60405163278f794360e11b815283906001600160a01b03821690634f1ef28690610a6c90869086906004016149b0565b5f5f30604051613ebe90613f87565b6001600160a01b039091168152602001604051809103905ff080158015613ee7573d5f5f3e3d5ffd5b5060405163347d5e2560e21b81529091506001600160a01b0382169063d1f5789490613f1990879087906004016149b0565b5f604051808303815f87803b158015613f30575f5ffd5b505af1158015613f42573d5f5f3e3d5ffd5b50929695505050505050565b60ff811115613f7057604051630692acc560e51b815260040160405180910390fd5b815166ff000000000000191660309190911b179052565b6107d8806149d483390190565b6001600160a01b038116811461079c575f5ffd5b60ff8116811461079c575f5ffd5b801515811461079c575f5ffd5b5f5f5f60608486031215613fd5575f5ffd5b8335613fe081613f94565b92506020840135613ff081613fa8565b9150604084013561400081613fb6565b809150509250925092565b64ffffffffff8116811461079c575f5ffd5b5f5f6040838503121561402e575f5ffd5b823561403981613fb6565b915060208301356140498161400b565b809150509250929050565b5f60a08284031215614064575f5ffd5b50919050565b5f6020828403121561407a575f5ffd5b813567ffffffffffffffff811115614090575f5ffd5b61409c84828501614054565b949350505050565b5f602082840312156140b4575f5ffd5b8135612a9381613f94565b5f5f604083850312156140d0575f5ffd5b82356140db81613f94565b946020939093013593505050565b5f5f604083850312156140fa575f5ffd5b823561410581613f94565b9150602083013561404981613fb6565b5f5f60208385031215614126575f5ffd5b823567ffffffffffffffff81111561413c575f5ffd5b8301601f8101851361414c575f5ffd5b803567ffffffffffffffff811115614162575f5ffd5b8560208260051b8401011115614176575f5ffd5b6020919091019590945092505050565b5f5f83601f840112614196575f5ffd5b50813567ffffffffffffffff8111156141ad575f5ffd5b6020830191508360208285010111156141c4575f5ffd5b9250929050565b5f5f5f604084860312156141dd575f5ffd5b83356141e881613f94565b9250602084013567ffffffffffffffff811115614203575f5ffd5b61420f86828701614186565b9497909650939450505050565b5f6020828403121561422c575f5ffd5b8135612a9381613fb6565b61ffff8116811461079c575f5ffd5b5f5f5f5f5f5f5f60c0888a03121561425c575f5ffd5b873561426781613fa8565b9650602088013561427781614237565b9550604088013561428781614237565b9450606088013561429781614237565b9350608088013567ffffffffffffffff8111156142b2575f5ffd5b6142be8a828b01614186565b90945092505060a08801356142d281613fb6565b8091505092959891949750929550565b5f5f5f5f608085870312156142f5575f5ffd5b843561430081613f94565b966020860135965060408601359560600135945092505050565b6001600160801b038116811461079c575f5ffd5b5f6020828403121561433e575f5ffd5b8135612a938161431a565b5f5f5f6060848603121561435b575f5ffd5b833561436681613f94565b9250602084013561437681613fb6565b915060408401356140008161400b565b5f5f60408385031215614397575f5ffd5b823561410581613fa8565b80516143ad8161431a565b919050565b5f602082840312156143c2575f5ffd5b8151612a938161431a565b634e487b7160e01b5f52604160045260245ffd5b6040516101e0810167ffffffffffffffff81118282101715614405576144056143cd565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614434576144346143cd565b604052919050565b5f6020828403121561444c575f5ffd5b6040516020810167ffffffffffffffff8111828210171561446f5761446f6143cd565b6040529151825250919050565b80516143ad8161400b565b80516143ad81614237565b80516143ad81613f94565b5f6101e08284031280156144af575f5ffd5b506144b86143e1565b6144c2848461443c565b81526144d0602084016143a2565b60208201526144e1604084016143a2565b60408201526144f2606084016143a2565b6060820152614503608084016143a2565b608082015261451460a084016143a2565b60a082015261452560c0840161447c565b60c082015261453660e08401614487565b60e08201526145486101008401614492565b61010082015261455b6101208401614492565b61012082015261456e6101408401614492565b6101408201526145816101608401614492565b61016082015261459461018084016143a2565b6101808201526145a76101a084016143a2565b6101a08201526145ba6101c084016143a2565b6101c08201529392505050565b5f602082840312156145d7575f5ffd5b815167ffffffffffffffff8111156145ed575f5ffd5b8201601f810184136145fd575f5ffd5b805167ffffffffffffffff811115614617576146176143cd565b8060051b6146276020820161440b565b91825260208184018101929081019087841115614642575f5ffd5b6020850194505b83851015614670578451925061465e83613f94565b82825260209485019490910190614649565b979650505050505050565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561469f575f5ffd5b612a93838361443c565b6001600160a01b0392909216825251602082015260400190565b5f602082840312156146d3575f5ffd5b8151612a9381613f94565b5f823561011e198336030181126146f3575f5ffd5b9190910192915050565b5f5f8335601e19843603018112614712575f5ffd5b83018035915067ffffffffffffffff82111561472c575f5ffd5b6020019150368190038213156141c4575f5ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f61409c602083018486614740565b6001600160a01b03841681526040602082018190525f9061479f9083018486614740565b95945050505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff831681526040602082015261ffff825116604082015261ffff602083015116606082015261ffff60408301511660808201526060820151151560a08201525f608083015160a060c084015261479f60e08401826147a8565b61ffff87811682528681166020830152851660408201526001600160a01b038416606082015260a0608082018190525f9061486e9083018486614740565b98975050505050505050565b634e487b7160e01b5f52601160045260245ffd5b5f6001820161489f5761489f61487a565b5060010190565b64ffffffffff8181168382160190811115613b1b57613b1b61487a565b5f602082840312156148d3575f5ffd5b8151612a9381613fb6565b6001600160a01b038a81168252891660208201526040810188905260c0606082018190525f90614911908301888a614740565b8281036080840152614924818789614740565b905082810360a0840152614939818587614740565b9c9b505050505050505050505050565b5f60208284031215614959575f5ffd5b8151612a9381613fa8565b6001600160a01b038a811682528916602082015260ff8816604082015260c0606082018190525f90614911908301888a614740565b5f602082840312156149a9575f5ffd5b5051919050565b6001600160a01b03831681526040602082018190525f9061409c908301846147a856fe60a060405234801561000f575f5ffd5b506040516107d83803806107d883398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516107316100a75f395f818161011e01528181610162015281816102140152818161034801528181610371015261048c01526107315ff3fe60806040526004361061004d575f3560e01c80633659cfe6146100645780634f1ef286146100835780635c60da1b14610096578063d1f57894146100c6578063f851a440146100d95761005c565b3661005c5761005a6100ed565b005b61005a6100ed565b34801561006f575f5ffd5b5061005a61007e366004610530565b610114565b61005a610091366004610550565b610158565b3480156100a1575f5ffd5b506100aa610209565b6040516001600160a01b03909116815260200160405180910390f35b61005a6100d43660046105e2565b610258565b3480156100e4575f5ffd5b506100aa61033d565b6100f5610393565b61011261010d5f5160206107055f395f51905f525490565b61039b565b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036101505761014d816103b9565b50565b61014d6100ed565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036101fc57610191836103b9565b5f836001600160a01b031683836040516101ac9291906106a6565b5f60405180830381855af49150503d805f81146101e4576040519150601f19603f3d011682016040523d82523d5f602084013e6101e9565b606091505b50509050806101f6575f5ffd5b50505050565b6102046100ed565b505050565b5f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361024d57505f5160206107055f395f51905f525490565b6102556100ed565b90565b5f61026e5f5160206107055f395f51905f525490565b6001600160a01b031614610280575f5ffd5b6102ab60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6106b5565b5f5160206107055f395f51905f52146102c6576102c66106da565b6102cf826103f8565b805115610339575f826001600160a01b0316826040516102ef91906106ee565b5f60405180830381855af49150503d805f8114610327576040519150601f19603f3d011682016040523d82523d5f602084013e61032c565b606091505b5050905080610204575f5ffd5b5050565b5f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016330361024d57507f000000000000000000000000000000000000000000000000000000000000000090565b610112610482565b365f5f375f5f365f845af43d5f5f3e8080156103b5573d5ff35b3d5ffd5b6103c2816103f8565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b803b6104715760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000060648201526084015b60405180910390fd5b5f5160206107055f395f51905f5255565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036101125760405162461bcd60e51b815260206004820152603260248201527f43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e20667260448201527137b6903a343290383937bc3c9030b236b4b760711b6064820152608401610468565b80356001600160a01b038116811461052b575f5ffd5b919050565b5f60208284031215610540575f5ffd5b61054982610515565b9392505050565b5f5f5f60408486031215610562575f5ffd5b61056b84610515565b9250602084013567ffffffffffffffff811115610586575f5ffd5b8401601f81018613610596575f5ffd5b803567ffffffffffffffff8111156105ac575f5ffd5b8660208284010111156105bd575f5ffd5b939660209190910195509293505050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156105f3575f5ffd5b6105fc83610515565b9150602083013567ffffffffffffffff811115610617575f5ffd5b8301601f81018513610627575f5ffd5b803567ffffffffffffffff811115610641576106416105ce565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610670576106706105ce565b604052818152828201602001871015610687575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b818382375f9101908152919050565b818103818111156106d457634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52600160045260245ffd5b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca164736f6c634300081b000aa164736f6c634300081b000a","name":"PoolConfiguratorInstance","is_blueprint":false,"license_type":"none","is_fully_verified":false,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"cancun","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\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    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n     * 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 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"},{"file_path":"lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/dependencies/openzeppelin/contracts/Address.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n  /**\n   * @dev Returns true if `account` is a contract.\n   *\n   * [IMPORTANT]\n   * ====\n   * It is unsafe to assume that an address for which this function returns\n   * false is an externally-owned account (EOA) and not a contract.\n   *\n   * Among others, `isContract` will return false for the following\n   * types of addresses:\n   *\n   *  - an externally-owned account\n   *  - a contract in construction\n   *  - an address where a contract will be created\n   *  - an address where a contract lived, but was destroyed\n   * ====\n   */\n  function isContract(address account) internal view returns (bool) {\n    // This method relies on extcodesize, which returns 0 for contracts in\n    // construction, since the code is only stored at the end of the\n    // constructor execution.\n\n    uint256 size;\n    assembly {\n      size := extcodesize(account)\n    }\n    return size > 0;\n  }\n\n  /**\n   * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n   * `recipient`, forwarding all available gas and reverting on errors.\n   *\n   * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n   * of certain opcodes, possibly making contracts go over the 2300 gas limit\n   * imposed by `transfer`, making them unable to receive funds via\n   * `transfer`. {sendValue} removes this limitation.\n   *\n   * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n   *\n   * IMPORTANT: because control is transferred to `recipient`, care must be\n   * taken to not create reentrancy vulnerabilities. Consider using\n   * {ReentrancyGuard} or the\n   * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n   */\n  function sendValue(address payable recipient, uint256 amount) internal {\n    require(address(this).balance >= amount, 'Address: insufficient balance');\n\n    (bool success, ) = recipient.call{value: amount}('');\n    require(success, 'Address: unable to send value, recipient may have reverted');\n  }\n\n  /**\n   * @dev Performs a Solidity function call using a low level `call`. A\n   * plain `call` is an unsafe replacement for a function call: use this\n   * function instead.\n   *\n   * If `target` reverts with a revert reason, it is bubbled up by this\n   * function (like regular Solidity function calls).\n   *\n   * Returns the raw returned data. To convert to the expected return value,\n   * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n   *\n   * Requirements:\n   *\n   * - `target` must be a contract.\n   * - calling `target` with `data` must not revert.\n   *\n   * _Available since v3.1._\n   */\n  function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n    return functionCall(target, data, 'Address: low-level call failed');\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n   * `errorMessage` as a fallback revert reason when `target` reverts.\n   *\n   * _Available since v3.1._\n   */\n  function functionCall(\n    address target,\n    bytes memory data,\n    string memory errorMessage\n  ) internal returns (bytes memory) {\n    return functionCallWithValue(target, data, 0, errorMessage);\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n   * but also transferring `value` wei to `target`.\n   *\n   * Requirements:\n   *\n   * - the calling contract must have an ETH balance of at least `value`.\n   * - the called Solidity function must be `payable`.\n   *\n   * _Available since v3.1._\n   */\n  function functionCallWithValue(\n    address target,\n    bytes memory data,\n    uint256 value\n  ) internal returns (bytes memory) {\n    return functionCallWithValue(target, data, value, 'Address: low-level call with value failed');\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n   * with `errorMessage` as a fallback revert reason when `target` reverts.\n   *\n   * _Available since v3.1._\n   */\n  function functionCallWithValue(\n    address target,\n    bytes memory data,\n    uint256 value,\n    string memory errorMessage\n  ) internal returns (bytes memory) {\n    require(address(this).balance >= value, 'Address: insufficient balance for call');\n    require(isContract(target), 'Address: call to non-contract');\n\n    (bool success, bytes memory returndata) = target.call{value: value}(data);\n    return verifyCallResult(success, returndata, errorMessage);\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n   * but performing a static call.\n   *\n   * _Available since v3.3._\n   */\n  function functionStaticCall(\n    address target,\n    bytes memory data\n  ) internal view returns (bytes memory) {\n    return functionStaticCall(target, data, 'Address: low-level static call failed');\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n   * but performing a static call.\n   *\n   * _Available since v3.3._\n   */\n  function functionStaticCall(\n    address target,\n    bytes memory data,\n    string memory errorMessage\n  ) internal view returns (bytes memory) {\n    require(isContract(target), 'Address: static call to non-contract');\n\n    (bool success, bytes memory returndata) = target.staticcall(data);\n    return verifyCallResult(success, returndata, errorMessage);\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n   * but performing a delegate call.\n   *\n   * _Available since v3.4._\n   */\n  function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n    return functionDelegateCall(target, data, 'Address: low-level delegate call failed');\n  }\n\n  /**\n   * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n   * but performing a delegate call.\n   *\n   * _Available since v3.4._\n   */\n  function functionDelegateCall(\n    address target,\n    bytes memory data,\n    string memory errorMessage\n  ) internal returns (bytes memory) {\n    require(isContract(target), 'Address: delegate call to non-contract');\n\n    (bool success, bytes memory returndata) = target.delegatecall(data);\n    return verifyCallResult(success, returndata, errorMessage);\n  }\n\n  /**\n   * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\n   * revert reason using the provided one.\n   *\n   * _Available since v4.3._\n   */\n  function verifyCallResult(\n    bool success,\n    bytes memory returndata,\n    string memory errorMessage\n  ) internal pure returns (bytes memory) {\n    if (success) {\n      return returndata;\n    } else {\n      // Look for revert reason and bubble it up if present\n      if (returndata.length > 0) {\n        // The easiest way to bubble the revert reason is using memory via assembly\n\n        assembly {\n          let returndata_size := mload(returndata)\n          revert(add(32, returndata), returndata_size)\n        }\n      } else {\n        revert(errorMessage);\n      }\n    }\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.10;\n\nimport './Proxy.sol';\nimport '../contracts/Address.sol';\n\n/**\n * @title BaseUpgradeabilityProxy\n * @dev This contract implements a proxy that allows to change the\n * implementation address to which it will delegate.\n * Such a change is called an implementation upgrade.\n */\ncontract BaseUpgradeabilityProxy is Proxy {\n  /**\n   * @dev Emitted when the implementation is upgraded.\n   * @param implementation Address of the new implementation.\n   */\n  event Upgraded(address indexed implementation);\n\n  /**\n   * @dev Storage slot with the address of the current implementation.\n   * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\n   * validated in the constructor.\n   */\n  bytes32 internal constant IMPLEMENTATION_SLOT =\n    0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n  /**\n   * @dev Returns the current implementation.\n   * @return impl Address of the current implementation\n   */\n  function _implementation() internal view override returns (address impl) {\n    bytes32 slot = IMPLEMENTATION_SLOT;\n    //solium-disable-next-line\n    assembly {\n      impl := sload(slot)\n    }\n  }\n\n  /**\n   * @dev Upgrades the proxy to a new implementation.\n   * @param newImplementation Address of the new implementation.\n   */\n  function _upgradeTo(address newImplementation) internal {\n    _setImplementation(newImplementation);\n    emit Upgraded(newImplementation);\n  }\n\n  /**\n   * @dev Sets the implementation address of the proxy.\n   * @param newImplementation Address of the new implementation.\n   */\n  function _setImplementation(address newImplementation) internal {\n    require(\n      Address.isContract(newImplementation),\n      'Cannot set a proxy implementation to a non-contract address'\n    );\n\n    bytes32 slot = IMPLEMENTATION_SLOT;\n\n    //solium-disable-next-line\n    assembly {\n      sstore(slot, newImplementation)\n    }\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.10;\n\nimport './BaseUpgradeabilityProxy.sol';\n\n/**\n * @title InitializableUpgradeabilityProxy\n * @dev Extends BaseUpgradeabilityProxy with an initializer for initializing\n * implementation and init data.\n */\ncontract InitializableUpgradeabilityProxy is BaseUpgradeabilityProxy {\n  /**\n   * @dev Contract initializer.\n   * @param _logic Address of the initial implementation.\n   * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.\n   * It should include the signature and the parameters of the function to be called, as described in\n   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.\n   * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.\n   */\n  function initialize(address _logic, bytes memory _data) public payable {\n    require(_implementation() == address(0));\n    assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1));\n    _setImplementation(_logic);\n    if (_data.length > 0) {\n      (bool success, ) = _logic.delegatecall(_data);\n      require(success);\n    }\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/dependencies/openzeppelin/upgradeability/Proxy.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.10;\n\n/**\n * @title Proxy\n * @dev Implements delegation of calls to other contracts, with proper\n * forwarding of return values and bubbling of failures.\n * It defines a fallback function that delegates all calls to the address\n * returned by the abstract _implementation() internal function.\n */\nabstract contract Proxy {\n  /**\n   * @dev Fallback function.\n   * Will run if no other function in the contract matches the call data.\n   * Implemented entirely in `_fallback`.\n   */\n  fallback() external payable {\n    _fallback();\n  }\n\n  /**\n   * @dev Fallback function that will run if call data is empty.\n   * IMPORTANT. receive() on implementation contracts will be unreachable\n   */\n  receive() external payable {\n    _fallback();\n  }\n\n  /**\n   * @return The Address of the implementation.\n   */\n  function _implementation() internal view virtual returns (address);\n\n  /**\n   * @dev Delegates execution to an implementation contract.\n   * This is a low level function that doesn't return to its internal call site.\n   * It will return to the external caller whatever the implementation returns.\n   * @param implementation Address to delegate.\n   */\n  function _delegate(address implementation) internal {\n    //solium-disable-next-line\n    assembly {\n      // Copy msg.data. We take full control of memory in this inline assembly\n      // block because it will not return to Solidity code. We overwrite the\n      // Solidity scratch pad at memory position 0.\n      calldatacopy(0, 0, calldatasize())\n\n      // Call the implementation.\n      // out and outsize are 0 because we don't know the size yet.\n      let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\n\n      // Copy the returned data.\n      returndatacopy(0, 0, returndatasize())\n\n      switch result\n      // delegatecall returns 0 on error.\n      case 0 {\n        revert(0, returndatasize())\n      }\n      default {\n        return(0, returndatasize())\n      }\n    }\n  }\n\n  /**\n   * @dev Function that is run as the first thing in the fallback function.\n   * Can be redefined in derived contracts to add functionality.\n   * Redefinitions must call super._willFallback().\n   */\n  function _willFallback() internal virtual {}\n\n  /**\n   * @dev fallback implementation.\n   * Extracted to enable manual triggering.\n   */\n  function _fallback() internal {\n    _willFallback();\n    _delegate(_implementation());\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IACLManager.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPoolAddressesProvider} from './IPoolAddressesProvider.sol';\n\n/**\n * @title IACLManager\n * @author Aave\n * @notice Defines the basic interface for the ACL Manager\n */\ninterface IACLManager {\n  /**\n   * @notice Returns the contract address of the PoolAddressesProvider\n   * @return The address of the PoolAddressesProvider\n   */\n  function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\n\n  /**\n   * @notice Returns the identifier of the PoolAdmin role\n   * @return The id of the PoolAdmin role\n   */\n  function POOL_ADMIN_ROLE() external view returns (bytes32);\n\n  /**\n   * @notice Returns the identifier of the EmergencyAdmin role\n   * @return The id of the EmergencyAdmin role\n   */\n  function EMERGENCY_ADMIN_ROLE() external view returns (bytes32);\n\n  /**\n   * @notice Returns the identifier of the RiskAdmin role\n   * @return The id of the RiskAdmin role\n   */\n  function RISK_ADMIN_ROLE() external view returns (bytes32);\n\n  /**\n   * @notice Returns the identifier of the FlashBorrower role\n   * @return The id of the FlashBorrower role\n   */\n  function FLASH_BORROWER_ROLE() external view returns (bytes32);\n\n  /**\n   * @notice Returns the identifier of the Bridge role\n   * @return The id of the Bridge role\n   */\n  function BRIDGE_ROLE() external view returns (bytes32);\n\n  /**\n   * @notice Returns the identifier of the AssetListingAdmin role\n   * @return The id of the AssetListingAdmin role\n   */\n  function ASSET_LISTING_ADMIN_ROLE() external view returns (bytes32);\n\n  /**\n   * @notice Set the role as admin of a specific role.\n   * @dev By default the admin role for all roles is `DEFAULT_ADMIN_ROLE`.\n   * @param role The role to be managed by the admin role\n   * @param adminRole The admin role\n   */\n  function setRoleAdmin(bytes32 role, bytes32 adminRole) external;\n\n  /**\n   * @notice Adds a new admin as PoolAdmin\n   * @param admin The address of the new admin\n   */\n  function addPoolAdmin(address admin) external;\n\n  /**\n   * @notice Removes an admin as PoolAdmin\n   * @param admin The address of the admin to remove\n   */\n  function removePoolAdmin(address admin) external;\n\n  /**\n   * @notice Returns true if the address is PoolAdmin, false otherwise\n   * @param admin The address to check\n   * @return True if the given address is PoolAdmin, false otherwise\n   */\n  function isPoolAdmin(address admin) external view returns (bool);\n\n  /**\n   * @notice Adds a new admin as EmergencyAdmin\n   * @param admin The address of the new admin\n   */\n  function addEmergencyAdmin(address admin) external;\n\n  /**\n   * @notice Removes an admin as EmergencyAdmin\n   * @param admin The address of the admin to remove\n   */\n  function removeEmergencyAdmin(address admin) external;\n\n  /**\n   * @notice Returns true if the address is EmergencyAdmin, false otherwise\n   * @param admin The address to check\n   * @return True if the given address is EmergencyAdmin, false otherwise\n   */\n  function isEmergencyAdmin(address admin) external view returns (bool);\n\n  /**\n   * @notice Adds a new admin as RiskAdmin\n   * @param admin The address of the new admin\n   */\n  function addRiskAdmin(address admin) external;\n\n  /**\n   * @notice Removes an admin as RiskAdmin\n   * @param admin The address of the admin to remove\n   */\n  function removeRiskAdmin(address admin) external;\n\n  /**\n   * @notice Returns true if the address is RiskAdmin, false otherwise\n   * @param admin The address to check\n   * @return True if the given address is RiskAdmin, false otherwise\n   */\n  function isRiskAdmin(address admin) external view returns (bool);\n\n  /**\n   * @notice Adds a new address as FlashBorrower\n   * @param borrower The address of the new FlashBorrower\n   */\n  function addFlashBorrower(address borrower) external;\n\n  /**\n   * @notice Removes an address as FlashBorrower\n   * @param borrower The address of the FlashBorrower to remove\n   */\n  function removeFlashBorrower(address borrower) external;\n\n  /**\n   * @notice Returns true if the address is FlashBorrower, false otherwise\n   * @param borrower The address to check\n   * @return True if the given address is FlashBorrower, false otherwise\n   */\n  function isFlashBorrower(address borrower) external view returns (bool);\n\n  /**\n   * @notice Adds a new address as Bridge\n   * @param bridge The address of the new Bridge\n   */\n  function addBridge(address bridge) external;\n\n  /**\n   * @notice Removes an address as Bridge\n   * @param bridge The address of the bridge to remove\n   */\n  function removeBridge(address bridge) external;\n\n  /**\n   * @notice Returns true if the address is Bridge, false otherwise\n   * @param bridge The address to check\n   * @return True if the given address is Bridge, false otherwise\n   */\n  function isBridge(address bridge) external view returns (bool);\n\n  /**\n   * @notice Adds a new admin as AssetListingAdmin\n   * @param admin The address of the new admin\n   */\n  function addAssetListingAdmin(address admin) external;\n\n  /**\n   * @notice Removes an admin as AssetListingAdmin\n   * @param admin The address of the admin to remove\n   */\n  function removeAssetListingAdmin(address admin) external;\n\n  /**\n   * @notice Returns true if the address is AssetListingAdmin, false otherwise\n   * @param admin The address to check\n   * @return True if the given address is AssetListingAdmin, false otherwise\n   */\n  function isAssetListingAdmin(address admin) external view returns (bool);\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IDefaultInterestRateStrategyV2.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IReserveInterestRateStrategy} from './IReserveInterestRateStrategy.sol';\nimport {IPoolAddressesProvider} from './IPoolAddressesProvider.sol';\n\n/**\n * @title IDefaultInterestRateStrategyV2\n * @author BGD Labs\n * @notice Interface of the default interest rate strategy used by the Aave protocol\n */\ninterface IDefaultInterestRateStrategyV2 is IReserveInterestRateStrategy {\n  /**\n   * @notice Holds the interest rate data for a given reserve\n   *\n   * @dev Since values are in bps, they are multiplied by 1e23 in order to become rays with 27 decimals. This\n   * in turn means that the maximum supported interest rate is 4294967295 (2**32-1) bps or 42949672.95%.\n   *\n   * @param optimalUsageRatio The optimal usage ratio, in bps\n   * @param baseVariableBorrowRate The base variable borrow rate, in bps\n   * @param variableRateSlope1 The slope of the variable interest curve, before hitting the optimal ratio, in bps\n   * @param variableRateSlope2 The slope of the variable interest curve, after hitting the optimal ratio, in bps\n   */\n  struct InterestRateData {\n    uint16 optimalUsageRatio;\n    uint32 baseVariableBorrowRate;\n    uint32 variableRateSlope1;\n    uint32 variableRateSlope2;\n  }\n\n  /**\n   * @notice The interest rate data, where all values are in ray (fixed-point 27 decimal numbers) for a given reserve,\n   * used in in-memory calculations.\n   *\n   * @param optimalUsageRatio The optimal usage ratio\n   * @param baseVariableBorrowRate The base variable borrow rate\n   * @param variableRateSlope1 The slope of the variable interest curve, before hitting the optimal ratio\n   * @param variableRateSlope2 The slope of the variable interest curve, after hitting the optimal ratio\n   */\n  struct InterestRateDataRay {\n    uint256 optimalUsageRatio;\n    uint256 baseVariableBorrowRate;\n    uint256 variableRateSlope1;\n    uint256 variableRateSlope2;\n  }\n\n  /**\n   * @notice emitted when new interest rate data is set in a reserve\n   *\n   * @param reserve address of the reserve that has new interest rate data set\n   * @param optimalUsageRatio The optimal usage ratio, in bps\n   * @param baseVariableBorrowRate The base variable borrow rate, in bps\n   * @param variableRateSlope1 The slope of the variable interest curve, before hitting the optimal ratio, in bps\n   * @param variableRateSlope2 The slope of the variable interest curve, after hitting the optimal ratio, in bps\n   */\n  event RateDataUpdate(\n    address indexed reserve,\n    uint256 optimalUsageRatio,\n    uint256 baseVariableBorrowRate,\n    uint256 variableRateSlope1,\n    uint256 variableRateSlope2\n  );\n\n  /**\n   * @notice Returns the address of the PoolAddressesProvider\n   * @return The address of the PoolAddressesProvider contract\n   */\n  function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\n\n  /**\n   * @notice Returns the maximum value achievable for variable borrow rate, in bps\n   * @return The maximum rate\n   */\n  function MAX_BORROW_RATE() external view returns (uint256);\n\n  /**\n   * @notice Returns the minimum optimal point, in bps\n   * @return The optimal point\n   */\n  function MIN_OPTIMAL_POINT() external view returns (uint256);\n\n  /**\n   * @notice Returns the maximum optimal point, in bps\n   * @return The optimal point\n   */\n  function MAX_OPTIMAL_POINT() external view returns (uint256);\n\n  /**\n   * @notice Returns the full InterestRateData object for the given reserve, in ray\n   *\n   * @param reserve The reserve to get the data of\n   *\n   * @return The InterestRateDataRay object for the given reserve\n   */\n  function getInterestRateData(address reserve) external view returns (InterestRateDataRay memory);\n\n  /**\n   * @notice Returns the full InterestRateData object for the given reserve, in bps\n   *\n   * @param reserve The reserve to get the data of\n   *\n   * @return The InterestRateData object for the given reserve\n   */\n  function getInterestRateDataBps(address reserve) external view returns (InterestRateData memory);\n\n  /**\n   * @notice Returns the optimal usage rate for the given reserve in ray\n   *\n   * @param reserve The reserve to get the optimal usage rate of\n   *\n   * @return The optimal usage rate is the level of borrow / collateral at which the borrow rate\n   */\n  function getOptimalUsageRatio(address reserve) external view returns (uint256);\n\n  /**\n   * @notice Returns the variable rate slope below optimal usage ratio in ray\n   * @dev It's the variable rate when usage ratio > 0 and <= OPTIMAL_USAGE_RATIO\n   *\n   * @param reserve The reserve to get the variable rate slope 1 of\n   *\n   * @return The variable rate slope\n   */\n  function getVariableRateSlope1(address reserve) external view returns (uint256);\n\n  /**\n   * @notice Returns the variable rate slope above optimal usage ratio in ray\n   * @dev It's the variable rate when usage ratio > OPTIMAL_USAGE_RATIO\n   *\n   * @param reserve The reserve to get the variable rate slope 2 of\n   *\n   * @return The variable rate slope\n   */\n  function getVariableRateSlope2(address reserve) external view returns (uint256);\n\n  /**\n   * @notice Returns the base variable borrow rate, in ray\n   *\n   * @param reserve The reserve to get the base variable borrow rate of\n   *\n   * @return The base variable borrow rate\n   */\n  function getBaseVariableBorrowRate(address reserve) external view returns (uint256);\n\n  /**\n   * @notice Returns the maximum variable borrow rate, in ray\n   *\n   * @param reserve The reserve to get the maximum variable borrow rate of\n   *\n   * @return The maximum variable borrow rate\n   */\n  function getMaxVariableBorrowRate(address reserve) external view returns (uint256);\n\n  /**\n   * @notice Sets interest rate data for an Aave rate strategy\n   * @param reserve The reserve to update\n   * @param rateData The reserve interest rate data to apply to the given reserve\n   *   Being specific to this custom implementation, with custom struct type,\n   *   overloading the function on the generic interface\n   */\n  function setInterestRateParams(address reserve, InterestRateData calldata rateData) external;\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IInitializableAToken.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPool} from './IPool.sol';\n\n/**\n * @title IInitializableAToken\n * @author Aave\n * @notice Interface for the initialize function on AToken\n */\ninterface IInitializableAToken {\n  /**\n   * @dev Emitted when an aToken is initialized\n   * @param underlyingAsset The address of the underlying asset\n   * @param pool The address of the associated pool\n   * @param treasury The address of the treasury\n   * @param incentivesController The address of the incentives controller for this aToken\n   * @param aTokenDecimals The decimals of the underlying\n   * @param aTokenName The name of the aToken\n   * @param aTokenSymbol The symbol of the aToken\n   * @param params A set of encoded parameters for additional initialization\n   */\n  event Initialized(\n    address indexed underlyingAsset,\n    address indexed pool,\n    address treasury,\n    address incentivesController,\n    uint8 aTokenDecimals,\n    string aTokenName,\n    string aTokenSymbol,\n    bytes params\n  );\n\n  /**\n   * @notice Initializes the aToken\n   * @param pool The pool contract that is initializing this contract\n   * @param underlyingAsset The address of the underlying asset of this aToken (E.g. WETH for aWETH)\n   * @param aTokenDecimals The decimals of the aToken, same as the underlying asset's\n   * @param aTokenName The name of the aToken\n   * @param aTokenSymbol The symbol of the aToken\n   * @param params A set of encoded parameters for additional initialization\n   */\n  function initialize(\n    IPool pool,\n    address underlyingAsset,\n    uint8 aTokenDecimals,\n    string calldata aTokenName,\n    string calldata aTokenSymbol,\n    bytes calldata params\n  ) external;\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/misc/aave-upgradeability/VersionedInitializable.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.10;\n\n/**\n * @title VersionedInitializable\n * @author Aave, inspired by the OpenZeppelin Initializable contract\n * @notice Helper contract to implement initializer functions. To use it, replace\n * the constructor with a function that has the `initializer` modifier.\n * @dev WARNING: Unlike constructors, initializer functions must be manually\n * invoked. This applies both to deploying an Initializable contract, as well\n * as extending an Initializable contract via inheritance.\n * WARNING: When used with inheritance, manual care must be taken to not invoke\n * a parent initializer twice, or ensure that all initializers are idempotent,\n * because this is not dealt with automatically as with constructors.\n */\nabstract contract VersionedInitializable {\n  /**\n   * @dev Initializes the implementation contract at the current revision.\n   * In practice this breaks further initialization of the implementation.\n   */\n  constructor() {\n    // break the initialize\n    lastInitializedRevision = getRevision();\n  }\n\n  /**\n   * @dev Indicates that the contract has been initialized.\n   */\n  uint256 private lastInitializedRevision = 0;\n\n  /**\n   * @dev Indicates that the contract is in the process of being initialized.\n   */\n  bool private initializing;\n\n  /**\n   * @dev Modifier to use in the initializer function of a contract.\n   */\n  modifier initializer() {\n    uint256 revision = getRevision();\n    require(\n      initializing || isConstructor() || revision > lastInitializedRevision,\n      'Contract instance has already been initialized'\n    );\n\n    bool isTopLevelCall = !initializing;\n    if (isTopLevelCall) {\n      initializing = true;\n      lastInitializedRevision = revision;\n    }\n\n    _;\n\n    if (isTopLevelCall) {\n      initializing = false;\n    }\n  }\n\n  /**\n   * @notice Returns the revision number of the contract\n   * @dev Needs to be defined in the inherited class as a constant.\n   * @return The revision number\n   */\n  function getRevision() internal pure virtual returns (uint256);\n\n  /**\n   * @notice Returns true if and only if the function is running in the constructor\n   * @return True if the function is running in the constructor\n   */\n  function isConstructor() private view returns (bool) {\n    // extcodesize checks the size of the code stored in an address, and\n    // address returns the current address. Since the code is still not\n    // deployed when running a constructor, any checks on its code size will\n    // yield zero, making it an effective way to detect if a contract is\n    // under construction or not.\n    uint256 cs;\n    //solium-disable-next-line\n    assembly {\n      cs := extcodesize(address())\n    }\n    return cs == 0;\n  }\n\n  // Reserved storage space to allow for layout changes in the future.\n  uint256[50] private ______gap;\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IInitializableDebtToken.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPool} from './IPool.sol';\n\n/**\n * @title IInitializableDebtToken\n * @author Aave\n * @notice Interface for the initialize function common between debt tokens\n */\ninterface IInitializableDebtToken {\n  /**\n   * @dev Emitted when a debt token is initialized\n   * @param underlyingAsset The address of the underlying asset\n   * @param pool The address of the associated pool\n   * @param incentivesController The address of the incentives controller for this aToken\n   * @param debtTokenDecimals The decimals of the debt token\n   * @param debtTokenName The name of the debt token\n   * @param debtTokenSymbol The symbol of the debt token\n   * @param params A set of encoded parameters for additional initialization\n   */\n  event Initialized(\n    address indexed underlyingAsset,\n    address indexed pool,\n    address incentivesController,\n    uint8 debtTokenDecimals,\n    string debtTokenName,\n    string debtTokenSymbol,\n    bytes params\n  );\n\n  /**\n   * @notice Initializes the debt token.\n   * @param pool The pool contract that is initializing this contract\n   * @param underlyingAsset The address of the underlying asset of this aToken (E.g. WETH for aWETH)\n   * @param debtTokenDecimals The decimals of the debtToken, same as the underlying asset's\n   * @param debtTokenName The name of the token\n   * @param debtTokenSymbol The symbol of the token\n   * @param params A set of encoded parameters for additional initialization\n   */\n  function initialize(\n    IPool pool,\n    address underlyingAsset,\n    uint8 debtTokenDecimals,\n    string memory debtTokenName,\n    string memory debtTokenSymbol,\n    bytes calldata params\n  ) external;\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IPool.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPoolAddressesProvider} from './IPoolAddressesProvider.sol';\nimport {DataTypes} from '../protocol/libraries/types/DataTypes.sol';\n\n/**\n * @title IPool\n * @author Aave\n * @notice Defines the basic interface for an Aave Pool.\n */\ninterface IPool {\n  /**\n   * @dev Emitted on supply()\n   * @param reserve The address of the underlying asset of the reserve\n   * @param user The address initiating the supply\n   * @param onBehalfOf The beneficiary of the supply, receiving the aTokens\n   * @param amount The amount supplied\n   * @param referralCode The referral code used\n   */\n  event Supply(\n    address indexed reserve,\n    address user,\n    address indexed onBehalfOf,\n    uint256 amount,\n    uint16 indexed referralCode\n  );\n\n  /**\n   * @dev Emitted on withdraw()\n   * @param reserve The address of the underlying asset being withdrawn\n   * @param user The address initiating the withdrawal, owner of aTokens\n   * @param to The address that will receive the underlying\n   * @param amount The amount to be withdrawn\n   */\n  event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount);\n\n  /**\n   * @dev Emitted on borrow() and flashLoan() when debt needs to be opened\n   * @param reserve The address of the underlying asset being borrowed\n   * @param user The address of the user initiating the borrow(), receiving the funds on borrow() or just\n   * initiator of the transaction on flashLoan()\n   * @param onBehalfOf The address that will be getting the debt\n   * @param amount The amount borrowed out\n   * @param interestRateMode The rate mode: 2 for Variable, 1 is deprecated (changed on v3.2.0)\n   * @param borrowRate The numeric rate at which the user has borrowed, expressed in ray\n   * @param referralCode The referral code used\n   */\n  event Borrow(\n    address indexed reserve,\n    address user,\n    address indexed onBehalfOf,\n    uint256 amount,\n    DataTypes.InterestRateMode interestRateMode,\n    uint256 borrowRate,\n    uint16 indexed referralCode\n  );\n\n  /**\n   * @dev Emitted on repay()\n   * @param reserve The address of the underlying asset of the reserve\n   * @param user The beneficiary of the repayment, getting his debt reduced\n   * @param repayer The address of the user initiating the repay(), providing the funds\n   * @param amount The amount repaid\n   * @param useATokens True if the repayment is done using aTokens, `false` if done with underlying asset directly\n   */\n  event Repay(\n    address indexed reserve,\n    address indexed user,\n    address indexed repayer,\n    uint256 amount,\n    bool useATokens\n  );\n\n  /**\n   * @dev Emitted when the user selects a certain asset category for eMode\n   * @param user The address of the user\n   * @param categoryId The category id\n   */\n  event UserEModeSet(address indexed user, uint8 categoryId);\n\n  /**\n   * @dev Emitted on setUserUseReserveAsCollateral()\n   * @param reserve The address of the underlying asset of the reserve\n   * @param user The address of the user enabling the usage as collateral\n   */\n  event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user);\n\n  /**\n   * @dev Emitted on setUserUseReserveAsCollateral()\n   * @param reserve The address of the underlying asset of the reserve\n   * @param user The address of the user enabling the usage as collateral\n   */\n  event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user);\n\n  /**\n   * @dev Emitted on flashLoan()\n   * @param target The address of the flash loan receiver contract\n   * @param initiator The address initiating the flash loan\n   * @param asset The address of the asset being flash borrowed\n   * @param amount The amount flash borrowed\n   * @param interestRateMode The flashloan mode: 0 for regular flashloan,\n   *        1 for Stable (Deprecated on v3.2.0), 2 for Variable\n   * @param premium The fee flash borrowed\n   * @param referralCode The referral code used\n   */\n  event FlashLoan(\n    address indexed target,\n    address initiator,\n    address indexed asset,\n    uint256 amount,\n    DataTypes.InterestRateMode interestRateMode,\n    uint256 premium,\n    uint16 indexed referralCode\n  );\n\n  /**\n   * @dev Emitted when a borrower is liquidated.\n   * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation\n   * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation\n   * @param user The address of the borrower getting liquidated\n   * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover\n   * @param liquidatedCollateralAmount The amount of collateral received by the liquidator\n   * @param liquidator The address of the liquidator\n   * @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants\n   * to receive the underlying collateral asset directly\n   */\n  event LiquidationCall(\n    address indexed collateralAsset,\n    address indexed debtAsset,\n    address indexed user,\n    uint256 debtToCover,\n    uint256 liquidatedCollateralAmount,\n    address liquidator,\n    bool receiveAToken\n  );\n\n  /**\n   * @dev Emitted when the state of a reserve is updated.\n   * @param reserve The address of the underlying asset of the reserve\n   * @param liquidityRate The next liquidity rate\n   * @param stableBorrowRate The next stable borrow rate @note deprecated on v3.2.0\n   * @param variableBorrowRate The next variable borrow rate\n   * @param liquidityIndex The next liquidity index\n   * @param variableBorrowIndex The next variable borrow index\n   */\n  event ReserveDataUpdated(\n    address indexed reserve,\n    uint256 liquidityRate,\n    uint256 stableBorrowRate,\n    uint256 variableBorrowRate,\n    uint256 liquidityIndex,\n    uint256 variableBorrowIndex\n  );\n\n  /**\n   * @dev Emitted when the deficit of a reserve is covered.\n   * @param reserve The address of the underlying asset of the reserve\n   * @param caller The caller that triggered the DeficitCovered event\n   * @param amountCovered The amount of deficit covered\n   */\n  event DeficitCovered(address indexed reserve, address caller, uint256 amountCovered);\n\n  /**\n   * @dev Emitted when the protocol treasury receives minted aTokens from the accrued interest.\n   * @param reserve The address of the reserve\n   * @param amountMinted The amount minted to the treasury\n   */\n  event MintedToTreasury(address indexed reserve, uint256 amountMinted);\n\n  /**\n   * @dev Emitted when deficit is realized on a liquidation.\n   * @param user The user address where the bad debt will be burned\n   * @param debtAsset The address of the underlying borrowed asset to be burned\n   * @param amountCreated The amount of deficit created\n   */\n  event DeficitCreated(address indexed user, address indexed debtAsset, uint256 amountCreated);\n\n  /**\n   * @dev Emitted when a position manager is approved by the user.\n   * @param user The user address\n   * @param positionManager The address of the position manager\n   */\n  event PositionManagerApproved(address indexed user, address indexed positionManager);\n\n  /**\n   * @dev Emitted when a position manager is revoked by the user.\n   * @param user The user address\n   * @param positionManager The address of the position manager\n   */\n  event PositionManagerRevoked(address indexed user, address indexed positionManager);\n\n  /**\n   * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\n   * - E.g. User supplies 100 USDC and gets in return 100 aUSDC\n   * @param asset The address of the underlying asset to supply\n   * @param amount The amount to be supplied\n   * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n   *   wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n   *   is a different wallet\n   * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n   *   0 if the action is executed directly by the user, without any middle-man\n   */\n  function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\n\n  /**\n   * @notice Supply with transfer approval of asset to be supplied done via permit function\n   * see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\n   * @param asset The address of the underlying asset to supply\n   * @param amount The amount to be supplied\n   * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n   *   wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n   *   is a different wallet\n   * @param deadline The deadline timestamp that the permit is valid\n   * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n   *   0 if the action is executed directly by the user, without any middle-man\n   * @param permitV The V parameter of ERC712 permit sig\n   * @param permitR The R parameter of ERC712 permit sig\n   * @param permitS The S parameter of ERC712 permit sig\n   */\n  function supplyWithPermit(\n    address asset,\n    uint256 amount,\n    address onBehalfOf,\n    uint16 referralCode,\n    uint256 deadline,\n    uint8 permitV,\n    bytes32 permitR,\n    bytes32 permitS\n  ) external;\n\n  /**\n   * @notice Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned\n   * E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC\n   * @param asset The address of the underlying asset to withdraw\n   * @param amount The underlying amount to be withdrawn\n   *   - Send the value type(uint256).max in order to withdraw the whole aToken balance\n   * @param to The address that will receive the underlying, same as msg.sender if the user\n   *   wants to receive it on his own wallet, or a different address if the beneficiary is a\n   *   different wallet\n   * @return The final amount withdrawn\n   */\n  function withdraw(address asset, uint256 amount, address to) external returns (uint256);\n\n  /**\n   * @notice Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower\n   * already supplied enough collateral, or he was given enough allowance by a credit delegator on the VariableDebtToken\n   * - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet\n   *   and 100 variable debt tokens\n   * @param asset The address of the underlying asset to borrow\n   * @param amount The amount to be borrowed\n   * @param interestRateMode 2 for Variable, 1 is deprecated on v3.2.0\n   * @param referralCode The code used to register the integrator originating the operation, for potential rewards.\n   *   0 if the action is executed directly by the user, without any middle-man\n   * @param onBehalfOf The address of the user who will receive the debt. Should be the address of the borrower itself\n   * calling the function if he wants to borrow against his own collateral, or the address of the credit delegator\n   * if he has been given credit delegation allowance\n   */\n  function borrow(\n    address asset,\n    uint256 amount,\n    uint256 interestRateMode,\n    uint16 referralCode,\n    address onBehalfOf\n  ) external;\n\n  /**\n   * @notice Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned\n   * - E.g. User repays 100 USDC, burning 100 variable debt tokens of the `onBehalfOf` address\n   * @param asset The address of the borrowed underlying asset previously borrowed\n   * @param amount The amount to repay\n   * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\n   * @param interestRateMode 2 for Variable, 1 is deprecated on v3.2.0\n   * @param onBehalfOf The address of the user who will get his debt reduced/removed. Should be the address of the\n   * user calling the function if he wants to reduce/remove his own debt, or the address of any other\n   * other borrower whose debt should be removed\n   * @return The final amount repaid\n   */\n  function repay(\n    address asset,\n    uint256 amount,\n    uint256 interestRateMode,\n    address onBehalfOf\n  ) external returns (uint256);\n\n  /**\n   * @notice Repay with transfer approval of asset to be repaid done via permit function\n   * see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713\n   * @param asset The address of the borrowed underlying asset previously borrowed\n   * @param amount The amount to repay\n   * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\n   * @param interestRateMode 2 for Variable, 1 is deprecated on v3.2.0\n   * @param onBehalfOf Address of the user who will get his debt reduced/removed. Should be the address of the\n   * user calling the function if he wants to reduce/remove his own debt, or the address of any other\n   * other borrower whose debt should be removed\n   * @param deadline The deadline timestamp that the permit is valid\n   * @param permitV The V parameter of ERC712 permit sig\n   * @param permitR The R parameter of ERC712 permit sig\n   * @param permitS The S parameter of ERC712 permit sig\n   * @return The final amount repaid\n   */\n  function repayWithPermit(\n    address asset,\n    uint256 amount,\n    uint256 interestRateMode,\n    address onBehalfOf,\n    uint256 deadline,\n    uint8 permitV,\n    bytes32 permitR,\n    bytes32 permitS\n  ) external returns (uint256);\n\n  /**\n   * @notice Repays a borrowed `amount` on a specific reserve using the reserve aTokens, burning the\n   * equivalent debt tokens\n   * - E.g. User repays 100 USDC using 100 aUSDC, burning 100 variable debt tokens\n   * @dev  Passing uint256.max as amount will clean up any residual aToken dust balance, if the user aToken\n   * balance is not enough to cover the whole debt\n   * @param asset The address of the borrowed underlying asset previously borrowed\n   * @param amount The amount to repay\n   * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode`\n   * @param interestRateMode DEPRECATED in v3.2.0\n   * @return The final amount repaid\n   */\n  function repayWithATokens(\n    address asset,\n    uint256 amount,\n    uint256 interestRateMode\n  ) external returns (uint256);\n\n  /**\n   * @notice Allows suppliers to enable/disable a specific supplied asset as collateral\n   * @param asset The address of the underlying asset supplied\n   * @param useAsCollateral True if the user wants to use the supply as collateral, false otherwise\n   */\n  function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) external;\n\n  /**\n   * @notice Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1\n   * - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives\n   *   a proportionally amount of the `collateralAsset` plus a bonus to cover market risk\n   * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation\n   * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation\n   * @param borrower The address of the borrower getting liquidated\n   * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover\n   * @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants\n   * to receive the underlying collateral asset directly\n   */\n  function liquidationCall(\n    address collateralAsset,\n    address debtAsset,\n    address borrower,\n    uint256 debtToCover,\n    bool receiveAToken\n  ) external;\n\n  /**\n   * @notice Allows smartcontracts to access the liquidity of the pool within one transaction,\n   * as long as the amount taken plus a fee is returned.\n   * @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept\n   * into consideration. For further details please visit https://docs.aave.com/developers/\n   * @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanReceiver interface\n   * @param assets The addresses of the assets being flash-borrowed\n   * @param amounts The amounts of the assets being flash-borrowed\n   * @param interestRateModes Types of the debt to open if the flash loan is not returned:\n   *   0 -> Don't open any debt, just revert if funds can't be transferred from the receiver\n   *   1 -> Deprecated on v3.2.0\n   *   2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address\n   * @param onBehalfOf The address  that will receive the debt in the case of using 2 on `modes`\n   * @param params Variadic packed params to pass to the receiver as extra information\n   * @param referralCode The code used to register the integrator originating the operation, for potential rewards.\n   *   0 if the action is executed directly by the user, without any middle-man\n   */\n  function flashLoan(\n    address receiverAddress,\n    address[] calldata assets,\n    uint256[] calldata amounts,\n    uint256[] calldata interestRateModes,\n    address onBehalfOf,\n    bytes calldata params,\n    uint16 referralCode\n  ) external;\n\n  /**\n   * @notice Allows smartcontracts to access the liquidity of the pool within one transaction,\n   * as long as the amount taken plus a fee is returned.\n   * @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept\n   * into consideration. For further details please visit https://docs.aave.com/developers/\n   * @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface\n   * @param asset The address of the asset being flash-borrowed\n   * @param amount The amount of the asset being flash-borrowed\n   * @param params Variadic packed params to pass to the receiver as extra information\n   * @param referralCode The code used to register the integrator originating the operation, for potential rewards.\n   *   0 if the action is executed directly by the user, without any middle-man\n   */\n  function flashLoanSimple(\n    address receiverAddress,\n    address asset,\n    uint256 amount,\n    bytes calldata params,\n    uint16 referralCode\n  ) external;\n\n  /**\n   * @notice Returns the user account data across all the reserves\n   * @param user The address of the user\n   * @return totalCollateralBase The total collateral of the user in the base currency used by the price feed\n   * @return totalDebtBase The total debt of the user in the base currency used by the price feed\n   * @return availableBorrowsBase The borrowing power left of the user in the base currency used by the price feed\n   * @return currentLiquidationThreshold The liquidation threshold of the user\n   * @return ltv The loan to value of The user\n   * @return healthFactor The current health factor of the user\n   */\n  function getUserAccountData(\n    address user\n  )\n    external\n    view\n    returns (\n      uint256 totalCollateralBase,\n      uint256 totalDebtBase,\n      uint256 availableBorrowsBase,\n      uint256 currentLiquidationThreshold,\n      uint256 ltv,\n      uint256 healthFactor\n    );\n\n  /**\n   * @notice Initializes a reserve, activating it, assigning an aToken and debt tokens\n   * @dev Only callable by the PoolConfigurator contract\n   * @param asset The address of the underlying asset of the reserve\n   * @param aTokenAddress The address of the aToken that will be assigned to the reserve\n   * @param variableDebtAddress The address of the VariableDebtToken that will be assigned to the reserve\n   */\n  function initReserve(address asset, address aTokenAddress, address variableDebtAddress) external;\n\n  /**\n   * @notice Accumulates interest to all indexes of the reserve\n   * @dev Only callable by the PoolConfigurator contract\n   * @dev To be used when required by the configurator, for example when updating interest rates strategy data\n   * @param asset The address of the underlying asset of the reserve\n   */\n  function syncIndexesState(address asset) external;\n\n  /**\n   * @notice Updates interest rates on the reserve data\n   * @dev Only callable by the PoolConfigurator contract\n   * @dev To be used when required by the configurator, for example when updating interest rates strategy data\n   * @param asset The address of the underlying asset of the reserve\n   */\n  function syncRatesState(address asset) external;\n\n  /**\n   * @notice Sets the configuration bitmap of the reserve as a whole\n   * @dev Only callable by the PoolConfigurator contract\n   * @param asset The address of the underlying asset of the reserve\n   * @param configuration The new configuration bitmap\n   */\n  function setConfiguration(\n    address asset,\n    DataTypes.ReserveConfigurationMap calldata configuration\n  ) external;\n\n  /**\n   * @notice Returns the configuration of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return The configuration of the reserve\n   */\n  function getConfiguration(\n    address asset\n  ) external view returns (DataTypes.ReserveConfigurationMap memory);\n\n  /**\n   * @notice Returns the configuration of the user across all the reserves\n   * @param user The user address\n   * @return The configuration of the user\n   */\n  function getUserConfiguration(\n    address user\n  ) external view returns (DataTypes.UserConfigurationMap memory);\n\n  /**\n   * @notice Returns the normalized income of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return The reserve's normalized income\n   */\n  function getReserveNormalizedIncome(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the normalized variable debt per unit of asset\n   * @dev WARNING: This function is intended to be used primarily by the protocol itself to get a\n   * \"dynamic\" variable index based on time, current stored index and virtual rate at the current\n   * moment (approx. a borrower would get if opening a position). This means that is always used in\n   * combination with variable debt supply/balances.\n   * If using this function externally, consider that is possible to have an increasing normalized\n   * variable debt that is not equivalent to how the variable debt index would be updated in storage\n   * (e.g. only updates with non-zero variable debt supply)\n   * @param asset The address of the underlying asset of the reserve\n   * @return The reserve normalized variable debt\n   */\n  function getReserveNormalizedVariableDebt(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the state and configuration of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return The state and configuration data of the reserve\n   */\n  function getReserveData(address asset) external view returns (DataTypes.ReserveDataLegacy memory);\n\n  /**\n   * @notice Returns the virtual underlying balance of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return The reserve virtual underlying balance\n   */\n  function getVirtualUnderlyingBalance(address asset) external view returns (uint128);\n\n  /**\n   * @notice Validates and finalizes an aToken transfer\n   * @dev Only callable by the overlying aToken of the `asset`\n   * @param asset The address of the underlying asset of the aToken\n   * @param from The user from which the aTokens are transferred\n   * @param to The user receiving the aTokens\n   * @param scaledAmount The scaled amount being transferred/withdrawn\n   * @param scaledBalanceFromBefore The aToken scaled balance of the `from` user before the transfer\n   */\n  function finalizeTransfer(\n    address asset,\n    address from,\n    address to,\n    uint256 scaledAmount,\n    uint256 scaledBalanceFromBefore\n  ) external;\n\n  /**\n   * @notice Returns the list of the underlying assets of all the initialized reserves\n   * @dev It does not include dropped reserves\n   * @return The addresses of the underlying assets of the initialized reserves\n   */\n  function getReservesList() external view returns (address[] memory);\n\n  /**\n   * @notice Returns the number of initialized reserves\n   * @dev It includes dropped reserves\n   * @return The count\n   */\n  function getReservesCount() external view returns (uint256);\n\n  /**\n   * @notice Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct\n   * @param id The id of the reserve as stored in the DataTypes.ReserveData struct\n   * @return The address of the reserve associated with id\n   */\n  function getReserveAddressById(uint16 id) external view returns (address);\n\n  /**\n   * @notice Returns the PoolAddressesProvider connected to this contract\n   * @return The address of the PoolAddressesProvider\n   */\n  function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\n\n  /**\n   * @notice Returns the ReserveInterestRateStrategy connected to all the reserves\n   * @return The address of the ReserveInterestRateStrategy contract\n   */\n  function RESERVE_INTEREST_RATE_STRATEGY() external view returns (address);\n\n  /**\n   * @notice Updates flash loan premium. All this premium is collected by the protocol treasury.\n   * @dev The premium is calculated on the total borrowed amount\n   * @dev Only callable by the PoolConfigurator contract\n   * @param flashLoanPremium The flash loan premium, expressed in bps\n   */\n  function updateFlashloanPremium(uint128 flashLoanPremium) external;\n\n  /**\n   * @notice Configures a new or alters an existing collateral configuration of an eMode.\n   * @dev In eMode, the protocol allows very high borrowing power to borrow assets of the same category.\n   * The category 0 is reserved as it's the default for volatile assets\n   * @param id The id of the category\n   * @param config The configuration of the category\n   */\n  function configureEModeCategory(\n    uint8 id,\n    DataTypes.EModeCategoryBaseConfiguration memory config\n  ) external;\n\n  /**\n   * @notice Replaces the current eMode collateralBitmap.\n   * @param id The id of the category\n   * @param collateralBitmap The collateralBitmap of the category\n   */\n  function configureEModeCategoryCollateralBitmap(uint8 id, uint128 collateralBitmap) external;\n\n  /**\n   * @notice Replaces the current eMode borrowableBitmap.\n   * @param id The id of the category\n   * @param borrowableBitmap The borrowableBitmap of the category\n   */\n  function configureEModeCategoryBorrowableBitmap(uint8 id, uint128 borrowableBitmap) external;\n\n  /**\n   * @notice Replaces the current eMode ltvzeroBitmap.\n   * @param id The id of the category\n   * @param ltvzeroBitmap The ltvzeroBitmap of the category\n   */\n  function configureEModeCategoryLtvzeroBitmap(uint8 id, uint128 ltvzeroBitmap) external;\n\n  /**\n   * @notice Sets the isolated flag of an eMode category.\n   * @param id The id of the category\n   * @param isolated True if the eMode should be isolated\n   */\n  function configureEModeCategoryIsolated(uint8 id, bool isolated) external;\n\n  /**\n   * @notice Returns the data of an eMode category\n   * @dev DEPRECATED use independent getters instead\n   * @param id The id of the category\n   * @return The configuration data of the category\n   */\n  function getEModeCategoryData(\n    uint8 id\n  ) external view returns (DataTypes.EModeCategoryLegacy memory);\n\n  /**\n   * @notice Returns the label of an eMode category\n   * @dev This function is deprecated and will be removed in a future version.\n   * @custom:deprecated\n   * @param id The id of the category\n   * @return The label of the category\n   */\n  function getEModeCategoryLabel(uint8 id) external view returns (string memory);\n\n  /**\n   * @notice Returns the collateral config of an eMode category\n   * @param id The id of the category\n   * @return The ltv,lt,lb of the category\n   */\n  function getEModeCategoryCollateralConfig(\n    uint8 id\n  ) external view returns (DataTypes.CollateralConfig memory);\n\n  /**\n   * @notice Returns the collateralBitmap of an eMode category\n   * @param id The id of the category\n   * @return The collateralBitmap of the category\n   */\n  function getEModeCategoryCollateralBitmap(uint8 id) external view returns (uint128);\n\n  /**\n   * @notice Returns the borrowableBitmap of an eMode category\n   * @param id The id of the category\n   * @return The borrowableBitmap of the category\n   */\n  function getEModeCategoryBorrowableBitmap(uint8 id) external view returns (uint128);\n\n  /**\n   * @notice Returns the ltvzero of an eMode category\n   * @param id The id of the category\n   * @return The ltvzeroBitmap of the category\n   */\n  function getEModeCategoryLtvzeroBitmap(uint8 id) external view returns (uint128);\n\n  /**\n   * @notice Returns the isolated flag of an eMode category\n   * @param id The id of the category\n   * @return True if the eMode category is isolated\n   */\n  function getIsEModeCategoryIsolated(uint8 id) external view returns (bool);\n\n  /**\n   * @notice Allows a user to use the protocol in eMode\n   * @param categoryId The id of the category\n   */\n  function setUserEMode(uint8 categoryId) external;\n\n  /**\n   * @notice Returns the eMode the user is using\n   * @param user The address of the user\n   * @return The eMode id\n   */\n  function getUserEMode(address user) external view returns (uint256);\n\n  /**\n   * @notice Sets the liquidation grace period of the given asset\n   * @dev To enable a liquidation grace period, a timestamp in the future should be set,\n   *      To disable a liquidation grace period, any timestamp in the past works, like 0\n   * @param asset The address of the underlying asset to set the liquidationGracePeriod\n   * @param until Timestamp when the liquidation grace period will end\n   **/\n  function setLiquidationGracePeriod(address asset, uint40 until) external;\n\n  /**\n   * @notice Returns the liquidation grace period of the given asset\n   * @param asset The address of the underlying asset\n   * @return Timestamp when the liquidation grace period will end\n   **/\n  function getLiquidationGracePeriod(address asset) external view returns (uint40);\n\n  /**\n   * @notice Returns the total fee on flash loans.\n   * @dev From v3.4 all flashloan fees will be send to the treasury.\n   * @return The total fee on flashloans\n   */\n  function FLASHLOAN_PREMIUM_TOTAL() external view returns (uint128);\n\n  /**\n   * @notice Returns the part of the flashloan fees sent to protocol\n   * @dev From v3.4 all flashloan fees will be send to the treasury and this value\n   *      is always 100_00.\n   * @return The flashloan fee sent to the protocol treasury\n   */\n  function FLASHLOAN_PREMIUM_TO_PROTOCOL() external view returns (uint128);\n\n  /**\n   * @notice Returns the maximum number of reserves supported to be listed in this Pool\n   * @return The maximum number of reserves supported\n   */\n  function MAX_NUMBER_RESERVES() external view returns (uint16);\n\n  /**\n   * @notice Mints the assets accrued through the reserve factor to the treasury in the form of aTokens\n   * @param assets The list of reserves for which the minting needs to be executed\n   */\n  function mintToTreasury(address[] calldata assets) external;\n\n  /**\n   * @notice Rescue and transfer tokens locked in this contract\n   * @param token The address of the token\n   * @param to The address of the recipient\n   * @param amount The amount of token to transfer\n   */\n  function rescueTokens(address token, address to, uint256 amount) external;\n\n  /**\n   * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\n   * - E.g. User supplies 100 USDC and gets in return 100 aUSDC\n   * @dev Deprecated: Use the `supply` function instead\n   * @param asset The address of the underlying asset to supply\n   * @param amount The amount to be supplied\n   * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n   *   wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n   *   is a different wallet\n   * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n   *   0 if the action is executed directly by the user, without any middle-man\n   */\n  function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\n\n  /**\n   * @notice It covers the deficit of a specified reserve by burning the equivalent aToken `amount` for assets\n   * @dev The deficit of a reserve can occur due to situations where borrowed assets are not repaid, leading to bad debt.\n   * @param asset The address of the underlying asset to cover the deficit.\n   * @param amount The amount to be covered, in aToken\n   * @return The amount of tokens burned\n   */\n  function eliminateReserveDeficit(address asset, uint256 amount) external returns (uint256);\n\n  /**\n   * @notice Approves or disapproves a position manager. This position manager will be able\n   * to call the `setUserUseReserveAsCollateralOnBehalfOf` and the\n   * `setUserEModeOnBehalfOf` function on behalf of the user.\n   * @param positionManager The address of the position manager\n   * @param approve True if the position manager should be approved, false otherwise\n   */\n  function approvePositionManager(address positionManager, bool approve) external;\n\n  /**\n   * @notice Renounces a position manager role for a given user.\n   * @param user The address of the user\n   */\n  function renouncePositionManagerRole(address user) external;\n\n  /**\n   * @notice Sets the use as collateral flag for the user on the specific reserve on behalf of the user.\n   * @param asset The address of the underlying asset of the reserve\n   * @param useAsCollateral True if the user wants to use the reserve as collateral, false otherwise\n   * @param onBehalfOf The address of the user\n   */\n  function setUserUseReserveAsCollateralOnBehalfOf(\n    address asset,\n    bool useAsCollateral,\n    address onBehalfOf\n  ) external;\n\n  /**\n   * @notice Sets the eMode category for the user on the specific reserve on behalf of the user.\n   * @param categoryId The id of the category\n   * @param onBehalfOf The address of the user\n   */\n  function setUserEModeOnBehalfOf(uint8 categoryId, address onBehalfOf) external;\n\n  /**\n   * @notice Returns true if the `positionManager` address is approved to use the position manager role on behalf of the user.\n   * @param user The address of the user\n   * @param positionManager The address of the position manager\n   * @return True if the user is approved to use the position manager, false otherwise\n   */\n  function isApprovedPositionManager(\n    address user,\n    address positionManager\n  ) external view returns (bool);\n\n  /**\n   * @notice Returns the current deficit of a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @return The current deficit of the reserve\n   */\n  function getReserveDeficit(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the aToken address of a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @return The address of the aToken\n   */\n  function getReserveAToken(address asset) external view returns (address);\n\n  /**\n   * @notice Returns the variableDebtToken address of a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @return The address of the variableDebtToken\n   */\n  function getReserveVariableDebtToken(address asset) external view returns (address);\n\n  /**\n   * @notice Gets the address of the external FlashLoanLogic\n   */\n  function getFlashLoanLogic() external view returns (address);\n\n  /**\n   * @notice Gets the address of the external BorrowLogic\n   */\n  function getBorrowLogic() external view returns (address);\n\n  /**\n   * @notice Gets the address of the external LiquidationLogic\n   */\n  function getLiquidationLogic() external view returns (address);\n\n  /**\n   * @notice Gets the address of the external PoolLogic\n   */\n  function getPoolLogic() external view returns (address);\n\n  /**\n   * @notice Gets the address of the external SupplyLogic\n   */\n  function getSupplyLogic() external view returns (address);\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IPoolAddressesProvider.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/**\n * @title IPoolAddressesProvider\n * @author Aave\n * @notice Defines the basic interface for a Pool Addresses Provider.\n */\ninterface IPoolAddressesProvider {\n  /**\n   * @dev Emitted when the market identifier is updated.\n   * @param oldMarketId The old id of the market\n   * @param newMarketId The new id of the market\n   */\n  event MarketIdSet(string indexed oldMarketId, string indexed newMarketId);\n\n  /**\n   * @dev Emitted when the pool is updated.\n   * @param oldAddress The old address of the Pool\n   * @param newAddress The new address of the Pool\n   */\n  event PoolUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the pool configurator is updated.\n   * @param oldAddress The old address of the PoolConfigurator\n   * @param newAddress The new address of the PoolConfigurator\n   */\n  event PoolConfiguratorUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the price oracle is updated.\n   * @param oldAddress The old address of the PriceOracle\n   * @param newAddress The new address of the PriceOracle\n   */\n  event PriceOracleUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the ACL manager is updated.\n   * @param oldAddress The old address of the ACLManager\n   * @param newAddress The new address of the ACLManager\n   */\n  event ACLManagerUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the ACL admin is updated.\n   * @param oldAddress The old address of the ACLAdmin\n   * @param newAddress The new address of the ACLAdmin\n   */\n  event ACLAdminUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the price oracle sentinel is updated.\n   * @param oldAddress The old address of the PriceOracleSentinel\n   * @param newAddress The new address of the PriceOracleSentinel\n   */\n  event PriceOracleSentinelUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the pool data provider is updated.\n   * @param oldAddress The old address of the PoolDataProvider\n   * @param newAddress The new address of the PoolDataProvider\n   */\n  event PoolDataProviderUpdated(address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when a new proxy is created.\n   * @param id The identifier of the proxy\n   * @param proxyAddress The address of the created proxy contract\n   * @param implementationAddress The address of the implementation contract\n   */\n  event ProxyCreated(\n    bytes32 indexed id,\n    address indexed proxyAddress,\n    address indexed implementationAddress\n  );\n\n  /**\n   * @dev Emitted when a new non-proxied contract address is registered.\n   * @param id The identifier of the contract\n   * @param oldAddress The address of the old contract\n   * @param newAddress The address of the new contract\n   */\n  event AddressSet(bytes32 indexed id, address indexed oldAddress, address indexed newAddress);\n\n  /**\n   * @dev Emitted when the implementation of the proxy registered with id is updated\n   * @param id The identifier of the contract\n   * @param proxyAddress The address of the proxy contract\n   * @param oldImplementationAddress The address of the old implementation contract\n   * @param newImplementationAddress The address of the new implementation contract\n   */\n  event AddressSetAsProxy(\n    bytes32 indexed id,\n    address indexed proxyAddress,\n    address oldImplementationAddress,\n    address indexed newImplementationAddress\n  );\n\n  /**\n   * @notice Returns the id of the Aave market to which this contract points to.\n   * @return The market id\n   */\n  function getMarketId() external view returns (string memory);\n\n  /**\n   * @notice Associates an id with a specific PoolAddressesProvider.\n   * @dev This can be used to create an onchain registry of PoolAddressesProviders to\n   * identify and validate multiple Aave markets.\n   * @param newMarketId The market id\n   */\n  function setMarketId(string calldata newMarketId) external;\n\n  /**\n   * @notice Returns an address by its identifier.\n   * @dev The returned address might be an EOA or a contract, potentially proxied\n   * @dev It returns ZERO if there is no registered address with the given id\n   * @param id The id\n   * @return The address of the registered for the specified id\n   */\n  function getAddress(bytes32 id) external view returns (address);\n\n  /**\n   * @notice General function to update the implementation of a proxy registered with\n   * certain `id`. If there is no proxy registered, it will instantiate one and\n   * set as implementation the `newImplementationAddress`.\n   * @dev IMPORTANT Use this function carefully, only for ids that don't have an explicit\n   * setter function, in order to avoid unexpected consequences\n   * @param id The id\n   * @param newImplementationAddress The address of the new implementation\n   */\n  function setAddressAsProxy(bytes32 id, address newImplementationAddress) external;\n\n  /**\n   * @notice Sets an address for an id replacing the address saved in the addresses map.\n   * @dev IMPORTANT Use this function carefully, as it will do a hard replacement\n   * @param id The id\n   * @param newAddress The address to set\n   */\n  function setAddress(bytes32 id, address newAddress) external;\n\n  /**\n   * @notice Returns the address of the Pool proxy.\n   * @return The Pool proxy address\n   */\n  function getPool() external view returns (address);\n\n  /**\n   * @notice Updates the implementation of the Pool, or creates a proxy\n   * setting the new `pool` implementation when the function is called for the first time.\n   * @param newPoolImpl The new Pool implementation\n   */\n  function setPoolImpl(address newPoolImpl) external;\n\n  /**\n   * @notice Returns the address of the PoolConfigurator proxy.\n   * @return The PoolConfigurator proxy address\n   */\n  function getPoolConfigurator() external view returns (address);\n\n  /**\n   * @notice Updates the implementation of the PoolConfigurator, or creates a proxy\n   * setting the new `PoolConfigurator` implementation when the function is called for the first time.\n   * @param newPoolConfiguratorImpl The new PoolConfigurator implementation\n   */\n  function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external;\n\n  /**\n   * @notice Returns the address of the price oracle.\n   * @return The address of the PriceOracle\n   */\n  function getPriceOracle() external view returns (address);\n\n  /**\n   * @notice Updates the address of the price oracle.\n   * @param newPriceOracle The address of the new PriceOracle\n   */\n  function setPriceOracle(address newPriceOracle) external;\n\n  /**\n   * @notice Returns the address of the ACL manager.\n   * @return The address of the ACLManager\n   */\n  function getACLManager() external view returns (address);\n\n  /**\n   * @notice Updates the address of the ACL manager.\n   * @param newAclManager The address of the new ACLManager\n   */\n  function setACLManager(address newAclManager) external;\n\n  /**\n   * @notice Returns the address of the ACL admin.\n   * @return The address of the ACL admin\n   */\n  function getACLAdmin() external view returns (address);\n\n  /**\n   * @notice Updates the address of the ACL admin.\n   * @param newAclAdmin The address of the new ACL admin\n   */\n  function setACLAdmin(address newAclAdmin) external;\n\n  /**\n   * @notice Returns the address of the price oracle sentinel.\n   * @return The address of the PriceOracleSentinel\n   */\n  function getPriceOracleSentinel() external view returns (address);\n\n  /**\n   * @notice Updates the address of the price oracle sentinel.\n   * @param newPriceOracleSentinel The address of the new PriceOracleSentinel\n   */\n  function setPriceOracleSentinel(address newPriceOracleSentinel) external;\n\n  /**\n   * @notice Returns the address of the data provider.\n   * @return The address of the DataProvider\n   */\n  function getPoolDataProvider() external view returns (address);\n\n  /**\n   * @notice Updates the address of the data provider.\n   * @param newDataProvider The address of the new DataProvider\n   */\n  function setPoolDataProvider(address newDataProvider) external;\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IPoolConfigurator.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {ConfiguratorInputTypes} from '../protocol/libraries/types/ConfiguratorInputTypes.sol';\n\n/**\n * @title IPoolConfigurator\n * @author Aave\n * @notice Defines the basic interface for a Pool configurator.\n */\ninterface IPoolConfigurator {\n  /**\n   * @dev Emitted when a reserve is initialized.\n   * @param asset The address of the underlying asset of the reserve\n   * @param aToken The address of the associated aToken contract\n   * @param stableDebtToken, DEPRECATED in v3.2.0\n   * @param variableDebtToken The address of the associated variable rate debt token\n   * @param interestRateStrategyAddress The address of the interest rate strategy for the reserve\n   */\n  event ReserveInitialized(\n    address indexed asset,\n    address indexed aToken,\n    address stableDebtToken,\n    address variableDebtToken,\n    address interestRateStrategyAddress\n  );\n\n  /**\n   * @dev Emitted when borrowing is enabled or disabled on a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param enabled True if borrowing is enabled, false otherwise\n   */\n  event ReserveBorrowing(address indexed asset, bool enabled);\n\n  /**\n   * @dev Emitted when flashloans are enabled or disabled on a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param enabled True if flashloans are enabled, false otherwise\n   */\n  event ReserveFlashLoaning(address indexed asset, bool enabled);\n\n  /**\n   * @dev Emitted when the ltv is set for the frozen asset.\n   * @param asset The address of the underlying asset of the reserve\n   * @param ltv The loan to value of the asset when used as collateral\n   */\n  event PendingLtvChanged(address indexed asset, uint256 ltv);\n\n  /**\n   * @dev Emitted when the collateralization risk parameters for the specified asset are updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param ltv The loan to value of the asset when used as collateral\n   * @param liquidationThreshold The threshold at which loans using this asset as collateral will be considered undercollateralized\n   * @param liquidationBonus The bonus liquidators receive to liquidate this asset\n   */\n  event CollateralConfigurationChanged(\n    address indexed asset,\n    uint256 ltv,\n    uint256 liquidationThreshold,\n    uint256 liquidationBonus\n  );\n\n  /**\n   * @dev Emitted when a reserve is activated or deactivated\n   * @param asset The address of the underlying asset of the reserve\n   * @param active True if reserve is active, false otherwise\n   */\n  event ReserveActive(address indexed asset, bool active);\n\n  /**\n   * @dev Emitted when a reserve is frozen or unfrozen\n   * @param asset The address of the underlying asset of the reserve\n   * @param frozen True if reserve is frozen, false otherwise\n   */\n  event ReserveFrozen(address indexed asset, bool frozen);\n\n  /**\n   * @dev Emitted when a reserve is paused or unpaused\n   * @param asset The address of the underlying asset of the reserve\n   * @param paused True if reserve is paused, false otherwise\n   */\n  event ReservePaused(address indexed asset, bool paused);\n\n  /**\n   * @dev Emitted when a reserve factor is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param oldReserveFactor The old reserve factor, expressed in bps\n   * @param newReserveFactor The new reserve factor, expressed in bps\n   */\n  event ReserveFactorChanged(\n    address indexed asset,\n    uint256 oldReserveFactor,\n    uint256 newReserveFactor\n  );\n\n  /**\n   * @dev Emitted when the borrow cap of a reserve is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param oldBorrowCap The old borrow cap\n   * @param newBorrowCap The new borrow cap\n   */\n  event BorrowCapChanged(address indexed asset, uint256 oldBorrowCap, uint256 newBorrowCap);\n\n  /**\n   * @dev Emitted when the supply cap of a reserve is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param oldSupplyCap The old supply cap\n   * @param newSupplyCap The new supply cap\n   */\n  event SupplyCapChanged(address indexed asset, uint256 oldSupplyCap, uint256 newSupplyCap);\n\n  /**\n   * @dev Emitted when the liquidation protocol fee of a reserve is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param oldFee The old liquidation protocol fee, expressed in bps\n   * @param newFee The new liquidation protocol fee, expressed in bps\n   */\n  event LiquidationProtocolFeeChanged(address indexed asset, uint256 oldFee, uint256 newFee);\n\n  /**\n   * @dev Emitted when the liquidation grace period is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param gracePeriodUntil Timestamp until when liquidations will not be allowed post-unpause\n   */\n  event LiquidationGracePeriodChanged(address indexed asset, uint40 gracePeriodUntil);\n\n  /**\n   * @dev Emitted when the liquidation grace period is disabled.\n   * @param asset The address of the underlying asset of the reserve\n   */\n  event LiquidationGracePeriodDisabled(address indexed asset);\n\n  /**\n   * @dev Emitted when an collateral configuration of an asset in an eMode is changed.\n   * @param asset The address of the underlying asset of the reserve\n   * @param categoryId The eMode category\n   * @param collateral True if the asset is enabled as collateral in the eMode, false otherwise.\n   */\n  event AssetCollateralInEModeChanged(address indexed asset, uint8 categoryId, bool collateral);\n\n  /**\n   * @dev Emitted when the borrowable configuration of an asset in an eMode changed.\n   * @param asset The address of the underlying asset of the reserve\n   * @param categoryId The eMode category\n   * @param borrowable True if the asset is enabled as borrowable in the eMode, false otherwise.\n   */\n  event AssetBorrowableInEModeChanged(address indexed asset, uint8 categoryId, bool borrowable);\n\n  /**\n   * @dev Emitted when the ltvzero configuration of an asset in an eMode changed.\n   * @param asset The address of the underlying asset of the reserve\n   * @param categoryId The eMode category\n   * @param ltvzero True if the asset is enabled as ltvzero in the eMode, false otherwise.\n   */\n  event AssetLtvzeroInEModeChanged(address indexed asset, uint8 categoryId, bool ltvzero);\n\n  /**\n   * @dev Emitted when a new eMode category is added or an existing category is altered.\n   * @param categoryId The new eMode category id\n   * @param ltv The ltv for the asset category in eMode\n   * @param liquidationThreshold The liquidationThreshold for the asset category in eMode\n   * @param liquidationBonus The liquidationBonus for the asset category in eMode\n   * @param oracle DEPRECATED in v3.2.0\n   * @param label A human readable identifier for the category\n   */\n  event EModeCategoryAdded(\n    uint8 indexed categoryId,\n    uint256 ltv,\n    uint256 liquidationThreshold,\n    uint256 liquidationBonus,\n    address oracle,\n    string label\n  );\n\n  /**\n   * @dev Emitted when the isolated flag of an eMode category is changed.\n   * @param categoryId The eMode category id\n   * @param isolated True if the eMode is isolated (only eMode collateral contributes LTV)\n   */\n  event EModeCategoryIsolationChanged(uint8 indexed categoryId, bool isolated);\n\n  /**\n   * @dev Emitted when a reserve interest strategy contract is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param oldStrategy The address of the old interest strategy contract\n   * @param newStrategy The address of the new interest strategy contract\n   */\n  event ReserveInterestRateStrategyChanged(\n    address indexed asset,\n    address oldStrategy,\n    address newStrategy\n  );\n\n  /**\n   * @dev Emitted when the data of a reserve interest strategy contract is updated.\n   * @param asset The address of the underlying asset of the reserve\n   * @param data abi encoded data\n   */\n  event ReserveInterestRateDataChanged(address indexed asset, address indexed strategy, bytes data);\n\n  /**\n   * @dev Emitted when an aToken implementation is upgraded.\n   * @param asset The address of the underlying asset of the reserve\n   * @param proxy The aToken proxy address\n   * @param implementation The new aToken implementation\n   */\n  event ATokenUpgraded(\n    address indexed asset,\n    address indexed proxy,\n    address indexed implementation\n  );\n\n  /**\n   * @dev Emitted when the implementation of a variable debt token is upgraded.\n   * @param asset The address of the underlying asset of the reserve\n   * @param proxy The variable debt token proxy address\n   * @param implementation The new aToken implementation\n   */\n  event VariableDebtTokenUpgraded(\n    address indexed asset,\n    address indexed proxy,\n    address indexed implementation\n  );\n\n  /**\n   * @dev Emitted when the total premium on flashloans is updated.\n   * @param oldFlashloanPremiumTotal The old premium, expressed in bps\n   * @param newFlashloanPremiumTotal The new premium, expressed in bps\n   */\n  event FlashloanPremiumTotalUpdated(\n    uint128 oldFlashloanPremiumTotal,\n    uint128 newFlashloanPremiumTotal\n  );\n\n  /**\n   * @dev Emitted when the part of the premium that goes to protocol is updated.\n          Deprecated, from the v3.4 version the `flashloanPremiumToProtocol` value\n          is always 100%.\n   * @param oldFlashloanPremiumToProtocol The old premium, expressed in bps\n   * @param newFlashloanPremiumToProtocol The new premium, expressed in bps\n   */\n  event FlashloanPremiumToProtocolUpdated(\n    uint128 oldFlashloanPremiumToProtocol,\n    uint128 newFlashloanPremiumToProtocol\n  );\n\n  /**\n   * @notice Initializes multiple reserves.\n   * @param input The array of initialization parameters\n   */\n  function initReserves(ConfiguratorInputTypes.InitReserveInput[] calldata input) external;\n\n  /**\n   * @dev Updates the aToken implementation for the reserve.\n   * @param input The aToken update parameters\n   */\n  function updateAToken(ConfiguratorInputTypes.UpdateATokenInput calldata input) external;\n\n  /**\n   * @notice Updates the variable debt token implementation for the asset.\n   * @param input The variableDebtToken update parameters\n   */\n  function updateVariableDebtToken(\n    ConfiguratorInputTypes.UpdateDebtTokenInput calldata input\n  ) external;\n\n  /**\n   * @notice Configures borrowing on a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param enabled True if borrowing needs to be enabled, false otherwise\n   */\n  function setReserveBorrowing(address asset, bool enabled) external;\n\n  /**\n   * @notice Configures the reserve collateralization parameters.\n   * @dev All the values are expressed in bps. A value of 10000, results in 100.00%\n   * @dev The `liquidationBonus` is always above 100%. A value of 105% means the liquidator will receive a 5% bonus\n   * @param asset The address of the underlying asset of the reserve\n   * @param ltv The loan to value of the asset when used as collateral\n   * @param liquidationThreshold The threshold at which loans using this asset as collateral will be considered undercollateralized\n   * @param liquidationBonus The bonus liquidators receive to liquidate this asset\n   */\n  function configureReserveAsCollateral(\n    address asset,\n    uint256 ltv,\n    uint256 liquidationThreshold,\n    uint256 liquidationBonus\n  ) external;\n\n  /**\n   * @notice Enable or disable flashloans on a reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @param enabled True if flashloans need to be enabled, false otherwise\n   */\n  function setReserveFlashLoaning(address asset, bool enabled) external;\n\n  /**\n   * @notice Activate or deactivate a reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @param active True if the reserve needs to be active, false otherwise\n   */\n  function setReserveActive(address asset, bool active) external;\n\n  /**\n   * @notice Freeze or unfreeze a reserve. A frozen reserve doesn't allow any new supply, borrow\n   * or rate swap but allows repayments, liquidations, rate rebalances and withdrawals.\n   * Also sets ltvzero on affected eModes and reserve ltv to 0.\n   * Stores the current reserve ltv in pendingLtv[asset].\n   * @param asset The address of the underlying asset of the reserve\n   * @param freeze True if the reserve needs to be frozen, false otherwise\n   */\n  function setReserveFreeze(address asset, bool freeze) external;\n\n  /**\n   * @notice Restores the pending ltv for a reserve in non-emode (emode 0), if it is non-zero.\n   * @param asset The address of the underlying asset of the reserve\n   * @param ltvzero True if the reserve should be flagged as ltvzero, false otherwise\n   */\n  function setReserveLtvzero(address asset, bool ltvzero) external;\n\n  /**\n   * @notice Pauses a reserve. A paused reserve does not allow any interaction (supply, borrow, repay,\n   * swap interest rate, liquidate, atoken transfers).\n   * @param asset The address of the underlying asset of the reserve\n   * @param paused True if pausing the reserve, false if unpausing\n   * @param gracePeriod Count of seconds after unpause during which liquidations will not be available\n   *   - Only applicable whenever unpausing (`paused` as false)\n   *   - Passing 0 means no grace period\n   *   - Capped to maximum MAX_GRACE_PERIOD\n   */\n  function setReservePause(address asset, bool paused, uint40 gracePeriod) external;\n\n  /**\n   * @notice Pauses a reserve. A paused reserve does not allow any interaction (supply, borrow, repay,\n   * swap interest rate, liquidate, atoken transfers).\n   * @dev Version with no grace period\n   * @param asset The address of the underlying asset of the reserve\n   * @param paused True if pausing the reserve, false if unpausing\n   */\n  function setReservePause(address asset, bool paused) external;\n\n  /**\n   * @notice Disables liquidation grace period for the asset. The liquidation grace period is set in the past\n   * so that liquidations are allowed for the asset.\n   * @param asset The address of the underlying asset of the reserve\n   */\n  function disableLiquidationGracePeriod(address asset) external;\n\n  /**\n   * @notice Updates the reserve factor of a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param newReserveFactor The new reserve factor of the reserve\n   */\n  function setReserveFactor(address asset, uint256 newReserveFactor) external;\n\n  /**\n   * @notice Sets interest rate data for a reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @param rateData bytes-encoded rate data. In this format in order to allow the rate strategy contract\n   *  to de-structure custom data\n   */\n  function setReserveInterestRateData(address asset, bytes calldata rateData) external;\n\n  /**\n   * @notice Pauses or unpauses all the protocol reserves. In the paused state all the protocol interactions\n   * are suspended.\n   * @param paused True if protocol needs to be paused, false otherwise\n   * @param gracePeriod Count of seconds after unpause during which liquidations will not be available\n   *   - Only applicable whenever unpausing (`paused` as false)\n   *   - Passing 0 means no grace period\n   *   - Capped to maximum MAX_GRACE_PERIOD\n   */\n  function setPoolPause(bool paused, uint40 gracePeriod) external;\n\n  /**\n   * @notice Pauses or unpauses all the protocol reserves. In the paused state all the protocol interactions\n   * are suspended.\n   * @dev Version with no grace period\n   * @param paused True if protocol needs to be paused, false otherwise\n   */\n  function setPoolPause(bool paused) external;\n\n  /**\n   * @notice Updates the borrow cap of a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param newBorrowCap The new borrow cap of the reserve\n   */\n  function setBorrowCap(address asset, uint256 newBorrowCap) external;\n\n  /**\n   * @notice Updates the supply cap of a reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param newSupplyCap The new supply cap of the reserve\n   */\n  function setSupplyCap(address asset, uint256 newSupplyCap) external;\n\n  /**\n   * @notice Updates the liquidation protocol fee of reserve.\n   * @param asset The address of the underlying asset of the reserve\n   * @param newFee The new liquidation protocol fee of the reserve, expressed in bps\n   */\n  function setLiquidationProtocolFee(address asset, uint256 newFee) external;\n\n  /**\n   * @notice Enables/disables an asset to be borrowable in a selected eMode.\n   * @param asset The address of the underlying asset of the reserve\n   * @param categoryId The eMode categoryId\n   * @param borrowable True if the asset should be borrowable in the given eMode category, false otherwise.\n   */\n  function setAssetBorrowableInEMode(address asset, uint8 categoryId, bool borrowable) external;\n\n  /**\n   * @notice Enables/disables an asset to be collateral in a selected eMode.\n   * @param asset The address of the underlying asset of the reserve\n   * @param categoryId The eMode categoryId\n   * @param collateral True if the asset should be collateral in the given eMode category, false otherwise.\n   */\n  function setAssetCollateralInEMode(address asset, uint8 categoryId, bool collateral) external;\n\n  /**\n   * @notice Enables/disables an asset to be ltvzero in a selected eMode.\n   * @param asset The address of the underlying asset of the reserve\n   * @param categoryId The eMode categoryId\n   * @param ltvzero True if the asset should be ltvzero in the given eMode category, false otherwise.\n   */\n  function setAssetLtvzeroInEMode(address asset, uint8 categoryId, bool ltvzero) external;\n\n  /**\n   * @notice Sets the isolated flag of an eMode category.\n   * @param categoryId The eMode category id\n   * @param isolated When true, users with non-eMode collateral enabled cannot enter the eMode,\n   *  and non-eMode assets get LTV=0 (liquidation threshold is unaffected, preserving health factor of existing positions)\n   */\n  function setEModeCategoryIsolated(uint8 categoryId, bool isolated) external;\n\n  /**\n   * @notice Adds a new efficiency mode (eMode) category or alters a existing one.\n   * @param categoryId The id of the category to be configured\n   * @param ltv The ltv associated with the category\n   * @param liquidationThreshold The liquidation threshold associated with the category\n   * @param liquidationBonus The liquidation bonus associated with the category\n   * @param label A label identifying the category\n   * @param isolated When true, users with non-eMode collateral enabled cannot enter the eMode,\n   *  and non-eMode assets get LTV=0 (liquidation threshold is unaffected, preserving health factor of existing positions)\n   */\n  function setEModeCategory(\n    uint8 categoryId,\n    uint16 ltv,\n    uint16 liquidationThreshold,\n    uint16 liquidationBonus,\n    string calldata label,\n    bool isolated\n  ) external;\n\n  /**\n   * @notice Updates the flash loan premium. All this premium\n   *         will be collected by the treasury.\n   * @dev Expressed in bps\n   * @dev The premium is calculated on the total amount borrowed\n   * @param newFlashloanPremium The flashloan premium\n   */\n  function updateFlashloanPremium(uint128 newFlashloanPremium) external;\n\n  /**\n   * @notice Gets pending ltv value\n   * @param asset The address of the underlying asset of the reserve\n   */\n  function getPendingLtv(address asset) external view returns (uint256);\n\n  /**\n   * @notice Gets the maximum liquidations grace period allowed, in seconds\n   */\n  function MAX_GRACE_PERIOD() external view returns (uint40);\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IPoolDataProvider.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPoolAddressesProvider} from './IPoolAddressesProvider.sol';\nimport {IPool} from './IPool.sol';\n\n/**\n * @title IPoolDataProvider\n * @author Aave\n * @notice Defines the basic interface of a PoolDataProvider\n */\ninterface IPoolDataProvider {\n  struct TokenData {\n    string symbol;\n    address tokenAddress;\n  }\n\n  /**\n   * @notice Returns the address for the PoolAddressesProvider contract.\n   * @return The address for the PoolAddressesProvider contract\n   */\n  function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);\n\n  /**\n   * @notice Returns the address for the Pool contract.\n   * @return The address for the Pool contract\n   */\n  function POOL() external view returns (IPool);\n\n  /**\n   * @notice Returns the list of the existing reserves in the pool.\n   * @dev Handling MKR and ETH in a different way since they do not have standard `symbol` functions.\n   * @return The list of reserves, pairs of symbols and addresses\n   */\n  function getAllReservesTokens() external view returns (TokenData[] memory);\n\n  /**\n   * @notice Returns the list of the existing ATokens in the pool.\n   * @return The list of ATokens, pairs of symbols and addresses\n   */\n  function getAllATokens() external view returns (TokenData[] memory);\n\n  /**\n   * @notice Returns the configuration data of the reserve\n   * @dev Not returning borrow and supply caps for compatibility, nor pause flag\n   * @param asset The address of the underlying asset of the reserve\n   * @return decimals The number of decimals of the reserve\n   * @return ltv The ltv of the reserve\n   * @return liquidationThreshold The liquidationThreshold of the reserve\n   * @return liquidationBonus The liquidationBonus of the reserve\n   * @return reserveFactor The reserveFactor of the reserve\n   * @return usageAsCollateralEnabled True if the usage as collateral is enabled, false otherwise\n   * @return borrowingEnabled True if borrowing is enabled, false otherwise\n   * @return stableBorrowRateEnabled True if stable rate borrowing is enabled, false otherwise\n   * @return isActive True if it is active, false otherwise\n   * @return isFrozen True if it is frozen, false otherwise\n   */\n  function getReserveConfigurationData(\n    address asset\n  )\n    external\n    view\n    returns (\n      uint256 decimals,\n      uint256 ltv,\n      uint256 liquidationThreshold,\n      uint256 liquidationBonus,\n      uint256 reserveFactor,\n      bool usageAsCollateralEnabled,\n      bool borrowingEnabled,\n      bool stableBorrowRateEnabled,\n      bool isActive,\n      bool isFrozen\n    );\n\n  /**\n   * @notice Returns the caps parameters of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return borrowCap The borrow cap of the reserve\n   * @return supplyCap The supply cap of the reserve\n   */\n  function getReserveCaps(\n    address asset\n  ) external view returns (uint256 borrowCap, uint256 supplyCap);\n\n  /**\n   * @notice Returns if the pool is paused\n   * @param asset The address of the underlying asset of the reserve\n   * @return isPaused True if the pool is paused, false otherwise\n   */\n  function getPaused(address asset) external view returns (bool isPaused);\n\n  /**\n   * @notice Returns the siloed borrowing flag\n   * @param asset The address of the underlying asset of the reserve\n   * @return false, DEPRECATED in v3.7.0\n   */\n  function getSiloedBorrowing(address asset) external view returns (bool);\n\n  /**\n   * @notice Returns the protocol fee on the liquidation bonus\n   * @param asset The address of the underlying asset of the reserve\n   * @return The protocol fee on liquidation\n   */\n  function getLiquidationProtocolFee(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the unbacked mint cap of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return 0, DEPRECATED in v3.4.0\n   */\n  function getUnbackedMintCap(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the debt ceiling of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return 0, DEPRECATED in v3.7.0\n   */\n  function getDebtCeiling(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the debt ceiling decimals\n   * @return 0, DEPRECATED in v3.7.0\n   */\n  function getDebtCeilingDecimals() external pure returns (uint256);\n\n  /**\n   * @notice Returns the reserve data\n   * @param asset The address of the underlying asset of the reserve\n   * @return unbacked The amount of unbacked tokens\n   * @return accruedToTreasuryScaled The scaled amount of tokens accrued to treasury that is to be minted\n   * @return totalAToken The total supply of the aToken\n   * @return totalStableDebt The total stable debt of the reserve\n   * @return totalVariableDebt The total variable debt of the reserve\n   * @return liquidityRate The liquidity rate of the reserve\n   * @return variableBorrowRate The variable borrow rate of the reserve\n   * @return stableBorrowRate The stable borrow rate of the reserve\n   * @return averageStableBorrowRate The average stable borrow rate of the reserve\n   * @return liquidityIndex The liquidity index of the reserve\n   * @return variableBorrowIndex The variable borrow index of the reserve\n   * @return lastUpdateTimestamp The timestamp of the last update of the reserve\n   */\n  function getReserveData(\n    address asset\n  )\n    external\n    view\n    returns (\n      uint256 unbacked,\n      uint256 accruedToTreasuryScaled,\n      uint256 totalAToken,\n      uint256 totalStableDebt,\n      uint256 totalVariableDebt,\n      uint256 liquidityRate,\n      uint256 variableBorrowRate,\n      uint256 stableBorrowRate,\n      uint256 averageStableBorrowRate,\n      uint256 liquidityIndex,\n      uint256 variableBorrowIndex,\n      uint40 lastUpdateTimestamp\n    );\n\n  /**\n   * @notice Returns the total supply of aTokens for a given asset\n   * @param asset The address of the underlying asset of the reserve\n   * @return The total supply of the aToken\n   */\n  function getATokenTotalSupply(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the total debt for a given asset\n   * @param asset The address of the underlying asset of the reserve\n   * @return The total debt for asset\n   */\n  function getTotalDebt(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the user data in a reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @param user The address of the user\n   * @return currentATokenBalance The current AToken balance of the user\n   * @return currentStableDebt The current stable debt of the user\n   * @return currentVariableDebt The current variable debt of the user\n   * @return principalStableDebt The principal stable debt of the user\n   * @return scaledVariableDebt The scaled variable debt of the user\n   * @return stableBorrowRate The stable borrow rate of the user\n   * @return liquidityRate The liquidity rate of the reserve\n   * @return stableRateLastUpdated The timestamp of the last update of the user stable rate\n   * @return usageAsCollateralEnabled True if the user is using the asset as collateral, false\n   *         otherwise\n   */\n  function getUserReserveData(\n    address asset,\n    address user\n  )\n    external\n    view\n    returns (\n      uint256 currentATokenBalance,\n      uint256 currentStableDebt,\n      uint256 currentVariableDebt,\n      uint256 principalStableDebt,\n      uint256 scaledVariableDebt,\n      uint256 stableBorrowRate,\n      uint256 liquidityRate,\n      uint40 stableRateLastUpdated,\n      bool usageAsCollateralEnabled\n    );\n\n  /**\n   * @notice Returns the token addresses of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return aTokenAddress The AToken address of the reserve\n   * @return stableDebtTokenAddress DEPRECATED in v3.2.0\n   * @return variableDebtTokenAddress The VariableDebtToken address of the reserve\n   */\n  function getReserveTokensAddresses(\n    address asset\n  )\n    external\n    view\n    returns (\n      address aTokenAddress,\n      address stableDebtTokenAddress,\n      address variableDebtTokenAddress\n    );\n\n  /**\n   * @notice Returns the address of the Interest Rate strategy\n   * @param asset The address of the underlying asset of the reserve\n   * @return irStrategyAddress The address of the Interest Rate strategy\n   */\n  function getInterestRateStrategyAddress(\n    address asset\n  ) external view returns (address irStrategyAddress);\n\n  /**\n   * @notice Returns whether the reserve has FlashLoans enabled or disabled\n   * @param asset The address of the underlying asset of the reserve\n   * @return True if FlashLoans are enabled, false otherwise\n   */\n  function getFlashLoanEnabled(address asset) external view returns (bool);\n\n  /**\n   * @notice Returns whether virtual accounting is enabled/not for a reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return True, DEPRECATED in v3.4.0 as all reserves have virtual accounting set as active\n   */\n  function getIsVirtualAccActive(address asset) external view returns (bool);\n\n  /**\n   * @notice Returns the virtual underlying balance of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return The reserve virtual underlying balance\n   */\n  function getVirtualUnderlyingBalance(address asset) external view returns (uint256);\n\n  /**\n   * @notice Returns the deficit of the reserve\n   * @param asset The address of the underlying asset of the reserve\n   * @return The reserve deficit\n   */\n  function getReserveDeficit(address asset) external view returns (uint256);\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/interfaces/IReserveInterestRateStrategy.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {DataTypes} from '../protocol/libraries/types/DataTypes.sol';\n\n/**\n * @title IReserveInterestRateStrategy\n * @author BGD Labs\n * @notice Basic interface for any rate strategy used by the Aave protocol\n */\ninterface IReserveInterestRateStrategy {\n  /**\n   * @notice Sets interest rate data for an Aave rate strategy\n   * @param reserve The reserve to update\n   * @param rateData The abi encoded reserve interest rate data to apply to the given reserve\n   *   Abstracted this way as rate strategies can be custom\n   */\n  function setInterestRateParams(address reserve, bytes calldata rateData) external;\n\n  /**\n   * @notice Calculates the interest rates depending on the reserve's state and configurations\n   * @param params The parameters needed to calculate interest rates\n   * @return liquidityRate The liquidity rate expressed in ray\n   * @return variableBorrowRate The variable borrow rate expressed in ray\n   */\n  function calculateInterestRates(\n    DataTypes.CalculateInterestRatesParams memory params\n  ) external view returns (uint256, uint256);\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/misc/aave-upgradeability/BaseImmutableAdminUpgradeabilityProxy.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.10;\n\nimport {BaseUpgradeabilityProxy} from '../../dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol';\n\n/**\n * @title BaseImmutableAdminUpgradeabilityProxy\n * @author Aave, inspired by the OpenZeppelin upgradeability proxy pattern\n * @notice This contract combines an upgradeability proxy with an authorization\n * mechanism for administrative tasks.\n * @dev The admin role is stored in an immutable, which helps saving transactions costs\n * All external functions in this contract must be guarded by the\n * `ifAdmin` modifier. See ethereum/solidity#3864 for a Solidity\n * feature proposal that would enable this to be done automatically.\n */\ncontract BaseImmutableAdminUpgradeabilityProxy is BaseUpgradeabilityProxy {\n  address internal immutable _admin;\n\n  /**\n   * @dev Constructor.\n   * @param admin_ The address of the admin\n   */\n  constructor(address admin_) {\n    _admin = admin_;\n  }\n\n  modifier ifAdmin() {\n    if (msg.sender == _admin) {\n      _;\n    } else {\n      _fallback();\n    }\n  }\n\n  /**\n   * @notice Return the admin address\n   * @return The address of the proxy admin.\n   */\n  function admin() external ifAdmin returns (address) {\n    return _admin;\n  }\n\n  /**\n   * @notice Return the implementation address\n   * @return The address of the implementation.\n   */\n  function implementation() external ifAdmin returns (address) {\n    return _implementation();\n  }\n\n  /**\n   * @notice Upgrade the backing implementation of the proxy.\n   * @dev Only the admin can call this function.\n   * @param newImplementation The address of the new implementation.\n   */\n  function upgradeTo(address newImplementation) external ifAdmin {\n    _upgradeTo(newImplementation);\n  }\n\n  /**\n   * @notice Upgrade the backing implementation of the proxy and call a function\n   * on the new implementation.\n   * @dev This is useful to initialize the proxied contract.\n   * @param newImplementation The address of the new implementation.\n   * @param data Data to send as msg.data in the low level call.\n   * It should include the signature and the parameters of the function to be called, as described in\n   * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.\n   */\n  function upgradeToAndCall(\n    address newImplementation,\n    bytes calldata data\n  ) external payable ifAdmin {\n    _upgradeTo(newImplementation);\n    (bool success, ) = newImplementation.delegatecall(data);\n    require(success);\n  }\n\n  /**\n   * @notice Only fall back when the sender is not the admin.\n   */\n  function _willFallback() internal virtual override {\n    require(msg.sender != _admin, 'Cannot call fallback function from the proxy admin');\n    super._willFallback();\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/misc/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.10;\n\nimport {InitializableUpgradeabilityProxy} from '../../dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol';\nimport {Proxy} from '../../dependencies/openzeppelin/upgradeability/Proxy.sol';\nimport {BaseImmutableAdminUpgradeabilityProxy} from './BaseImmutableAdminUpgradeabilityProxy.sol';\n\n/**\n * @title InitializableAdminUpgradeabilityProxy\n * @author Aave\n * @dev Extends BaseAdminUpgradeabilityProxy with an initializer function\n */\ncontract InitializableImmutableAdminUpgradeabilityProxy is\n  BaseImmutableAdminUpgradeabilityProxy,\n  InitializableUpgradeabilityProxy\n{\n  /**\n   * @dev Constructor.\n   * @param admin The address of the admin\n   */\n  constructor(address admin) BaseImmutableAdminUpgradeabilityProxy(admin) {\n    // Intentionally left blank\n  }\n\n  /// @inheritdoc BaseImmutableAdminUpgradeabilityProxy\n  function _willFallback() internal override(BaseImmutableAdminUpgradeabilityProxy, Proxy) {\n    BaseImmutableAdminUpgradeabilityProxy._willFallback();\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/configuration/EModeConfiguration.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Errors} from '../helpers/Errors.sol';\nimport {ReserveConfiguration} from './ReserveConfiguration.sol';\n\n/**\n * @title EModeConfiguration library\n * @author BGD Labs\n * @notice Implements the bitmap logic to handle the eMode configuration\n */\nlibrary EModeConfiguration {\n  /**\n   * @notice Sets a bit in a given bitmap that represents the reserve index range\n   * @dev The supplied bitmap is supposed to be a uint128 in which each bit represents a reserve\n   * @param bitmap The bitmap\n   * @param reserveIndex The index of the reserve in the bitmap\n   * @param enabled True if the reserveIndex should be enabled on the bitmap, false otherwise\n   * @return The altered bitmap\n   */\n  function setReserveBitmapBit(\n    uint128 bitmap,\n    uint256 reserveIndex,\n    bool enabled\n  ) internal pure returns (uint128) {\n    unchecked {\n      require(reserveIndex < ReserveConfiguration.MAX_RESERVES_COUNT, Errors.InvalidReserveIndex());\n      // forge-lint: disable-next-line(incorrect-shift, unsafe-typecast)\n      uint128 bit = uint128(1 << reserveIndex);\n      if (enabled) {\n        return bitmap | bit;\n      } else {\n        return bitmap & ~bit;\n      }\n    }\n  }\n\n  /**\n   * @notice Validates if a reserveIndex is flagged as enabled on a given bitmap\n   * @param bitmap The bitmap\n   * @param reserveIndex The index of the reserve in the bitmap\n   * @return True if the reserveindex is flagged true\n   */\n  function isReserveEnabledOnBitmap(\n    uint128 bitmap,\n    uint256 reserveIndex\n  ) internal pure returns (bool) {\n    unchecked {\n      require(reserveIndex < ReserveConfiguration.MAX_RESERVES_COUNT, Errors.InvalidReserveIndex());\n      return (bitmap >> reserveIndex) & 1 != 0;\n    }\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/configuration/ReserveConfiguration.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Errors} from '../helpers/Errors.sol';\nimport {DataTypes} from '../types/DataTypes.sol';\n\n/**\n * @title ReserveConfiguration library\n * @author Aave\n * @notice Implements the bitmap logic to handle the reserve configuration\n */\nlibrary ReserveConfiguration {\n  uint256 internal constant LTV_MASK =                       0x000000000000000000000000000000000000000000000000000000000000FFFF; // prettier-ignore\n  uint256 internal constant LIQUIDATION_THRESHOLD_MASK =     0x00000000000000000000000000000000000000000000000000000000FFFF0000; // prettier-ignore\n  uint256 internal constant LIQUIDATION_BONUS_MASK =         0x0000000000000000000000000000000000000000000000000000FFFF00000000; // prettier-ignore\n  uint256 internal constant DECIMALS_MASK =                  0x00000000000000000000000000000000000000000000000000FF000000000000; // prettier-ignore\n  uint256 internal constant ACTIVE_MASK =                    0x0000000000000000000000000000000000000000000000000100000000000000; // prettier-ignore\n  uint256 internal constant FROZEN_MASK =                    0x0000000000000000000000000000000000000000000000000200000000000000; // prettier-ignore\n  uint256 internal constant BORROWING_MASK =                 0x0000000000000000000000000000000000000000000000000400000000000000; // prettier-ignore\n  // @notice there is an unoccupied hole of 1 bit at position 59 from pre 3.2 stableBorrowRateEnabled\n  uint256 internal constant PAUSED_MASK =                    0x0000000000000000000000000000000000000000000000001000000000000000; // prettier-ignore\n  // @notice there is an unoccupied hole of 2 bit at position 61-62 from pre 3.7 borrowableInIsolation and siloedBorrowing\n  uint256 internal constant FLASHLOAN_ENABLED_MASK =         0x0000000000000000000000000000000000000000000000008000000000000000; // prettier-ignore\n  uint256 internal constant RESERVE_FACTOR_MASK =            0x00000000000000000000000000000000000000000000FFFF0000000000000000; // prettier-ignore\n  uint256 internal constant BORROW_CAP_MASK =                0x00000000000000000000000000000000000FFFFFFFFF00000000000000000000; // prettier-ignore\n  uint256 internal constant SUPPLY_CAP_MASK =                0x00000000000000000000000000FFFFFFFFF00000000000000000000000000000; // prettier-ignore\n  uint256 internal constant LIQUIDATION_PROTOCOL_FEE_MASK =  0x0000000000000000000000FFFF00000000000000000000000000000000000000; // prettier-ignore\n  //@notice there is an unoccupied hole of 8 bits from 168 to 175 left from pre 3.2 eModeCategory\n  //@notice there is an unoccupied hole of 34 bits from 176 to 211 left from pre 3.4 unbackedMintCap\n  //@notice there is an unoccupied hole of 40 bits from 212 to 251 left from pre 3.7 debtCeiling\n  //@notice DEPRECATED: in v3.4 all reserves have virtual accounting enabled\n  uint256 internal constant VIRTUAL_ACC_ACTIVE_MASK =        0x1000000000000000000000000000000000000000000000000000000000000000; // prettier-ignore\n\n  /// @dev For the LTV, the start bit is 0 (up to 15), hence no bitshifting is needed\n  uint256 internal constant LIQUIDATION_THRESHOLD_START_BIT_POSITION = 16;\n  uint256 internal constant LIQUIDATION_BONUS_START_BIT_POSITION = 32;\n  uint256 internal constant RESERVE_DECIMALS_START_BIT_POSITION = 48;\n  uint256 internal constant IS_ACTIVE_START_BIT_POSITION = 56;\n  uint256 internal constant IS_FROZEN_START_BIT_POSITION = 57;\n  uint256 internal constant BORROWING_ENABLED_START_BIT_POSITION = 58;\n  uint256 internal constant IS_PAUSED_START_BIT_POSITION = 60;\n  //@notice there is an unoccupied hole of 1 bits at 61 left from pre 3.7 borrowableInIsolation\n  //@notice there is an unoccupied hole of 1 bits at 62 left from pre 3.7 siloedBorrowing\n  uint256 internal constant FLASHLOAN_ENABLED_START_BIT_POSITION = 63;\n  uint256 internal constant RESERVE_FACTOR_START_BIT_POSITION = 64;\n  uint256 internal constant BORROW_CAP_START_BIT_POSITION = 80;\n  uint256 internal constant SUPPLY_CAP_START_BIT_POSITION = 116;\n  uint256 internal constant LIQUIDATION_PROTOCOL_FEE_START_BIT_POSITION = 152;\n  //@notice there is an unoccupied hole of 8 bits from 168 to 175 left from pre 3.2 eModeCategory\n  //@notice there is an unoccupied hole of 34 bits from 176 to 211 left from pre 3.4 unbackedMintCap\n  //@notice there is an unoccupied hole of 40 bits from 212 to 251 left from pre 3.7 debtCeiling\n  //@notice DEPRECATED: in v3.4 all reserves have virtual accounting enabled\n  uint256 internal constant VIRTUAL_ACC_START_BIT_POSITION = 252;\n\n  uint256 internal constant MAX_VALID_LTV = 65535;\n  uint256 internal constant MAX_VALID_LIQUIDATION_THRESHOLD = 65535;\n  uint256 internal constant MAX_VALID_LIQUIDATION_BONUS = 65535;\n  uint256 internal constant MAX_VALID_DECIMALS = 255;\n  uint256 internal constant MAX_VALID_RESERVE_FACTOR = 65535;\n  uint256 internal constant MAX_VALID_BORROW_CAP = 68719476735;\n  uint256 internal constant MAX_VALID_SUPPLY_CAP = 68719476735;\n  uint256 internal constant MAX_VALID_LIQUIDATION_PROTOCOL_FEE = 65535;\n\n  uint16 public constant MAX_RESERVES_COUNT = 128;\n\n  /**\n   * @notice Sets the Loan to Value of the reserve\n   * @param self The reserve configuration\n   * @param ltv The new ltv\n   */\n  function setLtv(DataTypes.ReserveConfigurationMap memory self, uint256 ltv) internal pure {\n    require(ltv <= MAX_VALID_LTV, Errors.InvalidLtv());\n\n    self.data = (self.data & ~LTV_MASK) | ltv;\n  }\n\n  /**\n   * @notice Gets the Loan to Value of the reserve\n   * @param self The reserve configuration\n   * @return The loan to value\n   */\n  function getLtv(DataTypes.ReserveConfigurationMap memory self) internal pure returns (uint256) {\n    return self.data & LTV_MASK;\n  }\n\n  /**\n   * @notice Sets the liquidation threshold of the reserve\n   * @param self The reserve configuration\n   * @param threshold The new liquidation threshold\n   */\n  function setLiquidationThreshold(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 threshold\n  ) internal pure {\n    require(threshold <= MAX_VALID_LIQUIDATION_THRESHOLD, Errors.InvalidLiquidationThreshold());\n\n    self.data =\n      (self.data & ~LIQUIDATION_THRESHOLD_MASK) |\n      (threshold << LIQUIDATION_THRESHOLD_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the liquidation threshold of the reserve\n   * @param self The reserve configuration\n   * @return The liquidation threshold\n   */\n  function getLiquidationThreshold(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return (self.data & LIQUIDATION_THRESHOLD_MASK) >> LIQUIDATION_THRESHOLD_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the liquidation bonus of the reserve\n   * @param self The reserve configuration\n   * @param bonus The new liquidation bonus\n   */\n  function setLiquidationBonus(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 bonus\n  ) internal pure {\n    require(bonus <= MAX_VALID_LIQUIDATION_BONUS, Errors.InvalidLiquidationBonus());\n\n    self.data =\n      (self.data & ~LIQUIDATION_BONUS_MASK) |\n      (bonus << LIQUIDATION_BONUS_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the liquidation bonus of the reserve\n   * @param self The reserve configuration\n   * @return The liquidation bonus\n   */\n  function getLiquidationBonus(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return (self.data & LIQUIDATION_BONUS_MASK) >> LIQUIDATION_BONUS_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the decimals of the underlying asset of the reserve\n   * @param self The reserve configuration\n   * @param decimals The decimals\n   */\n  function setDecimals(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 decimals\n  ) internal pure {\n    require(decimals <= MAX_VALID_DECIMALS, Errors.InvalidDecimals());\n\n    self.data = (self.data & ~DECIMALS_MASK) | (decimals << RESERVE_DECIMALS_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the decimals of the underlying asset of the reserve\n   * @param self The reserve configuration\n   * @return The decimals of the asset\n   */\n  function getDecimals(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return (self.data & DECIMALS_MASK) >> RESERVE_DECIMALS_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the active state of the reserve\n   * @param self The reserve configuration\n   * @param active The active state\n   */\n  function setActive(DataTypes.ReserveConfigurationMap memory self, bool active) internal pure {\n    self.data =\n      (self.data & ~ACTIVE_MASK) |\n      (uint256(active ? 1 : 0) << IS_ACTIVE_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the active state of the reserve\n   * @param self The reserve configuration\n   * @return The active state\n   */\n  function getActive(DataTypes.ReserveConfigurationMap memory self) internal pure returns (bool) {\n    return (self.data & ACTIVE_MASK) != 0;\n  }\n\n  /**\n   * @notice Sets the frozen state of the reserve\n   * @param self The reserve configuration\n   * @param frozen The frozen state\n   */\n  function setFrozen(DataTypes.ReserveConfigurationMap memory self, bool frozen) internal pure {\n    self.data =\n      (self.data & ~FROZEN_MASK) |\n      (uint256(frozen ? 1 : 0) << IS_FROZEN_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the frozen state of the reserve\n   * @param self The reserve configuration\n   * @return The frozen state\n   */\n  function getFrozen(DataTypes.ReserveConfigurationMap memory self) internal pure returns (bool) {\n    return (self.data & FROZEN_MASK) != 0;\n  }\n\n  /**\n   * @notice Sets the paused state of the reserve\n   * @param self The reserve configuration\n   * @param paused The paused state\n   */\n  function setPaused(DataTypes.ReserveConfigurationMap memory self, bool paused) internal pure {\n    self.data =\n      (self.data & ~PAUSED_MASK) |\n      (uint256(paused ? 1 : 0) << IS_PAUSED_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the paused state of the reserve\n   * @param self The reserve configuration\n   * @return The paused state\n   */\n  function getPaused(DataTypes.ReserveConfigurationMap memory self) internal pure returns (bool) {\n    return (self.data & PAUSED_MASK) != 0;\n  }\n\n  /**\n   * @notice Enables or disables borrowing on the reserve\n   * @param self The reserve configuration\n   * @param enabled True if the borrowing needs to be enabled, false otherwise\n   */\n  function setBorrowingEnabled(\n    DataTypes.ReserveConfigurationMap memory self,\n    bool enabled\n  ) internal pure {\n    self.data =\n      (self.data & ~BORROWING_MASK) |\n      (uint256(enabled ? 1 : 0) << BORROWING_ENABLED_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the borrowing state of the reserve\n   * @param self The reserve configuration\n   * @return The borrowing state\n   */\n  function getBorrowingEnabled(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (bool) {\n    return (self.data & BORROWING_MASK) != 0;\n  }\n\n  /**\n   * @notice Sets the reserve factor of the reserve\n   * @param self The reserve configuration\n   * @param reserveFactor The reserve factor\n   */\n  function setReserveFactor(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 reserveFactor\n  ) internal pure {\n    require(reserveFactor <= MAX_VALID_RESERVE_FACTOR, Errors.InvalidReserveFactor());\n\n    self.data =\n      (self.data & ~RESERVE_FACTOR_MASK) |\n      (reserveFactor << RESERVE_FACTOR_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the reserve factor of the reserve\n   * @param self The reserve configuration\n   * @return The reserve factor\n   */\n  function getReserveFactor(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return (self.data & RESERVE_FACTOR_MASK) >> RESERVE_FACTOR_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the borrow cap of the reserve\n   * @param self The reserve configuration\n   * @param borrowCap The borrow cap\n   */\n  function setBorrowCap(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 borrowCap\n  ) internal pure {\n    require(borrowCap <= MAX_VALID_BORROW_CAP, Errors.InvalidBorrowCap());\n\n    self.data = (self.data & ~BORROW_CAP_MASK) | (borrowCap << BORROW_CAP_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the borrow cap of the reserve\n   * @param self The reserve configuration\n   * @return The borrow cap\n   */\n  function getBorrowCap(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return (self.data & BORROW_CAP_MASK) >> BORROW_CAP_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the supply cap of the reserve\n   * @param self The reserve configuration\n   * @param supplyCap The supply cap\n   */\n  function setSupplyCap(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 supplyCap\n  ) internal pure {\n    require(supplyCap <= MAX_VALID_SUPPLY_CAP, Errors.InvalidSupplyCap());\n\n    self.data = (self.data & ~SUPPLY_CAP_MASK) | (supplyCap << SUPPLY_CAP_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the supply cap of the reserve\n   * @param self The reserve configuration\n   * @return The supply cap\n   */\n  function getSupplyCap(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return (self.data & SUPPLY_CAP_MASK) >> SUPPLY_CAP_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the liquidation protocol fee of the reserve\n   * @param self The reserve configuration\n   * @param liquidationProtocolFee The liquidation protocol fee\n   */\n  function setLiquidationProtocolFee(\n    DataTypes.ReserveConfigurationMap memory self,\n    uint256 liquidationProtocolFee\n  ) internal pure {\n    require(\n      liquidationProtocolFee <= MAX_VALID_LIQUIDATION_PROTOCOL_FEE,\n      Errors.InvalidLiquidationProtocolFee()\n    );\n\n    self.data =\n      (self.data & ~LIQUIDATION_PROTOCOL_FEE_MASK) |\n      (liquidationProtocolFee << LIQUIDATION_PROTOCOL_FEE_START_BIT_POSITION);\n  }\n\n  /**\n   * @dev Gets the liquidation protocol fee\n   * @param self The reserve configuration\n   * @return The liquidation protocol fee\n   */\n  function getLiquidationProtocolFee(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256) {\n    return\n      (self.data & LIQUIDATION_PROTOCOL_FEE_MASK) >> LIQUIDATION_PROTOCOL_FEE_START_BIT_POSITION;\n  }\n\n  /**\n   * @notice Sets the flashloanable flag for the reserve\n   * @param self The reserve configuration\n   * @param flashLoanEnabled True if the asset is flashloanable, false otherwise\n   */\n  function setFlashLoanEnabled(\n    DataTypes.ReserveConfigurationMap memory self,\n    bool flashLoanEnabled\n  ) internal pure {\n    self.data =\n      (self.data & ~FLASHLOAN_ENABLED_MASK) |\n      (uint256(flashLoanEnabled ? 1 : 0) << FLASHLOAN_ENABLED_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the flashloanable flag for the reserve\n   * @param self The reserve configuration\n   * @return The flashloanable flag\n   */\n  function getFlashLoanEnabled(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (bool) {\n    return (self.data & FLASHLOAN_ENABLED_MASK) != 0;\n  }\n\n  /**\n   * @notice Forcefully set the virtual account active state of the reserve to `true`\n   * @dev DEPRECATED: in v3.4 all reserves have virtual accounting enabled.\n   * The flag is carried along for backward compatibility with integrations directly querying the configuration.\n   * @param self The reserve configuration\n   */\n  function setVirtualAccActive(DataTypes.ReserveConfigurationMap memory self) internal pure {\n    self.data =\n      (self.data & ~VIRTUAL_ACC_ACTIVE_MASK) |\n      (uint256(1) << VIRTUAL_ACC_START_BIT_POSITION);\n  }\n\n  /**\n   * @notice Gets the configuration flags of the reserve\n   * @param self The reserve configuration\n   * @return The state flag representing active\n   * @return The state flag representing frozen\n   * @return The state flag representing borrowing enabled\n   * @return The state flag representing paused\n   */\n  function getFlags(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (bool, bool, bool, bool) {\n    uint256 dataLocal = self.data;\n\n    return (\n      (dataLocal & ACTIVE_MASK) != 0,\n      (dataLocal & FROZEN_MASK) != 0,\n      (dataLocal & BORROWING_MASK) != 0,\n      (dataLocal & PAUSED_MASK) != 0\n    );\n  }\n\n  /**\n   * @notice Gets the configuration parameters of the reserve from storage\n   * @param self The reserve configuration\n   * @return The state param representing ltv\n   * @return The state param representing liquidation threshold\n   * @return The state param representing liquidation bonus\n   * @return The state param representing reserve decimals\n   * @return The state param representing reserve factor\n   */\n  function getParams(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256, uint256, uint256, uint256, uint256) {\n    uint256 dataLocal = self.data;\n\n    return (\n      dataLocal & LTV_MASK,\n      (dataLocal & LIQUIDATION_THRESHOLD_MASK) >> LIQUIDATION_THRESHOLD_START_BIT_POSITION,\n      (dataLocal & LIQUIDATION_BONUS_MASK) >> LIQUIDATION_BONUS_START_BIT_POSITION,\n      (dataLocal & DECIMALS_MASK) >> RESERVE_DECIMALS_START_BIT_POSITION,\n      (dataLocal & RESERVE_FACTOR_MASK) >> RESERVE_FACTOR_START_BIT_POSITION\n    );\n  }\n\n  /**\n   * @notice Gets the caps parameters of the reserve from storage\n   * @param self The reserve configuration\n   * @return The state param representing borrow cap\n   * @return The state param representing supply cap.\n   */\n  function getCaps(\n    DataTypes.ReserveConfigurationMap memory self\n  ) internal pure returns (uint256, uint256) {\n    uint256 dataLocal = self.data;\n\n    return (\n      (dataLocal & BORROW_CAP_MASK) >> BORROW_CAP_START_BIT_POSITION,\n      (dataLocal & SUPPLY_CAP_MASK) >> SUPPLY_CAP_START_BIT_POSITION\n    );\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/helpers/Errors.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/**\n * @title Errors library\n * @author Aave\n * @notice Defines the error messages emitted by the different contracts of the Aave protocol\n */\nlibrary Errors {\n  error CallerNotPoolAdmin(); // 'The caller of the function is not a pool admin'\n  error CallerNotPoolOrEmergencyAdmin(); // 'The caller of the function is not a pool or emergency admin'\n  error CallerNotRiskOrPoolAdmin(); // 'The caller of the function is not a risk or pool admin'\n  error CallerNotAssetListingOrPoolAdmin(); // 'The caller of the function is not an asset listing or pool admin'\n  error AddressesProviderNotRegistered(); // 'Pool addresses provider is not registered'\n  error InvalidAddressesProviderId(); // 'Invalid id for the pool addresses provider'\n  error NotContract(); // 'Address is not a contract'\n  error CallerNotPoolConfigurator(); // 'The caller of the function is not the pool configurator'\n  error CallerNotAToken(); // 'The caller of the function is not an AToken'\n  error InvalidAddressesProvider(); // 'The address of the pool addresses provider is invalid'\n  error InvalidFlashloanExecutorReturn(); // 'Invalid return value of the flashloan executor function'\n  error ReserveAlreadyAdded(); // 'Reserve has already been added to reserve list'\n  error NoMoreReservesAllowed(); // 'Maximum amount of reserves in the pool reached'\n  error EModeCategoryReserved(); // 'Zero eMode category is reserved for volatile heterogeneous assets'\n  error ReserveLiquidityNotZero(); // 'The liquidity of the reserve needs to be 0'\n  error FlashloanPremiumInvalid(); // 'Invalid flashloan premium'\n  error InvalidReserveParams(); // 'Invalid risk parameters for the reserve'\n  error InvalidEmodeCategoryParams(); // 'Invalid risk parameters for the eMode category'\n  error CallerMustBePool(); // 'The caller of this function must be a pool'\n  error InvalidMintAmount(); // 'Invalid amount to mint'\n  error InvalidBurnAmount(); // 'Invalid amount to burn'\n  error InvalidAmount(); // 'Amount must be greater than 0'\n  error ReserveInactive(); // 'Action requires an active reserve'\n  error ReserveFrozen(); // 'Action cannot be performed because the reserve is frozen'\n  error ReservePaused(); // 'Action cannot be performed because the reserve is paused'\n  error BorrowingNotEnabled(); // 'Borrowing is not enabled'\n  error NotEnoughAvailableUserBalance(); // 'User cannot withdraw more than the available balance'\n  error InvalidInterestRateModeSelected(); // 'Invalid interest rate mode selected'\n  error HealthFactorLowerThanLiquidationThreshold(); // 'Health factor is below the liquidation threshold'\n  error CollateralCannotCoverNewBorrow(); // 'There is not enough collateral to cover a new borrow'\n  error NoDebtOfSelectedType(); // 'For repayment of a specific type of debt, the user needs to have debt that type'\n  error NoExplicitAmountToRepayOnBehalf(); // 'To repay on behalf of a user an explicit amount to repay is needed'\n  error UnderlyingBalanceZero(); // 'The underlying balance needs to be greater than 0'\n  error HealthFactorNotBelowThreshold(); // 'Health factor is not below the threshold'\n  error CollateralCannotBeLiquidated(); // 'The collateral chosen cannot be liquidated'\n  error SpecifiedCurrencyNotBorrowedByUser(); // 'User did not borrow the specified currency'\n  error InconsistentFlashloanParams(); // 'Inconsistent flashloan parameters'\n  error BorrowCapExceeded(); // 'Borrow cap is exceeded'\n  error SupplyCapExceeded(); // 'Supply cap is exceeded'\n  error LtvValidationFailed(); // 'Ltv validation failed'\n  error InconsistentEModeCategory(); // 'Inconsistent eMode category'\n  error ReserveAlreadyInitialized(); // 'Reserve has already been initialized'\n  error UserHasAssetWithZeroLtv(); // 'User has asset with ltv being zero'\n  error InvalidLtv(); // 'Invalid ltv parameter for the reserve'\n  error InvalidLiquidationThreshold(); // 'Invalid liquidity threshold parameter for the reserve'\n  error InvalidLiquidationBonus(); // 'Invalid liquidity bonus parameter for the reserve'\n  error InvalidDecimals(); // 'Invalid decimals parameter of the underlying asset of the reserve'\n  error InvalidReserveFactor(); // 'Invalid reserve factor parameter for the reserve'\n  error InvalidBorrowCap(); // 'Invalid borrow cap for the reserve'\n  error InvalidSupplyCap(); // 'Invalid supply cap for the reserve'\n  error InvalidLiquidationProtocolFee(); // 'Invalid liquidation protocol fee for the reserve'\n  error InvalidReserveIndex(); // 'Invalid reserve index'\n  error AclAdminCannotBeZero(); // 'ACL admin cannot be set to the zero address'\n  error InconsistentParamsLength(); // 'Array parameters that should be equal length are not'\n  error ZeroAddressNotValid(); // 'Zero address not valid'\n  error InvalidExpiration(); // 'Invalid expiration'\n  error InvalidSignature(); // 'Invalid signature'\n  error OperationNotSupported(); // 'Operation not supported'\n  error AssetNotListed(); // 'Asset is not listed'\n  error InvalidOptimalUsageRatio(); // 'Invalid optimal usage ratio'\n  error UnderlyingCannotBeRescued(); // 'The underlying asset cannot be rescued'\n  error AddressesProviderAlreadyAdded(); // 'Reserve has already been added to reserve list'\n  error PoolAddressesDoNotMatch(); // 'The token implementation pool address and the pool address provided by the initializing pool do not match'\n\n  error ReserveDebtNotZero(); // the total debt of the reserve needs to be 0\n  error FlashloanDisabled(); // FlashLoaning for this asset is disabled\n  error InvalidMaxRate(); // The expect maximum borrow rate is invalid\n  error WithdrawToAToken(); // Withdrawing to the aToken is not allowed\n  error SupplyToAToken(); // Supplying to the aToken is not allowed\n  error Slope2MustBeGteSlope1(); // Variable interest rate slope 2 can not be lower than slope 1\n  error CallerNotRiskOrPoolOrEmergencyAdmin(); // 'The caller of the function is not a risk, pool or emergency admin'\n  error LiquidationGraceSentinelCheckFailed(); // 'Liquidation grace sentinel validation failed'\n  error InvalidGracePeriod(); // Grace period above a valid range\n  error InvalidFreezeState(); // Reserve is already in the passed freeze state\n  error InvalidLtvzeroState(); // Reserve is already in the passed ltvzero state\n  error NotBorrowableInEMode(); // Asset not borrowable in eMode\n  error CallerNotUmbrella(); // The caller of the function is not the umbrella contract\n  error ReserveNotInDeficit(); // The reserve is not in deficit\n  error MustNotLeaveDust(); // Below a certain threshold liquidators need to take the full position\n  error UserCannotHaveDebt(); // Thrown when a user tries to interact with a method that requires a position without debt\n  error SelfLiquidation(); // Thrown when a user tries to liquidate themselves\n  error CallerNotPositionManager(); // Thrown when the caller has not been enabled as a position manager of the on-behalf-of user\n  error InvalidCollateralInEmode(address reserve, uint256 categoryId); /// Thrown when trying to enter an eMode with an invalid collateral asset\n  error InvalidDebtInEmode(address reserve, uint256 categoryId); /// Thrown when trying to enter an eMode with an invalid debt asset\n  error MustBeEmodeCollateral(address reserve, uint256 categoryId); /// Thrown when trying to configure an asset as eMode-ltvzero that is not an eMode collateral\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/logic/ConfiguratorLogic.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.10;\n\nimport {IPool} from '../../../interfaces/IPool.sol';\nimport {IPoolConfigurator} from '../../../interfaces/IPoolConfigurator.sol';\nimport {IInitializableAToken} from '../../../interfaces/IInitializableAToken.sol';\nimport {IInitializableDebtToken} from '../../../interfaces/IInitializableDebtToken.sol';\nimport {InitializableImmutableAdminUpgradeabilityProxy} from '../../../misc/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.sol';\nimport {IReserveInterestRateStrategy} from '../../../interfaces/IReserveInterestRateStrategy.sol';\nimport {ReserveConfiguration} from '../configuration/ReserveConfiguration.sol';\nimport {DataTypes} from '../types/DataTypes.sol';\nimport {Errors} from '../helpers/Errors.sol';\nimport {ConfiguratorInputTypes} from '../types/ConfiguratorInputTypes.sol';\nimport {IERC20Metadata} from 'openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';\n\n/**\n * @title ConfiguratorLogic library\n * @author Aave\n * @notice Implements the functions to initialize reserves and update aTokens and debtTokens\n */\nlibrary ConfiguratorLogic {\n  using ReserveConfiguration for DataTypes.ReserveConfigurationMap;\n\n  /**\n   * @notice Initialize a reserve by creating and initializing aToken and variable debt token\n   * @dev Emits the `ReserveInitialized` event\n   * @param pool The Pool in which the reserve will be initialized\n   * @param input The needed parameters for the initialization\n   */\n  function executeInitReserve(\n    IPool pool,\n    ConfiguratorInputTypes.InitReserveInput calldata input\n  ) internal {\n    // It is an assumption that the asset listed is non-malicious, and the external call doesn't create re-entrancies\n    uint8 underlyingAssetDecimals = IERC20Metadata(input.underlyingAsset).decimals();\n    require(underlyingAssetDecimals > 5, Errors.InvalidDecimals());\n\n    address aTokenProxyAddress = _initTokenWithProxy(\n      input.aTokenImpl,\n      abi.encodeWithSelector(\n        IInitializableAToken.initialize.selector,\n        pool,\n        input.underlyingAsset,\n        underlyingAssetDecimals,\n        input.aTokenName,\n        input.aTokenSymbol,\n        input.params\n      )\n    );\n\n    address variableDebtTokenProxyAddress = _initTokenWithProxy(\n      input.variableDebtTokenImpl,\n      abi.encodeWithSelector(\n        IInitializableDebtToken.initialize.selector,\n        pool,\n        input.underlyingAsset,\n        underlyingAssetDecimals,\n        input.variableDebtTokenName,\n        input.variableDebtTokenSymbol,\n        input.params\n      )\n    );\n\n    pool.initReserve(input.underlyingAsset, aTokenProxyAddress, variableDebtTokenProxyAddress);\n\n    DataTypes.ReserveConfigurationMap memory currentConfig = DataTypes.ReserveConfigurationMap(0);\n\n    currentConfig.setDecimals(underlyingAssetDecimals);\n\n    currentConfig.setActive(true);\n    currentConfig.setPaused(false);\n    currentConfig.setFrozen(false);\n    currentConfig.setVirtualAccActive();\n\n    pool.setConfiguration(input.underlyingAsset, currentConfig);\n\n    address interestRateStrategyAddress = pool.RESERVE_INTEREST_RATE_STRATEGY();\n    IReserveInterestRateStrategy(interestRateStrategyAddress).setInterestRateParams(\n      input.underlyingAsset,\n      input.interestRateData\n    );\n\n    emit IPoolConfigurator.ReserveInitialized(\n      input.underlyingAsset,\n      aTokenProxyAddress,\n      address(0),\n      variableDebtTokenProxyAddress,\n      interestRateStrategyAddress\n    );\n  }\n\n  /**\n   * @notice Updates the aToken implementation and initializes it\n   * @dev Emits the `ATokenUpgraded` event\n   * @param cachedPool The Pool containing the reserve with the aToken\n   * @param input The parameters needed for the initialize call\n   */\n  function executeUpdateAToken(\n    IPool cachedPool,\n    ConfiguratorInputTypes.UpdateATokenInput calldata input\n  ) internal {\n    address aTokenAddress = cachedPool.getReserveAToken(input.asset);\n\n    uint256 decimals = cachedPool.getConfiguration(input.asset).getDecimals();\n\n    bytes memory encodedCall = abi.encodeWithSelector(\n      IInitializableAToken.initialize.selector,\n      cachedPool,\n      input.asset,\n      decimals,\n      input.name,\n      input.symbol,\n      input.params\n    );\n\n    _upgradeTokenImplementation(aTokenAddress, input.implementation, encodedCall);\n\n    emit IPoolConfigurator.ATokenUpgraded(input.asset, aTokenAddress, input.implementation);\n  }\n\n  /**\n   * @notice Updates the variable debt token implementation and initializes it\n   * @dev Emits the `VariableDebtTokenUpgraded` event\n   * @param cachedPool The Pool containing the reserve with the variable debt token\n   * @param input The parameters needed for the initialize call\n   */\n  function executeUpdateVariableDebtToken(\n    IPool cachedPool,\n    ConfiguratorInputTypes.UpdateDebtTokenInput calldata input\n  ) internal {\n    address variableDebtTokenAddress = cachedPool.getReserveVariableDebtToken(input.asset);\n\n    uint256 decimals = cachedPool.getConfiguration(input.asset).getDecimals();\n\n    bytes memory encodedCall = abi.encodeWithSelector(\n      IInitializableDebtToken.initialize.selector,\n      cachedPool,\n      input.asset,\n      decimals,\n      input.name,\n      input.symbol,\n      input.params\n    );\n\n    _upgradeTokenImplementation(variableDebtTokenAddress, input.implementation, encodedCall);\n\n    emit IPoolConfigurator.VariableDebtTokenUpgraded(\n      input.asset,\n      variableDebtTokenAddress,\n      input.implementation\n    );\n  }\n\n  /**\n   * @notice Creates a new proxy and initializes the implementation\n   * @param implementation The address of the implementation\n   * @param initParams The parameters that is passed to the implementation to initialize\n   * @return The address of initialized proxy\n   */\n  function _initTokenWithProxy(\n    address implementation,\n    bytes memory initParams\n  ) internal returns (address) {\n    InitializableImmutableAdminUpgradeabilityProxy proxy = new InitializableImmutableAdminUpgradeabilityProxy(\n        address(this)\n      );\n\n    proxy.initialize(implementation, initParams);\n\n    return address(proxy);\n  }\n\n  /**\n   * @notice Upgrades the implementation and makes call to the proxy\n   * @dev The call is used to initialize the new implementation.\n   * @param proxyAddress The address of the proxy\n   * @param implementation The address of the new implementation\n   * @param  initParams The parameters to the call after the upgrade\n   */\n  function _upgradeTokenImplementation(\n    address proxyAddress,\n    address implementation,\n    bytes memory initParams\n  ) internal {\n    InitializableImmutableAdminUpgradeabilityProxy proxy = InitializableImmutableAdminUpgradeabilityProxy(\n        payable(proxyAddress)\n      );\n\n    proxy.upgradeToAndCall(implementation, initParams);\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/math/PercentageMath.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.0;\n\n/**\n * @title PercentageMath library\n * @author Aave\n * @notice Provides functions to perform percentage calculations\n * @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision is indicated by PERCENTAGE_FACTOR\n * @dev Operations are rounded. If a value is >=.5, will be rounded up, otherwise rounded down.\n */\nlibrary PercentageMath {\n  // Maximum percentage factor (100.00%)\n  uint256 internal constant PERCENTAGE_FACTOR = 1e4;\n\n  // Half percentage factor (50.00%)\n  uint256 internal constant HALF_PERCENTAGE_FACTOR = 0.5e4;\n\n  /**\n   * @notice Executes a percentage multiplication\n   * @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328\n   * @param value The value of which the percentage needs to be calculated\n   * @param percentage The percentage of the value to be calculated\n   * @return result value percentmul percentage\n   */\n  function percentMul(uint256 value, uint256 percentage) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= (type(uint256).max - HALF_PERCENTAGE_FACTOR) / percentage\n    assembly {\n      if iszero(\n        or(\n          iszero(percentage),\n          iszero(gt(value, div(sub(not(0), HALF_PERCENTAGE_FACTOR), percentage)))\n        )\n      ) {\n        revert(0, 0)\n      }\n\n      result := div(add(mul(value, percentage), HALF_PERCENTAGE_FACTOR), PERCENTAGE_FACTOR)\n    }\n  }\n\n  function percentMulCeil(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / percentage\n    assembly {\n      if iszero(or(iszero(percentage), iszero(gt(value, div(not(0), percentage))))) {\n        revert(0, 0)\n      }\n\n      let product := mul(value, percentage)\n      result := add(\n        div(product, PERCENTAGE_FACTOR),\n        iszero(iszero(mod(product, PERCENTAGE_FACTOR)))\n      )\n    }\n  }\n\n  function percentMulFloor(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / percentage\n    assembly {\n      if iszero(or(iszero(percentage), iszero(gt(value, div(not(0), percentage))))) {\n        revert(0, 0)\n      }\n\n      result := div(mul(value, percentage), PERCENTAGE_FACTOR)\n    }\n  }\n\n  /**\n   * @notice Executes a percentage division\n   * @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328\n   * @param value The value of which the percentage needs to be calculated\n   * @param percentage The percentage of the value to be calculated\n   * @return result value percentdiv percentage\n   */\n  function percentDiv(uint256 value, uint256 percentage) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= (type(uint256).max - halfPercentage) / PERCENTAGE_FACTOR\n    assembly {\n      if or(\n        iszero(percentage),\n        iszero(iszero(gt(value, div(sub(not(0), div(percentage, 2)), PERCENTAGE_FACTOR))))\n      ) {\n        revert(0, 0)\n      }\n\n      result := div(add(mul(value, PERCENTAGE_FACTOR), div(percentage, 2)), percentage)\n    }\n  }\n\n  function percentDivFloor(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / PERCENTAGE_FACTOR\n    assembly {\n      if or(iszero(percentage), iszero(iszero(gt(value, div(not(0), PERCENTAGE_FACTOR))))) {\n        revert(0, 0)\n      }\n      result := div(mul(value, PERCENTAGE_FACTOR), percentage)\n    }\n  }\n\n  function percentDivCeil(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / PERCENTAGE_FACTOR\n    assembly {\n      if or(iszero(percentage), iszero(iszero(gt(value, div(not(0), PERCENTAGE_FACTOR))))) {\n        revert(0, 0)\n      }\n      let val := mul(value, PERCENTAGE_FACTOR)\n      result := add(div(val, percentage), iszero(iszero(mod(val, percentage))))\n    }\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/types/ConfiguratorInputTypes.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nlibrary ConfiguratorInputTypes {\n  struct InitReserveInput {\n    address aTokenImpl;\n    address variableDebtTokenImpl;\n    address underlyingAsset;\n    string aTokenName;\n    string aTokenSymbol;\n    string variableDebtTokenName;\n    string variableDebtTokenSymbol;\n    bytes params;\n    bytes interestRateData;\n  }\n\n  struct UpdateATokenInput {\n    address asset;\n    string name;\n    string symbol;\n    address implementation;\n    bytes params;\n  }\n\n  struct UpdateDebtTokenInput {\n    address asset;\n    string name;\n    string symbol;\n    address implementation;\n    bytes params;\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/libraries/types/DataTypes.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nlibrary DataTypes {\n  /**\n   * This exists specifically to maintain the `getReserveData()` interface, since the new, internal\n   * `ReserveData` struct includes the reserve's `virtualUnderlyingBalance`.\n   */\n  struct ReserveDataLegacy {\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    // DEPRECATED on v3.2.0\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    // DEPRECATED on v3.2.0\n    address stableDebtTokenAddress;\n    //variableDebtToken address\n    address variableDebtTokenAddress;\n    // DEPRECATED on v3.4.0, should use the `RESERVE_INTEREST_RATE_STRATEGY` variable from the Pool contract\n    address interestRateStrategyAddress;\n    //the current treasury balance, scaled\n    uint128 accruedToTreasury;\n    // DEPRECATED on v3.4.0\n    uint128 unbacked;\n    // DEPRECATED on v3.7.0\n    uint128 isolationModeTotalDebt;\n  }\n\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    /// @notice reused `__deprecatedStableBorrowRate` storage from pre 3.2\n    // the current accumulate deficit in underlying tokens\n    uint128 deficit;\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    //timestamp until when liquidations are not allowed on the reserve, if set to past liquidations will be allowed\n    uint40 liquidationGracePeriodUntil;\n    //aToken address\n    address aTokenAddress;\n    // DEPRECATED on v3.2.0\n    address __deprecatedStableDebtTokenAddress;\n    //variableDebtToken address\n    address variableDebtTokenAddress;\n    // DEPRECATED on v3.4.0, should use the `RESERVE_INTEREST_RATE_STRATEGY` variable from the Pool contract\n    address __deprecatedInterestRateStrategyAddress;\n    //the current treasury balance, scaled\n    uint128 accruedToTreasury;\n    // In aave 3.3.0 this storage slot contained the `unbacked`\n    uint128 virtualUnderlyingBalance;\n    //the outstanding debt borrowed against this asset in isolation mode\n    uint128 __deprecatedIsolationModeTotalDebt;\n    //the amount of underlying accounted for by the protocol\n    // DEPRECATED on v3.4.0. Moved into the same slot as accruedToTreasury for optimized storage access.\n    uint128 __deprecatedVirtualUnderlyingBalance;\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: DEPRECATED: stable rate borrowing enabled\n    //bit 60: asset is paused\n    //bit 61: DEPRECATED: borrowing in isolation mode is enabled\n    //bit 62: DEPRECATED: 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: DEPRECATED: eMode category\n    //bit 176-211: DEPRECATED: unbacked mint cap\n    //bit 212-251: DEPRECATED: debt ceiling for isolation mode with (ReserveConfiguration::DEBT_CEILING_DECIMALS) decimals\n    //bit 252: DEPRECATED: virtual accounting is enabled for the reserve\n    //bit 253-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  // DEPRECATED: kept for backwards compatibility, might be removed in a future version\n  struct EModeCategoryLegacy {\n    // each eMode category has a custom ltv and liquidation threshold\n    uint16 ltv;\n    uint16 liquidationThreshold;\n    uint16 liquidationBonus;\n    // DEPRECATED\n    address priceSource;\n    string label;\n  }\n\n  struct CollateralConfig {\n    uint16 ltv;\n    uint16 liquidationThreshold;\n    uint16 liquidationBonus;\n  }\n\n  struct EModeCategoryBaseConfiguration {\n    uint16 ltv;\n    uint16 liquidationThreshold;\n    uint16 liquidationBonus;\n    bool isolated;\n    string label;\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    uint128 collateralBitmap;\n    bool isolated; // if true, only assets in collateralBitmap can be used as collateral, and all others will have ltv0 rules applying\n    string label;\n    uint128 borrowableBitmap;\n    uint128 ltvzeroBitmap; // if true, the asset will be treated as ltv0 and ltv0 rules apply\n  }\n\n  enum InterestRateMode {\n    NONE,\n    __DEPRECATED,\n    VARIABLE\n  }\n\n  struct ReserveCache {\n    uint256 currScaledVariableDebt;\n    uint256 nextScaledVariableDebt;\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 variableDebtTokenAddress;\n    uint40 reserveLastUpdateTimestamp;\n  }\n\n  struct ExecuteLiquidationCallParams {\n    address liquidator;\n    uint256 debtToCover;\n    address collateralAsset;\n    address debtAsset;\n    address borrower;\n    bool receiveAToken;\n    address priceOracle;\n    uint8 borrowerEModeCategory;\n    address interestRateStrategyAddress;\n  }\n\n  struct ExecuteSupplyParams {\n    address user;\n    address asset;\n    address interestRateStrategyAddress;\n    uint256 amount;\n    address onBehalfOf;\n    uint16 referralCode;\n    uint8 supplierEModeCategory;\n  }\n\n  struct ExecuteBorrowParams {\n    address asset;\n    address user;\n    address onBehalfOf;\n    address interestRateStrategyAddress;\n    uint256 amount;\n    InterestRateMode interestRateMode;\n    uint16 referralCode;\n    bool releaseUnderlying;\n    address oracle;\n    uint8 userEModeCategory;\n  }\n\n  struct ExecuteRepayParams {\n    address asset;\n    address user;\n    address interestRateStrategyAddress;\n    uint256 amount;\n    InterestRateMode interestRateMode;\n    address onBehalfOf;\n    bool useATokens;\n    address oracle;\n    uint8 userEModeCategory;\n  }\n\n  struct ExecuteWithdrawParams {\n    address user;\n    address asset;\n    address interestRateStrategyAddress;\n    uint256 amount;\n    address to;\n    address oracle;\n    uint8 userEModeCategory;\n  }\n\n  struct ExecuteEliminateDeficitParams {\n    address user;\n    address asset;\n    address interestRateStrategyAddress;\n    uint256 amount;\n  }\n\n  struct FinalizeTransferParams {\n    address asset;\n    address from;\n    address to;\n    uint256 scaledAmount;\n    uint256 scaledBalanceFromBefore;\n    address oracle;\n    uint8 fromEModeCategory;\n  }\n\n  struct FlashloanParams {\n    address user;\n    address receiverAddress;\n    address[] assets;\n    uint256[] amounts;\n    uint256[] interestRateModes;\n    address interestRateStrategyAddress;\n    address onBehalfOf;\n    bytes params;\n    uint16 referralCode;\n    uint256 flashLoanPremium;\n    address addressesProvider;\n    address pool;\n    bool isAuthorizedFlashBorrower;\n  }\n\n  struct FlashloanSimpleParams {\n    address user;\n    address receiverAddress;\n    address asset;\n    address interestRateStrategyAddress;\n    uint256 amount;\n    bytes params;\n    uint16 referralCode;\n    uint256 flashLoanPremium;\n  }\n\n  struct FlashLoanRepaymentParams {\n    address user;\n    uint256 amount;\n    uint256 totalPremium;\n    address asset;\n    address interestRateStrategyAddress;\n    address receiverAddress;\n    uint16 referralCode;\n  }\n\n  struct CalculateUserAccountDataParams {\n    UserConfigurationMap userConfig;\n    address user;\n    address oracle;\n    uint8 userEModeCategory;\n  }\n\n  struct ValidateBorrowParams {\n    ReserveCache reserveCache;\n    address asset;\n    uint256 amountScaled;\n    InterestRateMode interestRateMode;\n    uint8 userEModeCategory;\n  }\n\n  struct ValidateLiquidationCallParams {\n    ReserveCache debtReserveCache;\n    uint256 totalDebt;\n    uint256 healthFactor;\n    address borrower;\n    address liquidator;\n  }\n\n  struct CalculateInterestRatesParams {\n    uint256 unbacked;\n    uint256 liquidityAdded;\n    uint256 liquidityTaken;\n    uint256 totalDebt;\n    uint256 reserveFactor;\n    address reserve;\n    // @notice DEPRECATED in 3.4, but kept for backwards compatibility\n    bool usingVirtualBalance;\n    uint256 virtualUnderlyingBalance;\n  }\n\n  struct InitReserveParams {\n    address asset;\n    address aTokenAddress;\n    address variableDebtAddress;\n    uint16 reservesCount;\n    uint16 maxNumberReserves;\n  }\n}\n"},{"file_path":"lib/aave-v3-origin-private/src/contracts/protocol/pool/PoolConfigurator.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.10;\n\nimport {VersionedInitializable} from '../../misc/aave-upgradeability/VersionedInitializable.sol';\nimport {ReserveConfiguration} from '../libraries/configuration/ReserveConfiguration.sol';\nimport {EModeConfiguration} from '../libraries/configuration/EModeConfiguration.sol';\nimport {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol';\nimport {IDefaultInterestRateStrategyV2} from '../../interfaces/IDefaultInterestRateStrategyV2.sol';\nimport {Errors} from '../libraries/helpers/Errors.sol';\nimport {PercentageMath} from '../libraries/math/PercentageMath.sol';\nimport {DataTypes} from '../libraries/types/DataTypes.sol';\nimport {ConfiguratorLogic} from '../libraries/logic/ConfiguratorLogic.sol';\nimport {ConfiguratorInputTypes} from '../libraries/types/ConfiguratorInputTypes.sol';\nimport {IPoolConfigurator} from '../../interfaces/IPoolConfigurator.sol';\nimport {IPool} from '../../interfaces/IPool.sol';\nimport {IACLManager} from '../../interfaces/IACLManager.sol';\nimport {IPoolDataProvider} from '../../interfaces/IPoolDataProvider.sol';\n\n/**\n * @title PoolConfigurator\n * @author Aave\n * @dev Implements the configuration methods for the Aave protocol\n */\nabstract contract PoolConfigurator is VersionedInitializable, IPoolConfigurator {\n  using PercentageMath for uint256;\n  using ReserveConfiguration for DataTypes.ReserveConfigurationMap;\n\n  IPoolAddressesProvider internal _addressesProvider;\n  IPool internal _pool;\n\n  mapping(address => uint256) internal _pendingLtv;\n\n  uint40 public constant MAX_GRACE_PERIOD = 4 hours;\n\n  /**\n   * @dev Only pool admin can call functions marked by this modifier.\n   */\n  modifier onlyPoolAdmin() {\n    _onlyPoolAdmin();\n    _;\n  }\n\n  /**\n   * @dev Only emergency or pool admin can call functions marked by this modifier.\n   */\n  modifier onlyEmergencyOrPoolAdmin() {\n    _onlyPoolOrEmergencyAdmin();\n    _;\n  }\n\n  /**\n   * @dev Only asset listing or pool admin can call functions marked by this modifier.\n   */\n  modifier onlyAssetListingOrPoolAdmins() {\n    _onlyAssetListingOrPoolAdmins();\n    _;\n  }\n\n  /**\n   * @dev Only risk or pool admin can call functions marked by this modifier.\n   */\n  modifier onlyRiskOrPoolAdmins() {\n    _onlyRiskOrPoolAdmins();\n    _;\n  }\n\n  /**\n   * @dev Only risk, pool or emergency admin can call functions marked by this modifier.\n   */\n  modifier onlyRiskOrPoolOrEmergencyAdmins() {\n    _onlyRiskOrPoolOrEmergencyAdmins();\n    _;\n  }\n\n  function initialize(IPoolAddressesProvider provider) public virtual;\n\n  /// @inheritdoc IPoolConfigurator\n  function initReserves(\n    ConfiguratorInputTypes.InitReserveInput[] calldata input\n  ) external override onlyAssetListingOrPoolAdmins {\n    IPool cachedPool = _pool;\n\n    address interestRateStrategyAddress = cachedPool.RESERVE_INTEREST_RATE_STRATEGY();\n    for (uint256 i = 0; i < input.length; i++) {\n      ConfiguratorLogic.executeInitReserve(cachedPool, input[i]);\n\n      emit ReserveInterestRateDataChanged(\n        input[i].underlyingAsset,\n        interestRateStrategyAddress,\n        input[i].interestRateData\n      );\n    }\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function updateAToken(\n    ConfiguratorInputTypes.UpdateATokenInput calldata input\n  ) external override onlyPoolAdmin {\n    ConfiguratorLogic.executeUpdateAToken(_pool, input);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function updateVariableDebtToken(\n    ConfiguratorInputTypes.UpdateDebtTokenInput calldata input\n  ) external override onlyPoolAdmin {\n    ConfiguratorLogic.executeUpdateVariableDebtToken(_pool, input);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveBorrowing(address asset, bool enabled) external override onlyRiskOrPoolAdmins {\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    currentConfig.setBorrowingEnabled(enabled);\n    _pool.setConfiguration(asset, currentConfig);\n    emit ReserveBorrowing(asset, enabled);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function configureReserveAsCollateral(\n    address asset,\n    uint256 ltv,\n    uint256 liquidationThreshold,\n    uint256 liquidationBonus\n  ) external override onlyRiskOrPoolAdmins {\n    //validation of the parameters: the LTV can\n    //only be lower or equal than the liquidation threshold\n    //(otherwise a loan against the asset would cause instantaneous liquidation)\n    require(ltv <= liquidationThreshold, Errors.InvalidReserveParams());\n\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n\n    if (liquidationThreshold != 0) {\n      //liquidation bonus must be bigger than 100.00%, otherwise the liquidator would receive less\n      //collateral than needed to cover the debt\n      require(liquidationBonus > PercentageMath.PERCENTAGE_FACTOR, Errors.InvalidReserveParams());\n\n      //if threshold * bonus is less than PERCENTAGE_FACTOR, it's guaranteed that at the moment\n      //a loan is taken there is enough collateral available to cover the liquidation bonus\n      require(\n        liquidationThreshold.percentMul(liquidationBonus) <= PercentageMath.PERCENTAGE_FACTOR,\n        Errors.InvalidReserveParams()\n      );\n    } else {\n      require(liquidationBonus == 0, Errors.InvalidReserveParams());\n      //if the liquidation threshold is being set to 0,\n      // the reserve is being disabled as collateral. To do so,\n      //we need to ensure no liquidity is supplied\n      _checkNoSuppliers(asset);\n    }\n\n    uint256 newLtv = ltv;\n\n    if (currentConfig.getFrozen()) {\n      _pendingLtv[asset] = ltv;\n      newLtv = 0;\n\n      emit PendingLtvChanged(asset, ltv);\n    } else {\n      if (_pendingLtv[asset] != 0) {\n        delete _pendingLtv[asset];\n        emit PendingLtvChanged(asset, 0);\n      }\n      currentConfig.setLtv(ltv);\n    }\n\n    currentConfig.setLiquidationThreshold(liquidationThreshold);\n    currentConfig.setLiquidationBonus(liquidationBonus);\n\n    _pool.setConfiguration(asset, currentConfig);\n\n    emit CollateralConfigurationChanged(asset, newLtv, liquidationThreshold, liquidationBonus);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveFlashLoaning(\n    address asset,\n    bool enabled\n  ) external override onlyRiskOrPoolAdmins {\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n\n    currentConfig.setFlashLoanEnabled(enabled);\n    _pool.setConfiguration(asset, currentConfig);\n    emit ReserveFlashLoaning(asset, enabled);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveActive(address asset, bool active) external override onlyPoolAdmin {\n    if (!active) _checkNoSuppliers(asset);\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    currentConfig.setActive(active);\n    _pool.setConfiguration(asset, currentConfig);\n    emit ReserveActive(asset, active);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveFreeze(\n    address asset,\n    bool freeze\n  ) external override onlyRiskOrPoolOrEmergencyAdmins {\n    DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);\n    DataTypes.ReserveConfigurationMap memory currentConfig = reserveData.configuration;\n\n    require(freeze != currentConfig.getFrozen(), Errors.InvalidFreezeState());\n\n    currentConfig.setFrozen(freeze);\n\n    if (freeze) {\n      _setReserveLtvzero(asset, true, currentConfig);\n      uint128 collateralEnabledBitmap;\n      uint128 ltvzeroBitmap;\n      // The loop will worst case do 2 * 255 SLOADs + 255 SSTOREs, which should be around ~6M gas.\n      // In practice, a single asset will never be enabled as collateral on all eModes, so the expected gas consumption is much lower.\n      // uint256 to not overflow when `j = type(uint8).max + 1`\n      for (uint256 j = 1; j <= type(uint8).max; j++) {\n        // forge-lint: disable-next-line(unsafe-typecast)\n        collateralEnabledBitmap = _pool.getEModeCategoryCollateralBitmap(uint8(j));\n        if (EModeConfiguration.isReserveEnabledOnBitmap(collateralEnabledBitmap, reserveData.id)) {\n          // forge-lint: disable-next-line(unsafe-typecast)\n          ltvzeroBitmap = _pool.getEModeCategoryLtvzeroBitmap(uint8(j));\n          // forge-lint: disable-next-line(unsafe-typecast)\n          _setEmodeLtvZero(ltvzeroBitmap, asset, reserveData.id, uint8(j), true);\n        }\n      }\n    }\n\n    _pool.setConfiguration(asset, currentConfig);\n    emit ReserveFrozen(asset, freeze);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveLtvzero(address asset, bool ltvZero) external onlyRiskOrPoolOrEmergencyAdmins {\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    uint256 configCache = currentConfig.data;\n\n    _setReserveLtvzero(asset, ltvZero, currentConfig);\n    require(currentConfig.data != configCache, Errors.InvalidLtvzeroState());\n    _pool.setConfiguration(asset, currentConfig);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReservePause(\n    address asset,\n    bool paused,\n    uint40 gracePeriod\n  ) public override onlyEmergencyOrPoolAdmin {\n    if (!paused && gracePeriod != 0) {\n      require(gracePeriod <= MAX_GRACE_PERIOD, Errors.InvalidGracePeriod());\n\n      uint40 until = uint40(block.timestamp) + gracePeriod;\n      _pool.setLiquidationGracePeriod(asset, until);\n      emit LiquidationGracePeriodChanged(asset, until);\n    }\n\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    currentConfig.setPaused(paused);\n    _pool.setConfiguration(asset, currentConfig);\n    emit ReservePaused(asset, paused);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReservePause(address asset, bool paused) external override onlyEmergencyOrPoolAdmin {\n    setReservePause(asset, paused, 0);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function disableLiquidationGracePeriod(address asset) external override onlyEmergencyOrPoolAdmin {\n    // set the liquidation grace period in the past to disable liquidation grace period\n    _pool.setLiquidationGracePeriod(asset, 0);\n\n    emit LiquidationGracePeriodDisabled(asset);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveFactor(\n    address asset,\n    uint256 newReserveFactor\n  ) external override onlyRiskOrPoolAdmins {\n    require(newReserveFactor <= PercentageMath.PERCENTAGE_FACTOR, Errors.InvalidReserveFactor());\n\n    _pool.syncIndexesState(asset);\n\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    uint256 oldReserveFactor = currentConfig.getReserveFactor();\n    currentConfig.setReserveFactor(newReserveFactor);\n    _pool.setConfiguration(asset, currentConfig);\n    emit ReserveFactorChanged(asset, oldReserveFactor, newReserveFactor);\n\n    _pool.syncRatesState(asset);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setBorrowCap(\n    address asset,\n    uint256 newBorrowCap\n  ) external override onlyRiskOrPoolAdmins {\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    uint256 oldBorrowCap = currentConfig.getBorrowCap();\n    currentConfig.setBorrowCap(newBorrowCap);\n    _pool.setConfiguration(asset, currentConfig);\n    emit BorrowCapChanged(asset, oldBorrowCap, newBorrowCap);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setSupplyCap(\n    address asset,\n    uint256 newSupplyCap\n  ) external override onlyRiskOrPoolAdmins {\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    uint256 oldSupplyCap = currentConfig.getSupplyCap();\n    currentConfig.setSupplyCap(newSupplyCap);\n    _pool.setConfiguration(asset, currentConfig);\n    emit SupplyCapChanged(asset, oldSupplyCap, newSupplyCap);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setLiquidationProtocolFee(\n    address asset,\n    uint256 newFee\n  ) external override onlyRiskOrPoolAdmins {\n    require(newFee <= PercentageMath.PERCENTAGE_FACTOR, Errors.InvalidLiquidationProtocolFee());\n    DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n    uint256 oldFee = currentConfig.getLiquidationProtocolFee();\n    currentConfig.setLiquidationProtocolFee(newFee);\n    _pool.setConfiguration(asset, currentConfig);\n    emit LiquidationProtocolFeeChanged(asset, oldFee, newFee);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setEModeCategory(\n    uint8 categoryId,\n    uint16 ltv,\n    uint16 liquidationThreshold,\n    uint16 liquidationBonus,\n    string calldata label,\n    bool isolated\n  ) external override onlyRiskOrPoolAdmins {\n    require(ltv != 0, Errors.InvalidEmodeCategoryParams());\n    require(liquidationThreshold != 0, Errors.InvalidEmodeCategoryParams());\n\n    // validation of the parameters: the LTV can\n    // only be lower or equal than the liquidation threshold\n    // (otherwise a loan against the asset would cause instantaneous liquidation)\n    require(ltv <= liquidationThreshold, Errors.InvalidEmodeCategoryParams());\n    require(\n      liquidationBonus > PercentageMath.PERCENTAGE_FACTOR,\n      Errors.InvalidEmodeCategoryParams()\n    );\n\n    // if threshold * bonus is less than PERCENTAGE_FACTOR, it's guaranteed that at the moment\n    // a loan is taken there is enough collateral available to cover the liquidation bonus\n    require(\n      uint256(liquidationThreshold).percentMul(liquidationBonus) <=\n        PercentageMath.PERCENTAGE_FACTOR,\n      Errors.InvalidEmodeCategoryParams()\n    );\n\n    DataTypes.EModeCategoryBaseConfiguration memory categoryData;\n    categoryData.ltv = ltv;\n    categoryData.liquidationThreshold = liquidationThreshold;\n    categoryData.liquidationBonus = liquidationBonus;\n    categoryData.isolated = isolated;\n    categoryData.label = label;\n\n    _pool.configureEModeCategory(categoryId, categoryData);\n    emit EModeCategoryAdded(\n      categoryId,\n      ltv,\n      liquidationThreshold,\n      liquidationBonus,\n      address(0),\n      label\n    );\n    emit EModeCategoryIsolationChanged(categoryId, isolated);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setAssetCollateralInEMode(\n    address asset,\n    uint8 categoryId,\n    bool allowed\n  ) external override onlyRiskOrPoolAdmins {\n    uint128 collateralBitmap = _pool.getEModeCategoryCollateralBitmap(categoryId);\n    DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);\n    require(reserveData.id != 0 || _pool.getReservesList()[0] == asset, Errors.AssetNotListed());\n    // Disabling an asset from an eMode is always a difficult situation and\n    // must be performed taking into account the current exposure.\n    // The following checks only ensure the protocol stays in a valid state, it does not account for effects triggered by the change.\n    if (!allowed) {\n      DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);\n      if (currentConfig.getLiquidationThreshold() == 0) _checkNoSuppliers(asset);\n\n      uint128 ltvzeroBitmap = _pool.getEModeCategoryLtvzeroBitmap(categoryId);\n      // if removing an asset from an eMode it must also be removed from the ltvzero bitmap\n      if (EModeConfiguration.isReserveEnabledOnBitmap(ltvzeroBitmap, reserveData.id)) {\n        _setEmodeLtvZero(ltvzeroBitmap, asset, reserveData.id, categoryId, false);\n      }\n    } else {\n      require(!reserveData.configuration.getFrozen(), Errors.ReserveFrozen());\n    }\n    collateralBitmap = EModeConfiguration.setReserveBitmapBit(\n      collateralBitmap,\n      reserveData.id,\n      allowed\n    );\n    _pool.configureEModeCategoryCollateralBitmap(categoryId, collateralBitmap);\n    emit AssetCollateralInEModeChanged(asset, categoryId, allowed);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setAssetBorrowableInEMode(\n    address asset,\n    uint8 categoryId,\n    bool borrowable\n  ) external override onlyRiskOrPoolAdmins {\n    uint128 borrowableBitmap = _pool.getEModeCategoryBorrowableBitmap(categoryId);\n    DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);\n    require(reserveData.id != 0 || _pool.getReservesList()[0] == asset, Errors.AssetNotListed());\n    borrowableBitmap = EModeConfiguration.setReserveBitmapBit(\n      borrowableBitmap,\n      reserveData.id,\n      borrowable\n    );\n    _pool.configureEModeCategoryBorrowableBitmap(categoryId, borrowableBitmap);\n    emit AssetBorrowableInEModeChanged(asset, categoryId, borrowable);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setAssetLtvzeroInEMode(\n    address asset,\n    uint8 categoryId,\n    bool ltvzero\n  ) external onlyRiskOrPoolOrEmergencyAdmins {\n    uint128 ltvzeroBitmap = _pool.getEModeCategoryLtvzeroBitmap(categoryId);\n    DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);\n    require(reserveData.id != 0 || _pool.getReservesList()[0] == asset, Errors.AssetNotListed());\n    uint128 collateralBitmap = _pool.getEModeCategoryCollateralBitmap(categoryId);\n    require(\n      EModeConfiguration.isReserveEnabledOnBitmap(collateralBitmap, reserveData.id),\n      Errors.MustBeEmodeCollateral(asset, categoryId)\n    );\n    // ltvzero can only be removed on non frozen reserves\n    if (!ltvzero) {\n      require(!reserveData.configuration.getFrozen(), Errors.ReserveFrozen());\n    }\n    _setEmodeLtvZero(ltvzeroBitmap, asset, reserveData.id, categoryId, ltvzero);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setEModeCategoryIsolated(\n    uint8 categoryId,\n    bool isolated\n  ) external onlyRiskOrPoolOrEmergencyAdmins {\n    _pool.configureEModeCategoryIsolated(categoryId, isolated);\n    emit EModeCategoryIsolationChanged(categoryId, isolated);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setReserveInterestRateData(\n    address asset,\n    bytes calldata rateData\n  ) external onlyRiskOrPoolAdmins {\n    _pool.syncIndexesState(asset);\n\n    address interestRateStrategyAddress = _pool.RESERVE_INTEREST_RATE_STRATEGY();\n    IDefaultInterestRateStrategyV2(interestRateStrategyAddress).setInterestRateParams(\n      asset,\n      rateData\n    );\n    emit ReserveInterestRateDataChanged(asset, interestRateStrategyAddress, rateData);\n\n    _pool.syncRatesState(asset);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setPoolPause(bool paused, uint40 gracePeriod) public override onlyEmergencyOrPoolAdmin {\n    address[] memory reserves = _pool.getReservesList();\n\n    for (uint256 i = 0; i < reserves.length; i++) {\n      if (reserves[i] != address(0)) {\n        setReservePause(reserves[i], paused, gracePeriod);\n      }\n    }\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function setPoolPause(bool paused) external override onlyEmergencyOrPoolAdmin {\n    setPoolPause(paused, 0);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function updateFlashloanPremium(uint128 newFlashloanPremium) external override onlyPoolAdmin {\n    require(\n      newFlashloanPremium <= PercentageMath.PERCENTAGE_FACTOR,\n      Errors.FlashloanPremiumInvalid()\n    );\n\n    uint128 oldFlashloanPremium = _pool.FLASHLOAN_PREMIUM_TOTAL();\n    _pool.updateFlashloanPremium(newFlashloanPremium);\n\n    emit FlashloanPremiumTotalUpdated(oldFlashloanPremium, newFlashloanPremium);\n  }\n\n  /// @inheritdoc IPoolConfigurator\n  function getPendingLtv(address asset) external view override returns (uint256) {\n    return _pendingLtv[asset];\n  }\n\n  function _setReserveLtvzero(\n    address asset,\n    bool ltvZero,\n    DataTypes.ReserveConfigurationMap memory currentConfig\n  ) internal {\n    uint256 newLtv;\n    uint256 newPendingLtv;\n    if (ltvZero) {\n      if (currentConfig.getLtv() == 0) return;\n      newPendingLtv = currentConfig.getLtv();\n      _pendingLtv[asset] = newPendingLtv;\n      currentConfig.setLtv(0);\n    } else {\n      // ltvzero can only be removed on non frozen reserves\n      require(!currentConfig.getFrozen(), Errors.ReserveFrozen());\n      newLtv = _pendingLtv[asset];\n      if (newLtv == 0 || currentConfig.getLtv() != 0) return;\n      currentConfig.setLtv(newLtv);\n      delete _pendingLtv[asset];\n    }\n    emit PendingLtvChanged(asset, newPendingLtv);\n    emit CollateralConfigurationChanged(\n      asset,\n      newLtv,\n      currentConfig.getLiquidationThreshold(),\n      currentConfig.getLiquidationBonus()\n    );\n  }\n\n  function _setEmodeLtvZero(\n    uint128 ltvzeroBitmap,\n    address reserve,\n    uint16 reserveId,\n    uint8 eModeCategoryId,\n    bool ltvzero\n  ) internal {\n    ltvzeroBitmap = EModeConfiguration.setReserveBitmapBit(ltvzeroBitmap, reserveId, ltvzero);\n    _pool.configureEModeCategoryLtvzeroBitmap(eModeCategoryId, ltvzeroBitmap);\n    emit AssetLtvzeroInEModeChanged(reserve, eModeCategoryId, ltvzero);\n  }\n\n  function _checkAssetIsCollateral(address asset) internal view returns (bool) {\n    DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);\n    DataTypes.ReserveConfigurationMap memory currentConfig = reserveData.configuration;\n\n    if (currentConfig.getLiquidationThreshold() != 0) return true;\n    uint128 collateralEnabledBitmap;\n    // The loop will worst case do 255 SLOADs, which should be around ~550k gas.\n    // uint256 to not overflow when `j = type(uint8).max + 1`\n    for (uint256 j = 1; j <= type(uint8).max; j++) {\n      // forge-lint: disable-next-line(unsafe-typecast)\n      collateralEnabledBitmap = _pool.getEModeCategoryCollateralBitmap(uint8(j));\n      if (EModeConfiguration.isReserveEnabledOnBitmap(collateralEnabledBitmap, reserveData.id)) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  function _checkNoSuppliers(address asset) internal view {\n    DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);\n    uint256 totalSupplied = IPoolDataProvider(_addressesProvider.getPoolDataProvider())\n      .getATokenTotalSupply(asset);\n\n    require(\n      totalSupplied == 0 && reserveData.accruedToTreasury == 0,\n      Errors.ReserveLiquidityNotZero()\n    );\n  }\n\n  function _checkNoBorrowers(address asset) internal view {\n    uint256 totalDebt = IPoolDataProvider(_addressesProvider.getPoolDataProvider()).getTotalDebt(\n      asset\n    );\n    require(totalDebt == 0, Errors.ReserveDebtNotZero());\n  }\n\n  function _onlyPoolAdmin() internal view {\n    IACLManager aclManager = IACLManager(_addressesProvider.getACLManager());\n    require(aclManager.isPoolAdmin(msg.sender), Errors.CallerNotPoolAdmin());\n  }\n\n  function _onlyPoolOrEmergencyAdmin() internal view {\n    IACLManager aclManager = IACLManager(_addressesProvider.getACLManager());\n    require(\n      aclManager.isPoolAdmin(msg.sender) || aclManager.isEmergencyAdmin(msg.sender),\n      Errors.CallerNotPoolOrEmergencyAdmin()\n    );\n  }\n\n  function _onlyAssetListingOrPoolAdmins() internal view {\n    IACLManager aclManager = IACLManager(_addressesProvider.getACLManager());\n    require(\n      aclManager.isAssetListingAdmin(msg.sender) || aclManager.isPoolAdmin(msg.sender),\n      Errors.CallerNotAssetListingOrPoolAdmin()\n    );\n  }\n\n  function _onlyRiskOrPoolAdmins() internal view {\n    IACLManager aclManager = IACLManager(_addressesProvider.getACLManager());\n    require(\n      aclManager.isRiskAdmin(msg.sender) || aclManager.isPoolAdmin(msg.sender),\n      Errors.CallerNotRiskOrPoolAdmin()\n    );\n  }\n\n  function _onlyRiskOrPoolOrEmergencyAdmins() internal view {\n    IACLManager aclManager = IACLManager(_addressesProvider.getACLManager());\n    require(\n      aclManager.isRiskAdmin(msg.sender) ||\n        aclManager.isPoolAdmin(msg.sender) ||\n        aclManager.isEmergencyAdmin(msg.sender),\n      Errors.CallerNotRiskOrPoolOrEmergencyAdmin()\n    );\n  }\n}\n"}],"certified":false,"conflicting_implementations":null,"abi":[{"inputs":[],"name":"AssetNotListed","type":"error"},{"inputs":[],"name":"CallerNotAssetListingOrPoolAdmin","type":"error"},{"inputs":[],"name":"CallerNotPoolAdmin","type":"error"},{"inputs":[],"name":"CallerNotPoolOrEmergencyAdmin","type":"error"},{"inputs":[],"name":"CallerNotRiskOrPoolAdmin","type":"error"},{"inputs":[],"name":"CallerNotRiskOrPoolOrEmergencyAdmin","type":"error"},{"inputs":[],"name":"FlashloanPremiumInvalid","type":"error"},{"inputs":[],"name":"InvalidBorrowCap","type":"error"},{"inputs":[],"name":"InvalidDecimals","type":"error"},{"inputs":[],"name":"InvalidEmodeCategoryParams","type":"error"},{"inputs":[],"name":"InvalidFreezeState","type":"error"},{"inputs":[],"name":"InvalidGracePeriod","type":"error"},{"inputs":[],"name":"InvalidLiquidationBonus","type":"error"},{"inputs":[],"name":"InvalidLiquidationProtocolFee","type":"error"},{"inputs":[],"name":"InvalidLiquidationThreshold","type":"error"},{"inputs":[],"name":"InvalidLtv","type":"error"},{"inputs":[],"name":"InvalidLtvzeroState","type":"error"},{"inputs":[],"name":"InvalidReserveFactor","type":"error"},{"inputs":[],"name":"InvalidReserveIndex","type":"error"},{"inputs":[],"name":"InvalidReserveParams","type":"error"},{"inputs":[],"name":"InvalidSupplyCap","type":"error"},{"inputs":[{"internalType":"address","name":"reserve","type":"address"},{"internalType":"uint256","name":"categoryId","type":"uint256"}],"name":"MustBeEmodeCollateral","type":"error"},{"inputs":[],"name":"ReserveFrozen","type":"error"},{"inputs":[],"name":"ReserveLiquidityNotZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"proxy","type":"address"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"ATokenUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint8","name":"categoryId","type":"uint8"},{"indexed":false,"internalType":"bool","name":"borrowable","type":"bool"}],"name":"AssetBorrowableInEModeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint8","name":"categoryId","type":"uint8"},{"indexed":false,"internalType":"bool","name":"collateral","type":"bool"}],"name":"AssetCollateralInEModeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint8","name":"categoryId","type":"uint8"},{"indexed":false,"internalType":"bool","name":"ltvzero","type":"bool"}],"name":"AssetLtvzeroInEModeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldBorrowCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBorrowCap","type":"uint256"}],"name":"BorrowCapChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"ltv","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidationThreshold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidationBonus","type":"uint256"}],"name":"CollateralConfigurationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"categoryId","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"ltv","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidationThreshold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidationBonus","type":"uint256"},{"indexed":false,"internalType":"address","name":"oracle","type":"address"},{"indexed":false,"internalType":"string","name":"label","type":"string"}],"name":"EModeCategoryAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"categoryId","type":"uint8"},{"indexed":false,"internalType":"bool","name":"isolated","type":"bool"}],"name":"EModeCategoryIsolationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"oldFlashloanPremiumToProtocol","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"newFlashloanPremiumToProtocol","type":"uint128"}],"name":"FlashloanPremiumToProtocolUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"oldFlashloanPremiumTotal","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"newFlashloanPremiumTotal","type":"uint128"}],"name":"FlashloanPremiumTotalUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint40","name":"gracePeriodUntil","type":"uint40"}],"name":"LiquidationGracePeriodChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"}],"name":"LiquidationGracePeriodDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"LiquidationProtocolFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"ltv","type":"uint256"}],"name":"PendingLtvChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"ReserveActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ReserveBorrowing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldReserveFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReserveFactor","type":"uint256"}],"name":"ReserveFactorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ReserveFlashLoaning","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"frozen","type":"bool"}],"name":"ReserveFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"aToken","type":"address"},{"indexed":false,"internalType":"address","name":"stableDebtToken","type":"address"},{"indexed":false,"internalType":"address","name":"variableDebtToken","type":"address"},{"indexed":false,"internalType":"address","name":"interestRateStrategyAddress","type":"address"}],"name":"ReserveInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"ReserveInterestRateDataChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"address","name":"oldStrategy","type":"address"},{"indexed":false,"internalType":"address","name":"newStrategy","type":"address"}],"name":"ReserveInterestRateStrategyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"ReservePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldSupplyCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newSupplyCap","type":"uint256"}],"name":"SupplyCapChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"proxy","type":"address"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"VariableDebtTokenUpgraded","type":"event"},{"inputs":[],"name":"CONFIGURATOR_REVISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GRACE_PERIOD","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"ltv","type":"uint256"},{"internalType":"uint256","name":"liquidationThreshold","type":"uint256"},{"internalType":"uint256","name":"liquidationBonus","type":"uint256"}],"name":"configureReserveAsCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"disableLiquidationGracePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getPendingLtv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"aTokenImpl","type":"address"},{"internalType":"address","name":"variableDebtTokenImpl","type":"address"},{"internalType":"address","name":"underlyingAsset","type":"address"},{"internalType":"string","name":"aTokenName","type":"string"},{"internalType":"string","name":"aTokenSymbol","type":"string"},{"internalType":"string","name":"variableDebtTokenName","type":"string"},{"internalType":"string","name":"variableDebtTokenSymbol","type":"string"},{"internalType":"bytes","name":"params","type":"bytes"},{"internalType":"bytes","name":"interestRateData","type":"bytes"}],"internalType":"struct ConfiguratorInputTypes.InitReserveInput[]","name":"input","type":"tuple[]"}],"name":"initReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPoolAddressesProvider","name":"provider","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint8","name":"categoryId","type":"uint8"},{"internalType":"bool","name":"borrowable","type":"bool"}],"name":"setAssetBorrowableInEMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint8","name":"categoryId","type":"uint8"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setAssetCollateralInEMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint8","name":"categoryId","type":"uint8"},{"internalType":"bool","name":"ltvzero","type":"bool"}],"name":"setAssetLtvzeroInEMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"newBorrowCap","type":"uint256"}],"name":"setBorrowCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"categoryId","type":"uint8"},{"internalType":"uint16","name":"ltv","type":"uint16"},{"internalType":"uint16","name":"liquidationThreshold","type":"uint16"},{"internalType":"uint16","name":"liquidationBonus","type":"uint16"},{"internalType":"string","name":"label","type":"string"},{"internalType":"bool","name":"isolated","type":"bool"}],"name":"setEModeCategory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"categoryId","type":"uint8"},{"internalType":"bool","name":"isolated","type":"bool"}],"name":"setEModeCategoryIsolated","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"setLiquidationProtocolFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint40","name":"gracePeriod","type":"uint40"}],"name":"setPoolPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"setPoolPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"active","type":"bool"}],"name":"setReserveActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setReserveBorrowing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"newReserveFactor","type":"uint256"}],"name":"setReserveFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setReserveFlashLoaning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"freeze","type":"bool"}],"name":"setReserveFreeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bytes","name":"rateData","type":"bytes"}],"name":"setReserveInterestRateData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"ltvZero","type":"bool"}],"name":"setReserveLtvzero","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"paused","type":"bool"}],"name":"setReservePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint40","name":"gracePeriod","type":"uint40"}],"name":"setReservePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"newSupplyCap","type":"uint256"}],"name":"setSupplyCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"internalType":"struct ConfiguratorInputTypes.UpdateATokenInput","name":"input","type":"tuple"}],"name":"updateAToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"newFlashloanPremium","type":"uint128"}],"name":"updateFlashloanPremium","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"internalType":"struct ConfiguratorInputTypes.UpdateDebtTokenInput","name":"input","type":"tuple"}],"name":"updateVariableDebtToken","outputs":[],"stateMutability":"nonpayable","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":true,"constructor_args":null}