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

[mlp] Update flash mint contracts to use ISwapRouter02 interface #152

Merged
merged 9 commits into from
Oct 2, 2023

Conversation

FlattestWhite
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Oct 1, 2023

Coverage Status

coverage: 77.128%. remained the same when pulling c4f6939 on richard-update-for-latest-swap-adapter into 13aaa83 on master.

Copy link
Collaborator

@ckoopmann ckoopmann left a comment

Choose a reason for hiding this comment

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

LGTM. Changing out the existing implementation obviously means that we wont be able to use the old router interface anywhere anymore.

Afaik uniswap has deployed the SwapRouter02 everywhere though, so we should be fine.
We need to remember to also adjust the address in the deployments repo though, otherwise we will be creating DexAdapter deployments that don't work.

@@ -45,7 +45,7 @@ export const PRODUCTION_ADDRESSES = {
router: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
},
uniV3: {
router: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
router: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should double check that this address is not used elsewhere, where we still need to use the old router version.

@FlattestWhite FlattestWhite merged commit c0b860b into master Oct 2, 2023
1 of 2 checks passed
@FlattestWhite FlattestWhite deleted the richard-update-for-latest-swap-adapter branch October 2, 2023 23:07
@FlattestWhite
Copy link
Contributor Author

🎉 This PR is included in version 0.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants