Upstream contribution · we-promise/sure
sure · Correcting the cash direction of CoinSpot trades in Sure
Problem
CoinSpot buys were imported as cash inflows and sells as outflows. Under Sure's balance convention, depositing 300 AUD and buying 100 AUD could therefore display 400 AUD of cash.
Engineering response
The order processor uses a positive amount for a buy and a negative amount for a sell. Reprocessing the same external order applies the corrected amount to its existing entry.
Evidence and scope
The PR reports a source-revert failure on the buy assertion and 42 focused Rails runs with zero failures. It also records broader suite failures reproduced on the unchanged baseline.