Closed scorpion9979 closed 3 years ago
Just like #39, this needs to be tested before a proper review!
I was wondering why you swapped the token0Amount
with the token1Amount
...
The order of tokens depends on what addresses the tokens will have. But what addresses the tokens will have depends on what MNEMONIC we're using, because of the way the CREATE opcode computes addresses. This wasn't an issue before because we were deploying the pair contract ourselves, but now the factory is taking care of that.
There are two solutions:
This is good to merge now, though coverage has decreased a bit. I created a new issue for that: https://github.com/hifi-finance/hifi/issues/45.
Addresses https://github.com/hifi-finance/hifi/issues/37