Skip to content

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

Closed

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

Activity

  1. Francis6-git commented on Aug 18, 2026

    @Francis6-git

    My approach:
    I’ll deploy the bonding curve, capture the initial base price, then perform ten sequential single-key buys while recording the price after each transaction.

    I’ll assert that every price strictly increases, then sell one key and verify the price decreases, and finally confirm supply zero returns the configured base price.

  2. unlimitedengineer commented on Aug 24, 2026

    @unlimitedengineer
    Contributor

    I’d like to work on this because I’m interested in smart contract testing and bonding curve mechanics, and I can implement the integration tests to verify that pricing increases and decreases correctly across sequential buys and sells.

  3. grantfox-oss commented on Aug 24, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Third Campaign campaign!

    @unlimitedengineer's PR #731 was approved and merged by @Chucks1093.

    🏆 @unlimitedengineer: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (691 total points). Track your full progress on GrantFox.

    👏 Great work, @unlimitedengineer! Keep contributing to accesslayerorg.

  4. added a commit that references this issue on Aug 24, 2026
    b7d6cbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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