-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: main
Are you sure you want to change the base?
Test Aave v3.3 #898
Conversation
@@ -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/ |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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)
interface IAllowanceTransferExtended is IAllowanceTransfer { | ||
function DOMAIN_SEPARATOR() external view returns (bytes32); | ||
} |
There was a problem hiding this comment.
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
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