Skip to content

Add regression test for buy and sell producing symmetric price impact #355

@Chucks1093

Description

@Chucks1093

Summary
Buying and then selling the same amount of keys should return the price close to the original, accounting for fees. A regression test that verifies the price impact is symmetric confirms the bonding curve behaves as expected in both directions.

Scope

  • add a regression test that records the buy price at a given supply
  • buy a defined amount and then sell the same amount
  • assert the sell proceeds minus fees are within the expected range of the original buy price

Acceptance Criteria

  • the test confirms buy and sell price impact is symmetric within the expected tolerance
  • the fee deduction is accounted for in the assertion
  • the test documents the expected price relationship in a comment

Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions