Bridge operation principle
Transfer TON Coins
From TON network to Ethereum Network
Another ad hoc smart contract in Ethereum mints the same amount of ERC20 TONCOINS.
From Ethereum Network to TON Network
This stake is returned after the work is done with surplus coins to reward the oracle.
The stake size is determined by the current TON configuration.
If an oracle tries to cheat or fails to perform, it is fined by other oracles that take hold of its stake.
The oracle list is an element of the TON configuration.
Validators giving votes to unfair oracles risk being fined.
A transfer is not approved unless and until at least 2/3 of all oracles approve it.
A small fee (fraction of a percentage) is charged on each bridged transfer to reward oracles.
The fee size is a part of the Bridge smart contract.
The total collected fee is equally distributed between all oracles upon completion of work to reward them for maintaining the system operational.
What if an oracle tries cheating?
If an oracle approves a transfer amount different from the user original request, it is considered a cheating attempt.
And, given that a transfer is not performed unless approved by 2/3 of all oracles and invalid transaction will be rejected.
Once a rejected transaction is detected, other oracles vote for excluding the cheater from the oracle list and fining the culprit by taking their stake.
Also, validators that originally voted for including the cheater to the list can be fined.