Summary
The sell function should revert if a holder tries to sell a quantity greater than their current balance. An integration test should cover this path, verify the error code, and confirm no keys were deducted from the holder's balance.
Scope
- Set up a holder with exactly 2 keys via buy transactions
- Invoke sell with quantity 3
- Assert the transaction reverts with the correct insufficient-balance error code
- Assert the holder still owns exactly 2 keys after the failed sell
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The sell function should revert if a holder tries to sell a quantity greater than their current balance. An integration test should cover this path, verify the error code, and confirm no keys were deducted from the holder's balance.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram