Skip to content

Add integration test confirming the bonding curve price increases monotonically with each successive buy #697

Description

@Chucks1093

Summary

The bonding curve must guarantee that each successive buy increases the price. An integration test should execute ten sequential single-key buys and assert the price returned by get_price strictly increases after each one.

Scope

  • Deploy the contract and record get_price before any buy
  • Buy one key, record price; repeat ten times
  • Assert each recorded price is strictly greater than the previous
  • Assert the price after selling one key is strictly less than the price before the sell
  • Assert get_price at supply 0 equals the configured base price

Acceptance Criteria

  • Price strictly increases after each sequential buy
  • Price strictly decreases after a sell
  • Price at supply 0 equals base price
  • All ten price snapshots are monotonically increasing

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions