BTC — ETH — ICP — SOL — LIVE · updates every 60s
LedgerLifeICP · BITCOIN · DEFI · WEB3
← LedgerLife Canister Lab

Ohshii Labs links ICPSwap zero-output fix to earlier rounding issues

By Maria Irene · 3 Dec 2026

Ohshii Labs has drawn attention to similarities between a recent ICPSwap fix and previously reported rounding issues in the MULTI/DEX codebase, raising questions about how zero-value settlements are handled in decentralised exchange systems.

The company said the underlying bug pattern involves transactions in which one side of a settlement is rounded or floored down to zero, while the other side can still transfer value.

According to Ohshii Labs, a related issue was flagged by developer andreij6 in the dfinity/public-multidex repository on 2 August, under issue #15. The report concerned a netting leg in which the cash amount could fall to zero while the other side of the settlement still proceeded.

The company said it reported a matching-engine version of the issue in repository discussion #54 on 1 September. The reported behaviour involved trades being completed with zero cost. According to Ohshii Labs, DFINITY developer Dominic Williams addressed the issue by introducing a safeguard that stops execution when the calculated cost equals zero.

Ohshii Labs compared that safeguard with a recent ICPSwap change that rejects swaps producing zero output. It argues that both cases involve the same underlying truncation pattern, in which rounding calculations can produce zero-value results while other parts of a transaction continue.

The company described the earlier MULTI/DEX cases as latent or limited to very small, dust-level amounts.

The comparison highlights the importance of handling rounding and minimum-value checks consistently in decentralised exchange settlement systems, where even small calculation differences can affect how transactions are processed.

However, the reported similarities do not by themselves establish that the ICPSwap and MULTI/DEX issues have identical causes, consequences or security impact. The announcement did not provide details of financial losses or affected users.