-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Widen the pragma #71
Widen the pragma #71
Conversation
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.
3 comments:
- is there a reason to prefer
>=0.5.0
over>=0.5
? - imo interfaces that aren't reasonably public can/should have fixed pragmas. in this case i'm thinking of
IERC20.sol
, which is used for internal reasons, and should be readily accessible to others via their own dev environment. i also think we should consider removing all functions from this interface that we don't actually rely on in the code, for the sake of simplicity. - after playing around with
solc@0.6.6
in periphery, there's some gotchas around duplicating/extending interfaces. i'm increasingly feeling that we should removeIUniswapV2ERC20.sol
in favor ofIUniswapV2Pair.sol
(which already includes allIUniswapV2ERC20.sol
declarations).
I think this is just stylistic, I prefer the former just because it's more what I'm used to from package.json
In that case I think we should just use the openzepplin-solidity version and remove the IERC20.sol from this repo
What are the gotchas? On the surface it seems like it would make sense to make IUniswapV2ERC20 inherit from IERC20 and remove those duplicate declarations |
fair enough, i'm fine with it
as tempting as this is, for such a trivial import i'm not in favor of introducing the open-zeppelin dependency, if for no other reason than it doesn't fit with the DIY approach we've taken in the rest of the codebase
specifically, the way
in |
e6cd985
to
ab622b7
Compare
the changes i suggested would be consistent with Uniswap/v2-periphery#10 |
- With "=0.6.6" you need to be using this exact solidity compiler version to use UniswapV2Library.sol - See discussion in the following PRs: Uniswap/v2-core#71 Uniswap#10
* Widen the pragma This reverts commit 528056e
No description provided.