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

Test Aave v3.3 #898

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Test Aave v3.3 #898

wants to merge 3 commits into from

Conversation

QGarchery
Copy link
Contributor

@QGarchery QGarchery commented Dec 20, 2024

Not meant to be merged, as it's only useful before the v3.3 update. After the update, the new code will automatically be tested.

Limitation: for now it is testing by compiling everything with the same version, but ma3 is compiled with 0.8.17 and aave-v3.3 is compiled with >=0.8.20

@QGarchery QGarchery self-assigned this Dec 20, 2024
@@ -8,7 +8,7 @@ config/=config/
@morpho-utils/=lib/morpho-utils/src/
@morpho-data-structures/=lib/morpho-data-structures/src/

@openzeppelin/=lib/morpho-utils/lib/openzeppelin-contracts/
@openzeppelin/contracts/=lib/morpho-utils/lib/openzeppelin-contracts/contracts/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix an issue where the remapping used is captured to be the one in the new aave-v3-origin submodule

@@ -21,7 +21,7 @@ import {Errors as AaveErrors} from "@aave-v3-core/protocol/libraries/helpers/Err
import {ReserveConfiguration} from "@aave-v3-core/protocol/libraries/configuration/ReserveConfiguration.sol";

import {PermitHash} from "@permit2/libraries/PermitHash.sol";
import {IAllowanceTransfer, AllowanceTransfer} from "@permit2/AllowanceTransfer.sol";
import {IAllowanceTransfer} from "@permit2/AllowanceTransfer.sol";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to avoid having to compile with 0.8.17 exactly, as the version is fixed in AllowanceTransfer (but not in IAllowanceTransfer)

Comment on lines +39 to +41
interface IAllowanceTransferExtended is IAllowanceTransfer {
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed because DOMAIN_SEPARATOR is used by the tests, on top of functions in IAllowanceTransfer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant