logo

Formal Verification of TON Master Chain Contracts

ID: 867b6f65-bbff-5b7a-b148-6435092311e3

STIX ID: report--867b6f65-bbff-5b7a-b148-6435092311e3

Feed Name: CertiK Blog

Threat Score
50/100

Date Published: 2023-08-07

Date Updated: 2026-06-11

...
...

This report describes a formal verification of the TON blockchain's elector smart contract (and related config contract), detailing the modeling in Coq, an accounting invariant proved for funds tracking, the proof effort (including loop invariants and lemmas), and two bugs discovered: a minor message-accounting omission and a critical logic error that can permanently lock excess bid funds when users exceed max_stake. The authors conclude that formal verification complemented manual audits by finding issues that were previously missed and recommend combining both approaches for high-assurance critical code.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.