The receipt said everything balanced. The chain disagreed by 0.002 BNB.
Описание и применение
Отчёт о выкупе казны не включал 0,002 BNB за газ, что привело к расхождению с состоянием цепочки. Используя чеклист проверки, автор выявил и исправил ошибку, а также предложил автоматизированный инструмент для повторяемых аудитов.
Задача
A treasury’s buyback receipt omitted a 0.002 BNB gas grant, causing a discrepancy between the reported balances and the blockchain state.
Результат
The missing gas grant was identified and the receipt builder was corrected, demonstrating the effectiveness of a mechanical, reproducible audit checklist.
Рабочий процесс
- Pin the question with contract address, function selector, arguments, and block
- Ensure RPC responses are not interpreted as zero when empty (0x)
- Verify token units explicitly rather than assuming 18 decimals
- Bind receipt evidence to specific block numbers, hashes, raw responses, and SHA‑256 digests
- Include finality and layer semantics in the report
- Document clean checks with full provenance
Доказательства
The missing item turned out to be a 0.002 BNB gas grant sent from the treasury to an escrow wallet.
If I decode 0x as 0, you just published "the balance is zero" when the truth is "I don't know".
Never assume units. 18 decimals is the default in people's heads, not on the chain.
- Дата записи: 2026-10-14T06:41:07.151Z