DEV Community

张先生
张先生

Posted on

Fourteen Contracts, a Four-Tier Split, and a Future Block Hash: Inside Red Veil's On-Chain Structure

Published by the official RedMagic NFT team. The only live site is https://redveil.redmagic.pro.

This one is for people who would rather check the chain than read a pitch. Every address below comes from the site's single configuration file and matches what the interface actually calls.

Network

BNB Smart Chain mainnet, chainId 56, RPC https://bsc-dataseed1.bnbchain.org. Three fallback nodes are configured; the app rotates when the primary is rate-limited.

The fourteen contracts

Purpose Address
R-MAB (game currency, 8 decimals) 0x92cB10E1D503b5c41f54fCC6B576176E6f29FBAD
RUSDT (settlement currency, 18 decimals) 0xD24746414315c481DF1a6bF52B0602a49aFA1d13
RedMagic NFT (identity, read-only reference) 0x01cCd19FFC5814bb0b39aD7a0a7211DEE82E6a97
Foundation treasury 0x20b594571eE9937E2a9f78A020833559148D2666
Horse NFT 0x70a3B7E937DCA935Be59A98f35036325beeb5329
Raising (training / boarding / breeding) 0xfc32aC83bF4278A6f0Aa0EFa3F3417026f97172E
Stable hall 0xa34219080c905e2ccaB014c4978674Ca484540Ce
Marketplace 0xbB42E59DfFAEcF40dA49B32F0d6251B84b616fa9
Race 0x8F5a241BaD21e63d4a4553BA675CdE76363b5149
Betting 0x50358dF97F8129E4C3583149d634312c427A75ED
Identity binding / revenue ledger 0x196546CDb70C398B6aab43d4d04a4F2ABc2F1804
Genesis blind box 0x89c7f5352A5391ddeaa64Da0708A80e3f92c7e60
Genesis card 0x05c4Fa4bcD2040b6a71687564992ede99A066f7e
Genesis card redemption 0x628e667224C6830f9e639390aa31cd7A8F8f1d5A

R-MAB uses 8 decimals, RUSDT uses 18. Every amount conversion in the app reads decimals() on chain first. Hardcoding either value will produce wrong numbers.

Three separate accounting lines

One: the betting pool. Fixed stake of 1,000 R-MAB or 1 USDT per bet. The pool splits 100% into 75% to backers of the winner, 5% rebate to horse owners by volume, 20% to the platform.

Two: the four-tier split. That 20% — along with the platform's cut of market tax and stud fees — is divided as treasury 30%, proposer 30%, inviter 30%, foundation senior 10%. The ratios live in contract storage and are owner-adjustable.

Three: trade tax. A marketplace sale takes 20%, the seller nets 80%, and the full tax amount flows through the four tiers.

Keeping these separate matters: payout money is never used to fund the split, and split money is never used to top up a prize pool.

How a result is produced

At the start of a race, the contract snapshots every horse's stats — gene, training, bloodline, wins, level. The result is then computed from a block hash generated after the start, combined with the snapshot hash.

The word that matters is "after". At the moment the race begins, the hash does not exist yet, so neither the host nor the platform can know the outcome in advance, and there is no ordering to roll back.

The beta boundary

To be explicit: this is a public beta, and the contracts retain admin rights. That means parameters, fees, and pause switches can change — and it means "fully decentralized" is not a claim we make, or intend to make.

Two things we can stand behind: the addresses above are the ones the page reads, and when the page and the chain disagree, the chain is correct.

Risk disclosure

This article describes technical structure only. It is not investment advice and promises no returns. Tokens are real on-chain assets; prices fluctuate and can go to zero. During beta the contracts retain admin rights. Verify addresses and amounts yourself, and accept full risk.

Top comments (0)