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
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
Acceptance Criteria
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg