Skip to content

[N08] IUniswapV2Router01.sol is unused BUT also [L06] Use of / operator can cause unexplained reverts #23

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

Merged
merged 1 commit into from
Jul 28, 2020

Conversation

arinyguedes
Copy link
Contributor

[N08] but also regarding [L06]. Originally the idea was to use the Uniswap router, but the Uniswap Router 01 official address (https://etherscan.io/address/0xf164fC0Ec4E93095b804a4795bBe1e041497b92a#code) presents a problem on function getAmountIn (line 610). Unfortunately, it is the function that we use. Because of that, we imported the Uniswap library. But now there is a new release, the official Uniswap Router 02 (https://etherscan.io/address/0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D#code). So we will use the official router and remove the imported Uniswap library. Note: the router uses the same library.

…iswap router, but the Uniswap Router 01 official address (https://etherscan.io/address/0xf164fC0Ec4E93095b804a4795bBe1e041497b92a#code) presents a  problem on function getAmountIn (line 610). Unfortunately, it is the function that we use. Because of that, we imported the Uniswap library. But now there is a new release, the official Uniswap Router 02 (https://etherscan.io/address/0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D#code). So we will use the official router and remove the imported Uniswap library. Note: the router uses the same library.
@arinyguedes arinyguedes merged commit d17b4ee into master Jul 28, 2020
@thiagomva thiagomva deleted the audit-N08 branch August 10, 2020 17:10
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.

2 participants