Summary
The bonding curve price preview component calculates the XLM cost for buying N keys and displays it to the user. Unit tests should confirm the displayed amount is correct for boundary values and that the component re-renders when the input quantity changes.
Scope
- Test quantity 1 displays the correct price for the first key on the curve
- Test quantity 0 displays 0 XLM and no buy button
- Test a large quantity (e.g. 100) displays a price higher than quantity 1
- Test that changing the quantity input updates the displayed price without a page reload
- Mock the bonding curve calculation function and assert it is called with the correct arguments
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The bonding curve price preview component calculates the XLM cost for buying N keys and displays it to the user. Unit tests should confirm the displayed amount is correct for boundary values and that the component re-renders when the input quantity changes.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram