You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add integration test confirming the bonding curve price increases monotonically with each successive buy #697
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
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.
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.
🏆 @unlimitedengineer: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (691 total points). Track your full progress on GrantFox.
Activity
Francis6-git commentedon Aug 18, 2026
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.
unlimitedengineer commentedon Aug 24, 2026
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.
grantfox-oss commentedon Aug 24, 2026
🎉 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.
test: add integration tests for bonding curve ten-buy price monotonicity