Skip to content

Add unit tests for sell event fields matching the sell-path formula output #586

Description

@Chucks1093

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

  • proceeds correct at supply step 5
  • proceeds correct at supply step 10
  • Expected values computed independently from the formula
  • proceeds always less than the raw sell price

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions