|
| 1 | +// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR |
| 2 | +// SPDX-License-Identifier: MIT |
| 3 | +pragma solidity >=0.6.0; |
| 4 | + |
| 5 | +import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from './AaveV3.sol'; |
| 6 | +library AaveV3EthereumHorizon { |
| 7 | + // https://etherscan.io/address/0x5D39E06b825C1F2B80bf2756a73e28eFAA128ba0 |
| 8 | + IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER = |
| 9 | + IPoolAddressesProvider(0x5D39E06b825C1F2B80bf2756a73e28eFAA128ba0); |
| 10 | + |
| 11 | + // https://etherscan.io/address/0xAe05Cd22df81871bc7cC2a04BeCfb516bFe332C8 |
| 12 | + IPool internal constant POOL = IPool(0xAe05Cd22df81871bc7cC2a04BeCfb516bFe332C8); |
| 13 | + |
| 14 | + // https://etherscan.io/address/0x83Cb1B4af26EEf6463aC20AFbAC9c0e2E017202F |
| 15 | + IPoolConfigurator internal constant POOL_CONFIGURATOR = |
| 16 | + IPoolConfigurator(0x83Cb1B4af26EEf6463aC20AFbAC9c0e2E017202F); |
| 17 | + |
| 18 | + // https://etherscan.io/address/0x985BcfAB7e0f4EF2606CC5b64FC1A16311880442 |
| 19 | + IAaveOracle internal constant ORACLE = IAaveOracle(0x985BcfAB7e0f4EF2606CC5b64FC1A16311880442); |
| 20 | + |
| 21 | + // https://etherscan.io/address/0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A |
| 22 | + address internal constant ACL_ADMIN = 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A; |
| 23 | + |
| 24 | + // https://etherscan.io/address/0xEFD5df7b87d2dCe6DD454b4240b3e0A4db562321 |
| 25 | + IACLManager internal constant ACL_MANAGER = |
| 26 | + IACLManager(0xEFD5df7b87d2dCe6DD454b4240b3e0A4db562321); |
| 27 | + |
| 28 | + // https://etherscan.io/address/0x53519c32f73fE1797d10210c4950fFeBa3b21504 |
| 29 | + IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = |
| 30 | + IPoolDataProvider(0x53519c32f73fE1797d10210c4950fFeBa3b21504); |
| 31 | + |
| 32 | + // https://etherscan.io/address/0xcD8B9aC3B72E81fD8A0c9a0dBba583597E48A23a |
| 33 | + address internal constant POOL_IMPL = 0xcD8B9aC3B72E81fD8A0c9a0dBba583597E48A23a; |
| 34 | + |
| 35 | + // https://etherscan.io/address/0x898E245D83Ad255Dc57b04978D0b4A12b94a557F |
| 36 | + address internal constant POOL_CONFIGURATOR_IMPL = 0x898E245D83Ad255Dc57b04978D0b4A12b94a557F; |
| 37 | + |
| 38 | + // https://etherscan.io/address/0x1D5D386a90CEA8AcEa9fa75389e97CF5F1AE21D3 |
| 39 | + address internal constant DEFAULT_INCENTIVES_CONTROLLER = |
| 40 | + 0x1D5D386a90CEA8AcEa9fa75389e97CF5F1AE21D3; |
| 41 | + |
| 42 | + // https://etherscan.io/address/0xC2201708289b2C6A1d461A227A7E5ee3e7fE9A2F |
| 43 | + address internal constant EMISSION_MANAGER = 0xC2201708289b2C6A1d461A227A7E5ee3e7fE9A2F; |
| 44 | + |
| 45 | + // https://etherscan.io/address/0x70CC725B8f05e0f230B05C4e91ABc651E121354f |
| 46 | + ICollector internal constant COLLECTOR = ICollector(0x70CC725B8f05e0f230B05C4e91ABc651E121354f); |
| 47 | + |
| 48 | + // https://etherscan.io/address/0xB2668573828029917ffbD1e76270373511818498 |
| 49 | + address internal constant DEFAULT_A_TOKEN_IMPL = 0xB2668573828029917ffbD1e76270373511818498; |
| 50 | + |
| 51 | + // https://etherscan.io/address/0x15F03E5dE87c12cb2e2b8e5d6ECEf0a9E21ab269 |
| 52 | + address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL = |
| 53 | + 0x15F03E5dE87c12cb2e2b8e5d6ECEf0a9E21ab269; |
| 54 | + |
| 55 | + // https://etherscan.io/address/0xC6cAB8D39D93DC0Bd5986E7Ce5Bb956E30103A43 |
| 56 | + address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = |
| 57 | + 0xC6cAB8D39D93DC0Bd5986E7Ce5Bb956E30103A43; |
| 58 | + |
| 59 | + // https://etherscan.io/address/0x3F78BBD206e4D3c504Eb854232EdA7e47E9Fd8FC |
| 60 | + address internal constant UI_POOL_DATA_PROVIDER = 0x3F78BBD206e4D3c504Eb854232EdA7e47E9Fd8FC; |
| 61 | + |
| 62 | + // https://etherscan.io/address/0xe3dFf4052F0bF6134ACb73bEaE8fe2317d71F047 |
| 63 | + address internal constant UI_INCENTIVE_DATA_PROVIDER = 0xe3dFf4052F0bF6134ACb73bEaE8fe2317d71F047; |
| 64 | + |
| 65 | + // https://etherscan.io/address/0xC7be5307ba715ce89b152f3Df0658295b3dbA8E2 |
| 66 | + address internal constant WALLET_BALANCE_PROVIDER = 0xC7be5307ba715ce89b152f3Df0658295b3dbA8E2; |
| 67 | + |
| 68 | + // https://etherscan.io/address/0xe10C78A3AC7f016eD2DE1A89c5479b1039EAB9eA |
| 69 | + address internal constant GHO_DIRECT_MINTER = 0xe10C78A3AC7f016eD2DE1A89c5479b1039EAB9eA; |
| 70 | +} |
| 71 | +library AaveV3EthereumHorizonAssets { |
| 72 | + // https://etherscan.io/address/0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f |
| 73 | + address internal constant GHO_UNDERLYING = 0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f; |
| 74 | + |
| 75 | + uint8 internal constant GHO_DECIMALS = 18; |
| 76 | + |
| 77 | + // https://etherscan.io/address/0x946281A2d0DD6e650d08f74833323D66AE4c8b12 |
| 78 | + address internal constant GHO_A_TOKEN = 0x946281A2d0DD6e650d08f74833323D66AE4c8b12; |
| 79 | + |
| 80 | + // https://etherscan.io/address/0xdec2401c9B0B2E480e627E2a712C11AdDbf46E3e |
| 81 | + address internal constant GHO_V_TOKEN = 0xdec2401c9B0B2E480e627E2a712C11AdDbf46E3e; |
| 82 | + |
| 83 | + // https://etherscan.io/address/0xD110cac5d8682A3b045D5524a9903E031d70FCCd |
| 84 | + address internal constant GHO_ORACLE = 0xD110cac5d8682A3b045D5524a9903E031d70FCCd; |
| 85 | + |
| 86 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 87 | + address internal constant GHO_INTEREST_RATE_STRATEGY = 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 88 | + |
| 89 | + // https://etherscan.io/address/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
| 90 | + address internal constant USDC_UNDERLYING = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; |
| 91 | + |
| 92 | + uint8 internal constant USDC_DECIMALS = 6; |
| 93 | + |
| 94 | + // https://etherscan.io/address/0x68215B6533c47ff9f7125aC95adf00fE4a62f79e |
| 95 | + address internal constant USDC_A_TOKEN = 0x68215B6533c47ff9f7125aC95adf00fE4a62f79e; |
| 96 | + |
| 97 | + // https://etherscan.io/address/0x4139EcBe83d78ef5EFF0A6eDA6f894Be9D590FC7 |
| 98 | + address internal constant USDC_V_TOKEN = 0x4139EcBe83d78ef5EFF0A6eDA6f894Be9D590FC7; |
| 99 | + |
| 100 | + // https://etherscan.io/address/0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6 |
| 101 | + address internal constant USDC_ORACLE = 0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6; |
| 102 | + |
| 103 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 104 | + address internal constant USDC_INTEREST_RATE_STRATEGY = |
| 105 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 106 | + |
| 107 | + // https://etherscan.io/address/0x8292Bb45bf1Ee4d140127049757C2E0fF06317eD |
| 108 | + address internal constant RLUSD_UNDERLYING = 0x8292Bb45bf1Ee4d140127049757C2E0fF06317eD; |
| 109 | + |
| 110 | + uint8 internal constant RLUSD_DECIMALS = 18; |
| 111 | + |
| 112 | + // https://etherscan.io/address/0xE3190143Eb552456F88464662f0c0C4aC67A77eB |
| 113 | + address internal constant RLUSD_A_TOKEN = 0xE3190143Eb552456F88464662f0c0C4aC67A77eB; |
| 114 | + |
| 115 | + // https://etherscan.io/address/0xACE8a1c0eC12aE81814377491265b47F4eE5D3dD |
| 116 | + address internal constant RLUSD_V_TOKEN = 0xACE8a1c0eC12aE81814377491265b47F4eE5D3dD; |
| 117 | + |
| 118 | + // https://etherscan.io/address/0x26C46B7aD0012cA71F2298ada567dC9Af14E7f2A |
| 119 | + address internal constant RLUSD_ORACLE = 0x26C46B7aD0012cA71F2298ada567dC9Af14E7f2A; |
| 120 | + |
| 121 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 122 | + address internal constant RLUSD_INTEREST_RATE_STRATEGY = |
| 123 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 124 | + |
| 125 | + // https://etherscan.io/address/0x43415eB6ff9DB7E26A15b704e7A3eDCe97d31C4e |
| 126 | + address internal constant USTB_UNDERLYING = 0x43415eB6ff9DB7E26A15b704e7A3eDCe97d31C4e; |
| 127 | + |
| 128 | + uint8 internal constant USTB_DECIMALS = 6; |
| 129 | + |
| 130 | + // https://etherscan.io/address/0x4E58a2E433A739726134c83d2f07b2562e8dFdB3 |
| 131 | + address internal constant USTB_A_TOKEN = 0x4E58a2E433A739726134c83d2f07b2562e8dFdB3; |
| 132 | + |
| 133 | + // https://etherscan.io/address/0xC435b02dcBef2e9BdE55e28d39f53ddbe0760a2c |
| 134 | + address internal constant USTB_V_TOKEN = 0xC435b02dcBef2e9BdE55e28d39f53ddbe0760a2c; |
| 135 | + |
| 136 | + // https://etherscan.io/address/0x5Ae4D93B9b9626Dc3289e1Afb14b821FD3C95F44 |
| 137 | + address internal constant USTB_ORACLE = 0x5Ae4D93B9b9626Dc3289e1Afb14b821FD3C95F44; |
| 138 | + |
| 139 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 140 | + address internal constant USTB_INTEREST_RATE_STRATEGY = |
| 141 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 142 | + |
| 143 | + // https://etherscan.io/address/0x14d60E7FDC0D71d8611742720E4C50E7a974020c |
| 144 | + address internal constant USCC_UNDERLYING = 0x14d60E7FDC0D71d8611742720E4C50E7a974020c; |
| 145 | + |
| 146 | + uint8 internal constant USCC_DECIMALS = 6; |
| 147 | + |
| 148 | + // https://etherscan.io/address/0x08b798c40b9AB931356d9aB4235F548325C4cb80 |
| 149 | + address internal constant USCC_A_TOKEN = 0x08b798c40b9AB931356d9aB4235F548325C4cb80; |
| 150 | + |
| 151 | + // https://etherscan.io/address/0xA0Ec4758d806A3F41532C8E97Ea0c85940182B0f |
| 152 | + address internal constant USCC_V_TOKEN = 0xA0Ec4758d806A3F41532C8E97Ea0c85940182B0f; |
| 153 | + |
| 154 | + // https://etherscan.io/address/0x14CB2E810Eb93b79363f489D45a972b609E47230 |
| 155 | + address internal constant USCC_ORACLE = 0x14CB2E810Eb93b79363f489D45a972b609E47230; |
| 156 | + |
| 157 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 158 | + address internal constant USCC_INTEREST_RATE_STRATEGY = |
| 159 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 160 | + |
| 161 | + // https://etherscan.io/address/0x136471a34f6ef19fE571EFFC1CA711fdb8E49f2b |
| 162 | + address internal constant USYC_UNDERLYING = 0x136471a34f6ef19fE571EFFC1CA711fdb8E49f2b; |
| 163 | + |
| 164 | + uint8 internal constant USYC_DECIMALS = 6; |
| 165 | + |
| 166 | + // https://etherscan.io/address/0xc167932AC4EEc2B65844EF00D31b4550250536A5 |
| 167 | + address internal constant USYC_A_TOKEN = 0xc167932AC4EEc2B65844EF00D31b4550250536A5; |
| 168 | + |
| 169 | + // https://etherscan.io/address/0x818d560Bf1e54f92D1089710F9F4b29C2e6c9248 |
| 170 | + address internal constant USYC_V_TOKEN = 0x818d560Bf1e54f92D1089710F9F4b29C2e6c9248; |
| 171 | + |
| 172 | + // https://etherscan.io/address/0xE8E65Fb9116875012F5990Ecaab290B3531DbeB9 |
| 173 | + address internal constant USYC_ORACLE = 0xE8E65Fb9116875012F5990Ecaab290B3531DbeB9; |
| 174 | + |
| 175 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 176 | + address internal constant USYC_INTEREST_RATE_STRATEGY = |
| 177 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 178 | + |
| 179 | + // https://etherscan.io/address/0x8c213ee79581Ff4984583C6a801e5263418C4b86 |
| 180 | + address internal constant JTRSY_UNDERLYING = 0x8c213ee79581Ff4984583C6a801e5263418C4b86; |
| 181 | + |
| 182 | + uint8 internal constant JTRSY_DECIMALS = 6; |
| 183 | + |
| 184 | + // https://etherscan.io/address/0x844f07AB09aa5dBDCE6A9b1206CE150E1eaDacCb |
| 185 | + address internal constant JTRSY_A_TOKEN = 0x844f07AB09aa5dBDCE6A9b1206CE150E1eaDacCb; |
| 186 | + |
| 187 | + // https://etherscan.io/address/0x327f61fA4BE6F578DB5cc51e40da4eC4361a349c |
| 188 | + address internal constant JTRSY_V_TOKEN = 0x327f61fA4BE6F578DB5cc51e40da4eC4361a349c; |
| 189 | + |
| 190 | + // https://etherscan.io/address/0xfAB6790E399f0481e1303167c655b3c39ee6e7A0 |
| 191 | + address internal constant JTRSY_ORACLE = 0xfAB6790E399f0481e1303167c655b3c39ee6e7A0; |
| 192 | + |
| 193 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 194 | + address internal constant JTRSY_INTEREST_RATE_STRATEGY = |
| 195 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 196 | + |
| 197 | + // https://etherscan.io/address/0x5a0F93D040De44e78F251b03c43be9CF317Dcf64 |
| 198 | + address internal constant JAAA_UNDERLYING = 0x5a0F93D040De44e78F251b03c43be9CF317Dcf64; |
| 199 | + |
| 200 | + uint8 internal constant JAAA_DECIMALS = 6; |
| 201 | + |
| 202 | + // https://etherscan.io/address/0xB0EC6c4482Ac1Ef77bE239C0AC833CF37A27c876 |
| 203 | + address internal constant JAAA_A_TOKEN = 0xB0EC6c4482Ac1Ef77bE239C0AC833CF37A27c876; |
| 204 | + |
| 205 | + // https://etherscan.io/address/0x7bd81B1e0137Fc0fa013b1De2Be81180814C5deb |
| 206 | + address internal constant JAAA_V_TOKEN = 0x7bd81B1e0137Fc0fa013b1De2Be81180814C5deb; |
| 207 | + |
| 208 | + // https://etherscan.io/address/0xF77f2537dba4ffD60f77fACdfB2c1706364fA03d |
| 209 | + address internal constant JAAA_ORACLE = 0xF77f2537dba4ffD60f77fACdfB2c1706364fA03d; |
| 210 | + |
| 211 | + // https://etherscan.io/address/0x87593272C06f4FC49EC2942eBda0972d2F1Ab521 |
| 212 | + address internal constant JAAA_INTEREST_RATE_STRATEGY = |
| 213 | + 0x87593272C06f4FC49EC2942eBda0972d2F1Ab521; |
| 214 | +} |
| 215 | +library AaveV3EthereumHorizonEModes { |
| 216 | + uint8 internal constant NONE = 0; |
| 217 | + |
| 218 | + uint8 internal constant __ = 9; |
| 219 | + |
| 220 | + uint8 internal constant USTB__GHO = 2; |
| 221 | + |
| 222 | + uint8 internal constant USCC__GHO = 4; |
| 223 | + |
| 224 | + uint8 internal constant USYC__GHO = 6; |
| 225 | + |
| 226 | + uint8 internal constant JTRSY__GHO = 8; |
| 227 | + |
| 228 | + uint8 internal constant JAAA__GHO = 10; |
| 229 | +} |
| 230 | +library AaveV3EthereumHorizonExternalLibraries { |
| 231 | + // https://etherscan.io/address/0x34039100cc9584Ae5D741d322e16d0d18CEE8770 |
| 232 | + address internal constant FLASHLOAN_LOGIC = 0x34039100cc9584Ae5D741d322e16d0d18CEE8770; |
| 233 | + |
| 234 | + // https://etherscan.io/address/0x62325c94E1c49dcDb5937726aB5D8A4c37bCAd36 |
| 235 | + address internal constant BORROW_LOGIC = 0x62325c94E1c49dcDb5937726aB5D8A4c37bCAd36; |
| 236 | + |
| 237 | + // https://etherscan.io/address/0x4731bF01583F991278692E8727d0700a00A1fBBf |
| 238 | + address internal constant LIQUIDATION_LOGIC = 0x4731bF01583F991278692E8727d0700a00A1fBBf; |
| 239 | + |
| 240 | + // https://etherscan.io/address/0xf8C97539934ee66a67C26010e8e027D77E821B0C |
| 241 | + address internal constant POOL_LOGIC = 0xf8C97539934ee66a67C26010e8e027D77E821B0C; |
| 242 | + |
| 243 | + // https://etherscan.io/address/0x185477906B46D9b8DE0DEB73A1bBfb87b5b51BC3 |
| 244 | + address internal constant SUPPLY_LOGIC = 0x185477906B46D9b8DE0DEB73A1bBfb87b5b51BC3; |
| 245 | +} |
0 commit comments