TCGL2

Explorer

TCGL2 settles to BNB Chain.

Settlement on BNB Chain

How it works

Who makes a block

Each height, selectProposer hashes the parent block hash and height and walks the validator list, so a validator is picked in proportion to the dollar value of the cards it has bonded.

When a block is final

A block is final once validators holding two thirds of all bonded value have signed its hash.

What goes to BNB Chain

Every 150 blocks the block height, block hash and state root are signed by that same two thirds and posted to Checkpoints.submit, which checks the signatures against the bonded set.

Slashing

BondVault.slashDoubleSign takes two different signed headers from one validator at one height. Anyone can submit them. The contract jails the validator and sends all of its bonded cards to the reporter.

The bridge

Cards, CUSD and the gas coin locked in Bridge on BNB Chain are credited on TCGL2 by the validators. To leave, SystemBridge records the withdrawal on TCGL2 and Bridge.withdraw releases it on BNB Chain once signatures from two thirds of bonded value are given, each withdrawal once.

Machine randomness

The block maker signs the previous random value and the height with its BLS key; the hash of that signature is the new value, and every validator checks it before accepting the block. CardMachine mixes it with the pool, pull count and buyer, and picks the card in the same transaction.