Summary
The bonding curve formula is the core pricing mechanism of the contract but only has coverage at a few specific supply values. Unit tests should verify the formula output at every supply step from 0 to 5 to catch regressions in the early supply range where most trading activity occurs.
Scope
- Add a unit test for each supply step 0 through 5
- Each test asserts the formula output matches the manually computed expected value
- Expected values should be computed from the formula definition, not the contract function, to avoid testing the implementation against itself
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The bonding curve formula is the core pricing mechanism of the contract but only has coverage at a few specific supply values. Unit tests should verify the formula output at every supply step from 0 to 5 to catch regressions in the early supply range where most trading activity occurs.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram