Skip to content

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

Merged
arinyguedes merged 1 commit into
masterfrom
audit-N08
Jul 28, 2020
Merged

arinyguedes merged 1 commit into
masterfrom
audit-N08

Conversation

@arinyguedes

Copy link
Copy Markdown
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