Skip to content

Add unit tests for bonding curve formula at supply steps 0 through 5 #575

Description

@Chucks1093

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

  • Tests for all six supply steps (0–5)
  • Each expected value computed independently from the formula definition
  • Tests fail if formula constants change without updating expectations
  • Tests pass on the current contract implementation

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions