Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update aave helpers #153

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/aave-address-book
Submodule aave-address-book updated 71 files
+1 −1 .github/workflows/cron.yml
+3 −45 README.md
+6 −0 foundry.toml
+3 −3 package.json
+22 −0 scripts/configs/abis.ts
+6 −1 scripts/configs/networks/arbitrum.ts
+6 −1 scripts/configs/networks/avalanche.ts
+6 −1 scripts/configs/networks/base.ts
+12 −0 scripts/configs/networks/bnb.ts
+23 −3 scripts/configs/networks/ethereum.ts
+12 −0 scripts/configs/networks/metis.ts
+6 −1 scripts/configs/networks/optimism.ts
+9 −2 scripts/configs/networks/polygon.ts
+1 −1 scripts/configs/pools/arbitrum.ts
+2 −2 scripts/configs/pools/avalanche.ts
+1 −1 scripts/configs/pools/base.ts
+3 −3 scripts/configs/pools/ethereum.ts
+1 −1 scripts/configs/pools/metis.ts
+1 −1 scripts/configs/pools/optimism.ts
+2 −2 scripts/configs/pools/polygon.ts
+6 −3 scripts/configs/types.ts
+14 −1 scripts/generateABIs.ts
+2 −4 scripts/generateAddresses.ts
+5 −1 scripts/generator/abis.ts
+0 −1 scripts/generator/clients.ts
+0 −160 scripts/generator/miscGenerator.ts
+13 −9 scripts/generator/networkGenerator.ts
+1 −2 src/AaveAddressBook.sol
+0 −104 src/AaveMisc.sol
+1 −1 src/AaveV2Avalanche.sol
+1 −1 src/AaveV2Ethereum.sol
+1 −1 src/AaveV2EthereumAMM.sol
+1 −1 src/AaveV2Polygon.sol
+4 −4 src/AaveV3Arbitrum.sol
+2 −2 src/AaveV3Avalanche.sol
+1 −1 src/AaveV3Base.sol
+42 −2 src/AaveV3Ethereum.sol
+2 −2 src/AaveV3Metis.sol
+4 −4 src/AaveV3Optimism.sol
+2 −2 src/AaveV3Polygon.sol
+9 −0 src/MiscArbitrum.sol
+9 −0 src/MiscAvalanche.sol
+9 −0 src/MiscBase.sol
+28 −0 src/MiscEthereum.sol
+14 −0 src/MiscMetis.sol
+9 −0 src/MiscOptimism.sol
+12 −0 src/MiscPolygon.sol
+5 −1 src/ts/AaveAddressBook.ts
+0 −87 src/ts/AaveMisc.ts
+1 −1 src/ts/AaveV2Avalanche.ts
+1 −1 src/ts/AaveV2Ethereum.ts
+1 −1 src/ts/AaveV2EthereumAMM.ts
+1 −1 src/ts/AaveV2Polygon.ts
+3 −3 src/ts/AaveV3Arbitrum.ts
+2 −2 src/ts/AaveV3Avalanche.ts
+1 −1 src/ts/AaveV3Base.ts
+22 −2 src/ts/AaveV3Ethereum.ts
+2 −2 src/ts/AaveV3Metis.ts
+3 −3 src/ts/AaveV3Optimism.ts
+2 −2 src/ts/AaveV3Polygon.ts
+9 −0 src/ts/MiscArbitrum.ts
+9 −0 src/ts/MiscAvalanche.ts
+9 −0 src/ts/MiscBase.ts
+24 −0 src/ts/MiscEthereum.ts
+9 −0 src/ts/MiscMetis.ts
+9 −0 src/ts/MiscOptimism.ts
+12 −0 src/ts/MiscPolygon.ts
+344 −0 src/ts/abis/IGovernanceDataHelper.ts
+66 −0 src/ts/abis/IMetaDelegateHelper.ts
+200 −0 src/ts/abis/IPayloadsControllerDataHelper.ts
+179 −0 src/ts/abis/IVotingMachineDataHelper.ts
14 changes: 7 additions & 7 deletions scripts/RiskStewards.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract DeployEth is EthereumScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Ethereum.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Ethereum.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Ethereum.CONFIG_ENGINE),
0x47c71dFEB55Ebaa431Ae3fbF99Ea50e0D3d30fA8
);
}
Expand All @@ -26,7 +26,7 @@ contract DeployPol is PolygonScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Polygon.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Polygon.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Polygon.CONFIG_ENGINE),
0x2C40FB1ACe63084fc0bB95F83C31B5854C6C4cB5
);
}
Expand All @@ -36,7 +36,7 @@ contract DeployOpt is OptimismScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Optimism.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Optimism.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Optimism.CONFIG_ENGINE),
0xCb86256A994f0c505c5e15c75BF85fdFEa0F2a56
);
}
Expand All @@ -46,7 +46,7 @@ contract DeployArb is ArbitrumScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Arbitrum.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Arbitrum.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Arbitrum.CONFIG_ENGINE),
0x3Be327F22eB4BD8042e6944073b8826dCf357Aa2
);
}
Expand All @@ -56,7 +56,7 @@ contract DeployMet is MetisScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Metis.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Metis.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Metis.CONFIG_ENGINE),
0x0f547846920C34E70FBE4F3d87E46452a3FeAFfa
);
}
Expand All @@ -66,7 +66,7 @@ contract DeployAva is AvalancheScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Avalanche.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Avalanche.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Avalanche.CONFIG_ENGINE),
0xCa66149425E7DC8f81276F6D80C4b486B9503D1a
);
}
Expand All @@ -76,7 +76,7 @@ contract DeployBas is BaseScript {
function run() external broadcast {
new CapsPlusRiskSteward(
AaveV3Base.AAVE_PROTOCOL_DATA_PROVIDER,
IAaveV3ConfigEngine(AaveV3Base.LISTING_ENGINE),
IAaveV3ConfigEngine(AaveV3Base.CONFIG_ENGINE),
0xfbeB4AcB31340bA4de9C87B11dfBf7e2bc8C0bF1
);
}
Expand Down
33 changes: 16 additions & 17 deletions scripts/V2RateStrategyFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ pragma solidity ^0.8.0;

import {ILendingPoolAddressesProvider, IDefaultInterestRateStrategy, ILendingPool} from 'aave-address-book/AaveV2.sol';
import {AaveGovernanceV2} from 'aave-address-book/AaveGovernanceV2.sol';
import {AaveMisc} from 'aave-address-book/AaveMisc.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {MiscPolygon} from 'aave-address-book/MiscPolygon.sol';
import {MiscAvalanche} from 'aave-address-book/MiscAvalanche.sol';
import {ITransparentProxyFactory} from 'solidity-utils/contracts/transparent-proxy/interfaces/ITransparentProxyFactory.sol';
import {V2RateStrategyFactory} from '../src/v2-config-engine/V2RateStrategyFactory.sol';
import '../src/ScriptUtils.sol';

library DeployV2RatesFactoryLib {
function _getUniqueStrategiesOnPool(ILendingPool pool)
internal
view
returns (IDefaultInterestRateStrategy[] memory)
{
function _getUniqueStrategiesOnPool(
ILendingPool pool
) internal view returns (IDefaultInterestRateStrategy[] memory) {
address[] memory listedAssets = pool.getReservesList();
IDefaultInterestRateStrategy[] memory uniqueRateStrategies = new IDefaultInterestRateStrategy[](
listedAssets.length
Expand Down Expand Up @@ -68,9 +68,8 @@ library DeployV2RatesFactoryLib {
// To make sure strategies initialised on the factory respect the standard code
// We do so by checking if the strategy to initialise matches the standard deployed rates address codehash
function _isStandardStrategy(address strategy) internal view returns (bool) {
return (
strategy.codehash == 0xd7aa7ce390578e74a5e48d4f530f22cbd75db8437fd6a1ae0a983e550483d972 // Current standard codehash deployed from factory
);
return (strategy.codehash ==
0xd7aa7ce390578e74a5e48d4f530f22cbd75db8437fd6a1ae0a983e550483d972); // Current standard codehash deployed from factory
}
}

Expand All @@ -79,8 +78,8 @@ library DeployV2RatesFactoryEthLib {
return
DeployV2RatesFactoryLib._createAndSetupRatesFactory(
AaveV2Ethereum.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_ETHEREUM,
AaveMisc.PROXY_ADMIN_ETHEREUM
MiscEthereum.TRANSPARENT_PROXY_FACTORY,
MiscEthereum.PROXY_ADMIN
);
}
}
Expand All @@ -90,8 +89,8 @@ library DeployV2RatesFactoryEthAMMLib {
return
DeployV2RatesFactoryLib._createAndSetupRatesFactory(
AaveV2EthereumAMM.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_ETHEREUM,
AaveMisc.PROXY_ADMIN_ETHEREUM
MiscEthereum.TRANSPARENT_PROXY_FACTORY,
MiscEthereum.PROXY_ADMIN
);
}
}
Expand All @@ -101,8 +100,8 @@ library DeployV2RatesFactoryPolLib {
return
DeployV2RatesFactoryLib._createAndSetupRatesFactory(
AaveV2Polygon.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_POLYGON,
AaveMisc.PROXY_ADMIN_POLYGON
MiscPolygon.TRANSPARENT_PROXY_FACTORY,
MiscPolygon.PROXY_ADMIN
);
}
}
Expand All @@ -112,8 +111,8 @@ library DeployV2RatesFactoryAvaLib {
return
DeployV2RatesFactoryLib._createAndSetupRatesFactory(
AaveV2Avalanche.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_AVALANCHE,
AaveMisc.PROXY_ADMIN_AVALANCHE
MiscAvalanche.TRANSPARENT_PROXY_FACTORY,
MiscAvalanche.PROXY_ADMIN
);
}
}
Expand Down
36 changes: 21 additions & 15 deletions scripts/V3RateStrategyFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ pragma solidity ^0.8.0;
import '../src/ScriptUtils.sol';
import {IPoolAddressesProvider, IPool, IDefaultInterestRateStrategy} from 'aave-address-book/AaveV3.sol';
import {AaveGovernanceV2} from 'aave-address-book/AaveGovernanceV2.sol';
import {AaveMisc} from 'aave-address-book/AaveMisc.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {MiscPolygon} from 'aave-address-book/MiscPolygon.sol';
import {MiscAvalanche} from 'aave-address-book/MiscAvalanche.sol';
import {MiscMetis} from 'aave-address-book/MiscMetis.sol';
import {MiscBase} from 'aave-address-book/MiscBase.sol';
import {MiscArbitrum} from 'aave-address-book/MiscArbitrum.sol';
import {MiscOptimism} from 'aave-address-book/MiscOptimism.sol';
import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol';
import {AaveV3Optimism} from 'aave-address-book/AaveV3Optimism.sol';
import {AaveV3Arbitrum} from 'aave-address-book/AaveV3Arbitrum.sol';
Expand Down Expand Up @@ -78,8 +84,8 @@ library DeployRatesFactoryEthLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Ethereum.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_ETHEREUM,
AaveMisc.PROXY_ADMIN_ETHEREUM
MiscEthereum.TRANSPARENT_PROXY_FACTORY,
MiscEthereum.PROXY_ADMIN
);
}
}
Expand All @@ -89,8 +95,8 @@ library DeployRatesFactoryOptLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Optimism.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_OPTIMISM,
AaveMisc.PROXY_ADMIN_OPTIMISM
MiscOptimism.TRANSPARENT_PROXY_FACTORY,
MiscOptimism.PROXY_ADMIN
);
}
}
Expand All @@ -100,8 +106,8 @@ library DeployRatesFactoryArbLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Arbitrum.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_ARBITRUM,
AaveMisc.PROXY_ADMIN_ARBITRUM
MiscArbitrum.TRANSPARENT_PROXY_FACTORY,
MiscArbitrum.PROXY_ADMIN
);
}
}
Expand All @@ -111,8 +117,8 @@ library DeployRatesFactoryPolLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Polygon.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_POLYGON,
AaveMisc.PROXY_ADMIN_POLYGON
MiscPolygon.TRANSPARENT_PROXY_FACTORY,
MiscPolygon.PROXY_ADMIN
);
}
}
Expand All @@ -122,8 +128,8 @@ library DeployRatesFactoryAvaLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Avalanche.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_AVALANCHE,
AaveMisc.PROXY_ADMIN_AVALANCHE
MiscAvalanche.TRANSPARENT_PROXY_FACTORY,
MiscAvalanche.PROXY_ADMIN
);
}
}
Expand All @@ -133,8 +139,8 @@ library DeployRatesFactoryMetLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Metis.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_METIS,
AaveMisc.PROXY_ADMIN_METIS
MiscMetis.TRANSPARENT_PROXY_FACTORY,
MiscMetis.PROXY_ADMIN
);
}
}
Expand All @@ -144,8 +150,8 @@ library DeployRatesFactoryBasLib {
return
DeployRatesFactoryLib._createAndSetupRatesFactory(
AaveV3Base.POOL_ADDRESSES_PROVIDER,
AaveMisc.TRANSPARENT_PROXY_FACTORY_BASE,
AaveMisc.PROXY_ADMIN_BASE
MiscBase.TRANSPARENT_PROXY_FACTORY,
MiscBase.PROXY_ADMIN
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/CommonTestBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity >=0.7.5 <0.9.0;
import 'forge-std/StdJson.sol';
import 'forge-std/Test.sol';
import {IERC20} from 'solidity-utils/contracts/oz-common/interfaces/IERC20.sol';
import {AaveMisc} from 'aave-address-book/AaveMisc.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {AaveV2EthereumAssets} from 'aave-address-book/AaveV2Ethereum.sol';
import {AaveV3OptimismAssets} from 'aave-address-book/AaveV3Optimism.sol';
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
Expand Down Expand Up @@ -65,7 +65,7 @@ contract CommonTestBase is Test {
}
// AAVE
if (asset == AaveV3EthereumAssets.AAVE_UNDERLYING) {
vm.startPrank(AaveMisc.ECOSYSTEM_RESERVE);
vm.startPrank(MiscEthereum.ECOSYSTEM_RESERVE);
IERC20(asset).transfer(user, amount);
return true;
}
Expand Down
6 changes: 3 additions & 3 deletions src/GovHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {IPoolAddressesProvider} from 'aave-address-book/AaveV3.sol';
import {AaveV3Avalanche} from 'aave-address-book/AaveV3Avalanche.sol';
import {AaveV3Harmony} from 'aave-address-book/AaveV3Harmony.sol';
import {AaveV3Fantom} from 'aave-address-book/AaveV3Fantom.sol';
import {AaveMisc} from 'aave-address-book/AaveMisc.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {ProxyHelpers} from './ProxyHelpers.sol';
import {ChainIds} from './ChainIds.sol';
import {StorageHelpers} from './StorageHelpers.sol';
Expand Down Expand Up @@ -211,8 +211,8 @@ library GovHelpers {
Payload[] memory payloads,
address executor
) internal returns (uint256) {
vm.deal(AaveMisc.ECOSYSTEM_RESERVE, 1 ether);
vm.startPrank(AaveMisc.ECOSYSTEM_RESERVE);
vm.deal(MiscEthereum.ECOSYSTEM_RESERVE, 1 ether);
vm.startPrank(MiscEthereum.ECOSYSTEM_RESERVE);
uint256 proposalId = _createProposal(executor, payloads, bytes32('test'), false);
vm.stopPrank();
return proposalId;
Expand Down
4 changes: 2 additions & 2 deletions src/GovV3Helpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {GovernanceV3Ethereum} from 'aave-address-book/GovernanceV3Ethereum.sol';
import {GovernanceV3Metis} from 'aave-address-book/GovernanceV3Metis.sol';
import {GovernanceV3Base} from 'aave-address-book/GovernanceV3Base.sol';
import {GovernanceV3BNB} from 'aave-address-book/GovernanceV3BNB.sol';
import {AaveMisc} from 'aave-address-book/AaveMisc.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {StorageHelpers} from './StorageHelpers.sol';

library GovV3Helpers {
Expand Down Expand Up @@ -656,7 +656,7 @@ library GovV3StorageHelpers {
vm.store(
address(GovernanceV3Ethereum.GOVERNANCE),
bytes32(proposalBaseSlot + 1),
bytes32(uint256(uint160(AaveMisc.ECOSYSTEM_RESERVE)))
bytes32(uint256(uint160(MiscEthereum.ECOSYSTEM_RESERVE)))
);
// overwrite array size
vm.store(
Expand Down
6 changes: 3 additions & 3 deletions src/swaps/AaveSwapperDeployment.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pragma solidity ^0.8.0;

import {Script} from 'forge-std/Script.sol';
import {AaveMisc} from 'aave-address-book/AaveMisc.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {TransparentProxyFactory} from 'solidity-utils/contracts/transparent-proxy/TransparentProxyFactory.sol';

import {AaveSwapper} from './AaveSwapper.sol';
Expand All @@ -13,9 +13,9 @@ contract DeplyAaveSwapper is Script {
vm.startBroadcast();

address aaveSwapper = address(new AaveSwapper());
TransparentProxyFactory(AaveMisc.TRANSPARENT_PROXY_FACTORY_ETHEREUM).create(
TransparentProxyFactory(MiscEthereum.TRANSPARENT_PROXY_FACTORY).create(
aaveSwapper,
AaveMisc.PROXY_ADMIN_ETHEREUM,
MiscEthereum.PROXY_ADMIN,
abi.encodeWithSelector(AaveSwapper.initialize.selector)
);

Expand Down
2 changes: 1 addition & 1 deletion src/v2-config-engine/AaveV2PayloadAvalanche.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './AaveV2PayloadBase.sol';
*/
// TODO: Add rates factory address after deploying
abstract contract AaveV2PayloadAvalanche is
AaveV2PayloadBase(IEngine(AaveV2Avalanche.LISTING_ENGINE))
AaveV2PayloadBase(IEngine(AaveV2Avalanche.CONFIG_ENGINE))
{

}
2 changes: 1 addition & 1 deletion src/v2-config-engine/AaveV2PayloadEthereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './AaveV2PayloadBase.sol';
*/
// TODO: Add rates factory address after deploying
abstract contract AaveV2PayloadEthereum is
AaveV2PayloadBase(IEngine(AaveV2Ethereum.LISTING_ENGINE))
AaveV2PayloadBase(IEngine(AaveV2Ethereum.CONFIG_ENGINE))
{

}
2 changes: 1 addition & 1 deletion src/v2-config-engine/AaveV2PayloadEthereumAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import './AaveV2PayloadBase.sol';
*/
// TODO: Add rates factory address after deploying
abstract contract AaveV2PayloadEthereumAMM is
AaveV2PayloadBase(IEngine(AaveV2EthereumAMM.LISTING_ENGINE))
AaveV2PayloadBase(IEngine(AaveV2EthereumAMM.CONFIG_ENGINE))
{

}
2 changes: 1 addition & 1 deletion src/v2-config-engine/AaveV2PayloadPolygon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import './AaveV2PayloadBase.sol';
* @author BGD Labs
*/
// TODO: Add rates factory address after deploying
abstract contract AaveV2PayloadPolygon is AaveV2PayloadBase(IEngine(AaveV2Polygon.LISTING_ENGINE)) {
abstract contract AaveV2PayloadPolygon is AaveV2PayloadBase(IEngine(AaveV2Polygon.CONFIG_ENGINE)) {

}
2 changes: 1 addition & 1 deletion src/v3-config-engine/AaveV3PayloadArbitrum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './AaveV3Payload.sol';
* @dev Base smart contract for an Aave v3.0.1 (compatible with 3.0.0) listing on v3 Arbitrum.
* @author BGD Labs
*/
abstract contract AaveV3PayloadArbitrum is AaveV3Payload(IEngine(AaveV3Arbitrum.LISTING_ENGINE)) {
abstract contract AaveV3PayloadArbitrum is AaveV3Payload(IEngine(AaveV3Arbitrum.CONFIG_ENGINE)) {
function getPoolContext() public pure override returns (IEngine.PoolContext memory) {
return IEngine.PoolContext({networkName: 'Arbitrum', networkAbbreviation: 'Arb'});
}
Expand Down
2 changes: 1 addition & 1 deletion src/v3-config-engine/AaveV3PayloadAvalanche.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './AaveV3Payload.sol';
* @dev Base smart contract for an Aave v3.0.1 (compatible with 3.0.0) listing on v3 Avalanche.
* @author BGD Labs
*/
abstract contract AaveV3PayloadAvalanche is AaveV3Payload(IEngine(AaveV3Avalanche.LISTING_ENGINE)) {
abstract contract AaveV3PayloadAvalanche is AaveV3Payload(IEngine(AaveV3Avalanche.CONFIG_ENGINE)) {
function getPoolContext() public pure override returns (IEngine.PoolContext memory) {
return IEngine.PoolContext({networkName: 'Avalanche', networkAbbreviation: 'Ava'});
}
Expand Down
2 changes: 1 addition & 1 deletion src/v3-config-engine/AaveV3PayloadBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './AaveV3Payload.sol';
* @dev Base smart contract for an Aave v3.0.2 (compatible with 3.0.0) listing on v3 Base.
* @author BGD Labs
*/
abstract contract AaveV3PayloadBase is AaveV3Payload(IEngine(AaveV3Base.LISTING_ENGINE)) {
abstract contract AaveV3PayloadBase is AaveV3Payload(IEngine(AaveV3Base.CONFIG_ENGINE)) {
function getPoolContext() public pure override returns (IEngine.PoolContext memory) {
return IEngine.PoolContext({networkName: 'Base', networkAbbreviation: 'Bas'});
}
Expand Down
2 changes: 1 addition & 1 deletion src/v3-config-engine/AaveV3PayloadEthereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './AaveV3Payload.sol';
* @dev Base smart contract for an Aave v3.0.1 (compatible with 3.0.0) listing on v3 Ethereum.
* @author BGD Labs
*/
abstract contract AaveV3PayloadEthereum is AaveV3Payload(IEngine(AaveV3Ethereum.LISTING_ENGINE)) {
abstract contract AaveV3PayloadEthereum is AaveV3Payload(IEngine(AaveV3Ethereum.CONFIG_ENGINE)) {
function getPoolContext() public pure override returns (IEngine.PoolContext memory) {
return IEngine.PoolContext({networkName: 'Ethereum', networkAbbreviation: 'Eth'});
}
Expand Down
2 changes: 1 addition & 1 deletion src/v3-config-engine/AaveV3PayloadMetis.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './AaveV3Payload.sol';
* @dev Base smart contract for an Aave v3.0.2 (compatible with 3.0.0) listing on v3 Metis.
* @author BGD Labs
*/
abstract contract AaveV3PayloadMetis is AaveV3Payload(IEngine(AaveV3Metis.LISTING_ENGINE)) {
abstract contract AaveV3PayloadMetis is AaveV3Payload(IEngine(AaveV3Metis.CONFIG_ENGINE)) {
function getPoolContext() public pure override returns (IEngine.PoolContext memory) {
return IEngine.PoolContext({networkName: 'Metis', networkAbbreviation: 'Met'});
}
Expand Down
Loading