Cyfrin / solidity-by-example.github.io

Solidity By Example
https://solidity-by-example.org/
MIT License
614 stars 201 forks source link

Refactor Uniswap v2 add/remove liquidity and add forge tests #256

Closed Drblessing closed 1 year ago

Drblessing commented 1 year ago

Add testing for add/removing liquidity as well as show how to mint ERC20 tokens in forge tests.

Forge tests passed on my mainnet fork.

Drblessing commented 1 year ago

Screenshot of it running in localhost in dev mode, had trouble building it with npm run deploy

image

t4sk commented 1 year ago

Thanks for the PR. Please address the comments above

Drblessing commented 1 year ago

Thanks for the feedback, your comments have been addressed

Drblessing commented 1 year ago

Added the new checks, thanks