auction problems
Posted by
Sin Vraal (#18687) on Mar 15, 2025
This is the hopefully concide explanation of what I **think** is going on:
1/ when you place a bid, money is placed into escrow. when an auction closes, the funds are distributed accordingly.
1/ sometimes , for whatever reason auctions may run twice concurrently for the same auction. I'm not sure how but lets assume they do:
- this could result in a 'double spend', which reduces the escrow amount for the same dog, twice.
- as it is currently written, the program errors out if a loser lacks the funds to complete the transaction (funds are deducted from the escrow and placed back into your account)
PARTIAL fix:
auctions will be placed immediately into a pending status, the status is then updated to complete after losing bids are resolved.
this will result in a winner being sent a dog if successful, and losing auctions being refunded(if their escrow still exists), and leave the auction in a hung state (which may or may not be complete)
I can then investigate whats going wrong.
1/ when you place a bid, money is placed into escrow. when an auction closes, the funds are distributed accordingly.
1/ sometimes , for whatever reason auctions may run twice concurrently for the same auction. I'm not sure how but lets assume they do:
- this could result in a 'double spend', which reduces the escrow amount for the same dog, twice.
- as it is currently written, the program errors out if a loser lacks the funds to complete the transaction (funds are deducted from the escrow and placed back into your account)
PARTIAL fix:
auctions will be placed immediately into a pending status, the status is then updated to complete after losing bids are resolved.
this will result in a winner being sent a dog if successful, and losing auctions being refunded(if their escrow still exists), and leave the auction in a hung state (which may or may not be complete)
I can then investigate whats going wrong.