Skip to content

feat(#373-#376): Implement calculate_liquidity_value function and com…#501

Merged
Olowodarey merged 7 commits intoArena1X:mainfrom
Lex-Studios:373-374-375-376-liquidity-value-calculation
Mar 30, 2026
Merged

feat(#373-#376): Implement calculate_liquidity_value function and com…#501
Olowodarey merged 7 commits intoArena1X:mainfrom
Lex-Studios:373-374-375-376-liquidity-value-calculation

Conversation

@Lex-Studios
Copy link
Copy Markdown
Contributor

Implement Liquidity Value Calculation Function

Implement calculate_liquidity_value for LP token redemption with comprehensive test coverage.

Changes

  • Add calculate_liquidity_value function for LP token withdrawal calculations
  • Add 13 tests covering basic operations, edge cases, validation, and precision

Tests Added

  • 4 basic liquidity value calculation tests
  • 4 edge case tests (multiple LPs, small/large pools)
  • 4 validation tests (zero/negative tokens, overflow protection)
  • 1 precision test

Closes #373
Closes #374
Closes #375
Closes #376

…nction and comprehensive tests

- Implement calculate_liquidity_value for LP token redemption (Arena1X#373)
- Add 4 basic liquidity value calculation tests (Arena1X#373)
- Add 4 edge case tests for multiple LPs and large pools (Arena1X#374)
- Add 4 validation tests for error handling (Arena1X#375)
- Add 1 precision test for rounding accuracy (Arena1X#376)

Total: 13 new tests covering all scenarios including:
- Full and partial withdrawals
- Fee accumulation
- Multiple LP positions
- Small and large pool operations
- Zero/negative token validation
- Supply overflow protection
- Precision verification
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 30, 2026 8:20am

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Lex-Studios Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Olowodarey Olowodarey merged commit d69592f into Arena1X:main Mar 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants