Skip to content

Add regression test for quadratic curve buy and sell quote symmetry #486

Description

@Chucks1093

Summary

The quadratic bonding curve preset must satisfy buy and sell quote symmetry: the cost to buy N keys at supply S must equal the proceeds from selling N keys at supply S+N. A regression test should confirm this holds specifically for the quadratic preset.

Scope

  • Register a creator with the Quadratic preset
  • Get buy quote for N keys at supply S
  • Get sell quote for N keys at supply S+N
  • Assert both values are equal
  • Cover supply levels: 0, 50, and 500

Acceptance Criteria

  • Buy quote equals sell quote at corresponding supply levels for all three tested levels
  • Symmetry holds for both small and large key amounts

ETA: 12 hours


Coordinate on Telegram

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