Skip to content

Commit

Permalink
Fix/backwards compatibility (#51)
Browse files Browse the repository at this point in the history
* fix: add core as library

* fix: removed custom interface for rate strategy in favor of aave-v3-core

* fix: adds v3 ethereum protocol addresses. adds patch to take into acc… (#49)

* fix: adds v3 ethereum protocol addresses. adds patch to take into account pools that have no reserves

* fix: added extra addresses

* fix: added extra addresses for v3 ethereum

* fix: correct checksummed addresses

* fix: added draft

* fix: added castings and struct for backwards compatibility

* forge install: aave-v3-core

v1.16.2

* fix: updated lib and toml

* fix: removed TokenData as its not usable

* fix: removed unneeded remapping

Co-authored-by: Lukas <[email protected]>
  • Loading branch information
sendra and sakulstra authored Dec 22, 2022
1 parent e985114 commit 1ae9d6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aave-v3-core
Submodule aave-v3-core updated 77 files
+2 −2 Certora/certora/harness/ATokenHarness.sol
+2 −2 Certora/certora/harness/GenericLogicHarness.sol
+1 −1 Certora/certora/harness/PoolConfiguratorHarness.sol
+2 −2 Certora/certora/harness/PoolHarnessForConfigurator.sol
+1 −1 Certora/certora/harness/StableDebtTokenHarness.sol
+1 −1 contracts/dependencies/openzeppelin/contracts/Address.sol
+1 −1 contracts/dependencies/openzeppelin/contracts/IERC20.sol
+1 −1 contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol
+1 −1 contracts/dependencies/openzeppelin/contracts/SafeMath.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/BaseAdminUpgradeabilityProxy.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/Initializable.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/InitializableAdminUpgradeabilityProxy.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/Proxy.sol
+1 −1 contracts/dependencies/openzeppelin/upgradeability/UpgradeabilityProxy.sol
+1 −1 contracts/flashloan/interfaces/IFlashLoanReceiver.sol
+1 −1 contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol
+1 −1 contracts/interfaces/IACLManager.sol
+11 −11 contracts/interfaces/IAToken.sol
+2 −2 contracts/interfaces/IAaveIncentivesController.sol
+3 −3 contracts/interfaces/ICreditDelegationToken.sol
+1 −1 contracts/interfaces/IDelegationToken.sol
+1 −1 contracts/interfaces/IERC20WithPermit.sol
+2 −2 contracts/interfaces/IInitializableAToken.sol
+2 −2 contracts/interfaces/IInitializableDebtToken.sol
+1 −1 contracts/interfaces/IL2Pool.sol
+51 −44 contracts/interfaces/IPool.sol
+9 −9 contracts/interfaces/IPoolAddressesProvider.sol
+4 −4 contracts/interfaces/IPoolAddressesProviderRegistry.sol
+45 −45 contracts/interfaces/IPoolConfigurator.sol
+1 −1 contracts/interfaces/IPoolDataProvider.sol
+3 −3 contracts/interfaces/IPriceOracle.sol
+4 −4 contracts/interfaces/IPriceOracleGetter.sol
+7 −7 contracts/interfaces/IScaledBalanceToken.sol
+13 −13 contracts/interfaces/IStableDebtToken.sol
+4 −4 contracts/interfaces/IVariableDebtToken.sol
+1 −1 contracts/misc/AaveOracle.sol
+1 −1 contracts/mocks/tests/MockReserveInterestRateStrategy.sol
+4 −4 contracts/mocks/upgradeability/MockInitializableImplementation.sol
+3 −3 contracts/protocol/configuration/PoolAddressesProvider.sol
+1 −1 contracts/protocol/configuration/PoolAddressesProviderRegistry.sol
+2 −2 contracts/protocol/configuration/PriceOracleSentinel.sol
+2 −2 contracts/protocol/libraries/aave-upgradeability/VersionedInitializable.sol
+39 −39 contracts/protocol/libraries/configuration/ReserveConfiguration.sol
+10 −10 contracts/protocol/libraries/configuration/UserConfiguration.sol
+1 −1 contracts/protocol/libraries/helpers/Helpers.sol
+2 −2 contracts/protocol/libraries/logic/BridgeLogic.sol
+2 −2 contracts/protocol/libraries/logic/EModeLogic.sol
+4 −4 contracts/protocol/libraries/logic/GenericLogic.sol
+3 −3 contracts/protocol/libraries/logic/LiquidationLogic.sol
+4 −4 contracts/protocol/libraries/logic/PoolLogic.sol
+9 −11 contracts/protocol/libraries/logic/ReserveLogic.sol
+5 −5 contracts/protocol/libraries/logic/ValidationLogic.sol
+3 −3 contracts/protocol/libraries/math/MathUtils.sol
+3 −3 contracts/protocol/libraries/math/PercentageMath.sol
+7 −7 contracts/protocol/libraries/math/WadRayMath.sol
+2 −2 contracts/protocol/pool/DefaultReserveInterestRateStrategy.sol
+1 −0 contracts/protocol/pool/L2Pool.sol
+5 −5 contracts/protocol/pool/Pool.sol
+6 −6 contracts/protocol/pool/PoolConfigurator.sol
+2 −2 contracts/protocol/tokenization/AToken.sol
+1 −1 contracts/protocol/tokenization/DelegationAwareAToken.sol
+6 −6 contracts/protocol/tokenization/StableDebtToken.sol
+2 −2 contracts/protocol/tokenization/VariableDebtToken.sol
+2 −2 contracts/protocol/tokenization/base/DebtTokenBase.sol
+1 −1 contracts/protocol/tokenization/base/EIP712Base.sol
+7 −7 contracts/protocol/tokenization/base/IncentivizedERC20.sol
+2 −2 contracts/protocol/tokenization/base/MintableIncentivizedERC20.sol
+5 −5 contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol
+0 −1 docker-compose.yml
+2 −2 package-lock.json
+2 −3 package.json
+1 −1 test-suites/__setup.spec.ts
+1 −1 test-suites/helpers/scenario-engine.ts
+115 −31 test-suites/pool-edge.spec.ts
2 changes: 2 additions & 0 deletions src/AaveV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {IACLManager} from 'aave-v3-core/contracts/interfaces/IACLManager.sol';
import {IPoolDataProvider} from 'aave-v3-core/contracts/interfaces/IPoolDataProvider.sol';
import {IDefaultInterestRateStrategy} from "aave-v3-core/contracts/interfaces/IDefaultInterestRateStrategy.sol";
import {IReserveInterestRateStrategy} from "aave-v3-core/contracts/interfaces/IReserveInterestRateStrategy.sol";
import {IDefaultInterestRateStrategy as IInterestRateStrategy} from "aave-v3-core/contracts/interfaces/IDefaultInterestRateStrategy.sol";
import {IPoolDataProvider as IAaveProtocolDataProvider} from 'aave-v3-core/contracts/interfaces/IPoolDataProvider.sol';

/**
* @title ICollector
Expand Down
1 change: 1 addition & 0 deletions src/test/AaveV3Avalanche.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity >=0.6.0;

import 'forge-std/Test.sol';
import {AaveV3Avalanche} from '../AaveAddressBook.sol';
import {IInterestRateStrategy, IAaveProtocolDataProvider, IPoolDataProvider, IDefaultInterestRateStrategy} from '../AaveV3.sol';

contract AaveAddressBookTest is Test {
function setUp() public {}
Expand Down

0 comments on commit 1ae9d6e

Please sign in to comment.