-
Notifications
You must be signed in to change notification settings - Fork 9
Migrate to Paraswap V6 #32
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
base: main
Are you sure you want to change the base?
Conversation
| "dependencies": { | ||
| "@paraswap/sdk": "^6.2.1", | ||
| "@paraswap/core": "^2.4.0", | ||
| "@paraswap/sdk": "^6.11.0", |
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.
why do we need this new dependency?
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.
Removed
| abstract contract BaseParaSwapBuyAdapter is BaseParaSwapAdapter { | ||
| using SafeERC20 for IERC20Detailed; | ||
| using PercentageMath for uint256; | ||
| using SafeMath for uint256; |
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.
SafeMath is not needed since we are >0.8.0
|
LGTM! Thanks, @CheyenneAtapour, for the work. Based on our chat with the Paraswap team, it looks like contract changes aren’t needed for V6 support since it’s compatible with TokenTransferProxy and AugustusRegistry, so we'll put this PR on hold for now. |
Main change is the removal of
TokenTransferProxygiven that this contract is no longer executing token transfers (butAugustusinstead).Closes #30