Skip to content

Conversation

@billythedummy
Copy link
Contributor

Other

  • old impl of InfCalc can result in some pretty large discrepancies between SwapExactIn vs SwapExactOut. Changed impl to use Ratio::reverse like all the other SOL value calculators to reduce this
  • mollusk_with_clock_override util fn
  • add more asserts for swap tests
  • update test fixtures for more realistic testing
    • change pool_state.total_sol_value to 111_440__393_290_220 so that its equal to the sum of sol_values of the LST state list fixture
    • change INF mint supply to 50_000__000_000_000 so that redemption rate is around 2.0

@billythedummy billythedummy merged commit 0e0ab51 into v2 Dec 6, 2025
10 checks passed
@billythedummy billythedummy deleted the lst-417-more-swap-tests-add-liq-from-zero branch December 6, 2025 05:10
@billythedummy billythedummy restored the lst-417-more-swap-tests-add-liq-from-zero branch December 6, 2025 08:26
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