seed 1729Approve rules

Overview

POST /wallets/w1/withdrawWallet w1

INCIDENT · SAMPLE WALLET API · SEED 1729

Two withdrawals.
One balance check.
₦5,000 from nowhere.

ContractReaper raced two requests against a wallet API and caught it: 2 requests, one balance check, ₦5,000.00 from nowhere.

  • Reading the OpenAPI file…

The race · wallet w1

POST /wallets/w1/withdraw × 2
TREQUEST AREQUEST BBALANCE
0Open Open ₦5,000.00
1Reads ₦5,000.00. Check passes. ₦5,000.00
2Waits on fraudCheck… Reads ₦5,000.00. Check passes. ₦5,000.00
3Still waiting… fraudCheck done. Pays ₦5,000.00. 200 · tx_0001₦0.00
4fraudCheck done. Pays ₦5,000.00. 200 · tx_0002 −₦5,000.00
$ bun run reaper -- run --seed 1729
✝ violated inv_nonneg_withdraw case 2 · shrunk to 2 requests