Summary
The sell event should emit a proceeds field equal to the bonding curve sell price minus creator and protocol fees. Unit tests should verify this value is computed correctly at several supply steps and that it matches the formula output independently.
Scope
- Test sell event
proceeds at supply step 5 (selling back from 5 to 4)
- Test sell event
proceeds at supply step 10
- For each, compute expected proceeds independently from the formula and assert equality
- Assert
proceeds is always less than the raw sell price (fees deducted)
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The sell event should emit a
proceedsfield equal to the bonding curve sell price minus creator and protocol fees. Unit tests should verify this value is computed correctly at several supply steps and that it matches the formula output independently.Scope
proceedsat supply step 5 (selling back from 5 to 4)proceedsat supply step 10proceedsis always less than the raw sell price (fees deducted)Acceptance Criteria
proceedscorrect at supply step 5proceedscorrect at supply step 10proceedsalways less than the raw sell priceETA: 12 hours
Coordinate on Telegram