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

remove isApprovedOrOwner from increase #207

Merged
merged 5 commits into from
Jul 26, 2024
Merged

Conversation

dianakocsis
Copy link
Contributor

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

snreynolds
snreynolds previously approved these changes Jul 26, 2024
@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

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

?? does she?

Copy link
Contributor

@hensha256 hensha256 Jul 26, 2024

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

@dianakocsis dianakocsis merged commit b973438 into main Jul 26, 2024
3 checks passed
@dianakocsis dianakocsis deleted the remove-approval-check branch July 26, 2024 15:19
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