Skip to content

Small problem when trying to follow Providing Liquidity section #30

Discussion options

You must be logged in to vote

IERC20 and IUniswapV3MintCallback interfaces are used but not defined

Yeah, I omitted a lot of auxiliary code in the book for brevity. Each milestone introduction has a link to full code:
https://github.com/Jeiwan/uniswapv3-book/blob/main/content/docs/milestone_1/introduction.md?plain=1#L37
So, I assume that readers will always follow the links to find missing parts.

In the test file in setupTestCase() the global variable shouldTransferInCallback is updated after the mint function

Explained here: #40 We don't want to fail in setupTestCase, but in testMintInsufficientTokenBalance and testSwapInsufficientInputAmount.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@f3d0ss
Comment options

Answer selected by f3d0ss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants