-
Notifications
You must be signed in to change notification settings - Fork 513
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
remove isApprovedOrOwner from increase #207
Conversation
@@ -164,6 +165,53 @@ contract IncreaseLiquidityTest is Test, PosmTestSetup, Fuzzers { | |||
assertApproxEqAbs(balance1BeforeAlice, currency1.balanceOf(alice), tolerance); | |||
} | |||
|
|||
function test_increaseLiquidity_withUnapprovedCaller() public { | |||
// Alice and Bob provide liquidity on the range | |||
// Alice uses her exact fees to increase liquidity (compounding) |
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.
?? does she?
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.
i feel like this is quite a complicated test to just test something thats not as complicated?
might be easier to have just 1 person providing liquidity not 2.
Just like
- Call 1: Alice mints herself a position
- Call 2: Bob increases liquidity in alices position
No need for Bob to have a position in the same range that feels like its confusing it a bit
Related Issue
anyone can increase anyone else's position - they don't need to be the owner or approved
Description of changes
remove isApprovedOrOwner check from increase