Skip to content

Price ratio change#76

Merged
MatthewWilletts merged 3 commits into
devfrom
price-ratio-change
Mar 9, 2026
Merged

Price ratio change#76
MatthewWilletts merged 3 commits into
devfrom
price-ratio-change

Conversation

@MatthewWilletts
Copy link
Copy Markdown
Contributor

No description provided.

bulkcade and others added 3 commits March 5, 2026 14:40
…pdates

Replace the ad-hoc "keep overvalued, solve undervalued" virtual balance
recalculation with the closed-form quadratic from ReClammMath.sol
computeVirtualBalancesUpdatingPriceRatio. The old code silently drove
centeredness to 1.0 for off-center pools.

Add parametrized test mirroring the Foundry fuzz test
testCalculateVirtualBalancesUpdatingPriceRatio__Fuzz, asserting that
centeredness is preserved and the target price ratio is achieved.
@MatthewWilletts MatthewWilletts merged commit 54ebe54 into dev Mar 9, 2026
1 check passed
@MatthewWilletts MatthewWilletts deleted the price-ratio-change branch March 9, 2026 13:42
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.

2 participants