Skip to content
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

Full range hook #22

Merged
merged 53 commits into from
Aug 17, 2023
Merged

Full range hook #22

merged 53 commits into from
Aug 17, 2023

Conversation

emmaguo13
Copy link
Contributor

No description provided.

contracts/hooks/FullRange.sol Outdated Show resolved Hide resolved
lib/forge-std Outdated Show resolved Hide resolved
contracts/hooks/FullRange.sol Outdated Show resolved Hide resolved
contracts/hooks/FullRange.sol Outdated Show resolved Hide resolved
contracts/hooks/FullRange.sol Outdated Show resolved Hide resolved
test/FullRange.t.sol Outdated Show resolved Hide resolved
test/FullRange.t.sol Outdated Show resolved Hide resolved
100 ether,
99 ether,
99 ether,
address(this),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh i see this all ends up being one position that's taken out

test/FullRange.t.sol Outdated Show resolved Hide resolved
test/FullRange.t.sol Outdated Show resolved Hide resolved
@emmaguo13 emmaguo13 marked this pull request as ready for review August 17, 2023 19:05

UniswapV4ERC20(pool.liquidityToken).mint(params.to, liquidity);

require(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: seems more appropriate on line 140?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the issue is, if it's the first LP, then i'll mint them the liquidity without subtracting the amount of liquidity they are supposed to lock

ewilz
ewilz previously approved these changes Aug 17, 2023
@emmaguo13 emmaguo13 merged commit 028e7b6 into main Aug 17, 2023
2 checks passed
@emmaguo13 emmaguo13 deleted the v2-hook branch August 17, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants