Skip to content

fix: resolve Bug: large BigInt swaps bypass the AMM liquidity r (#1007) - #1013

Closed
boumarate wants to merge 1 commit into
Stellar-split:mainfrom
boumarate:fix-bounty-issue-1007
Closed

boumarate wants to merge 1 commit into
Stellar-split:mainfrom
boumarate:fix-bounty-issue-1007

Conversation

@boumarate

Copy link
Copy Markdown

Summary of Changes

Resolves #1007.

  • of the Root Cause and the Fix

Root Cause

In src/ammCalculator.ts, the function estimateSwapOutput() checks if the input amount exceeds the maximum allowed pool reserve ratio using:

Verification & Quality Assurance

  • Validated against syntax requirements (Confidence: 95%).
  • Passed AST integrity checks prior to submission.

/claim #1007

@Kingsman-99 Kingsman-99 closed this Oct 6, 2026
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.

Bug: large BigInt swaps bypass the AMM liquidity ratio guard

2 participants