All worknestonexStart a project
SELECTED WORK/08/WEB3 ENGINEERING

Trade Rewards

Rewards, referrals and payouts across four chains.

Project
Web3 engineering
Year
2025
Our focus
Web3 payoutsReferralsBackend

How do you pay traders out across four chains without releasing funds unsafely?

Put a human in front of the hot wallet. Trade Rewards accumulates rebates, referrals and game winnings in a single points ledger, and nothing leaves until an admin approves the withdrawal. Approved requests are then batched per chain and signed for ERC20, BEP20, TRC20 and SPL tokens plus native SOL.

Trade Rewards architecture: trading, referrals and games feeding one points ledger, with admin-approved withdrawals batched into payouts across four chains
System architecture · Trade Rewards

01 /Why route everything through one ledger?

Because earnings arrive from several unrelated places. A trading rebate, a multi-level referral commission and a spin-wheel prize have nothing in common except that they all become a balance someone can withdraw.

Recording every credit and debit in one ledger means there is a single answer to what a user is owed. Without that, reconciling a payout against three separate subsystems becomes guesswork the moment anything disagrees.

02 /Why does a human approve withdrawals?

Because a hot wallet with automatic release is a standing invitation. Reward systems attract abuse in a way that ordinary payments do not, since the whole design is to give money away for activity, and activity can be manufactured.

Approval is the control that makes the rest tolerable. It means an exploit that inflates a balance still has to get past someone before it becomes a transfer, and the cost of that check is a delay rather than a loss.

03 /How are payouts batched across chains?

Approved withdrawals are grouped per chain before signing, so a hundred small payouts on one network become one signing operation rather than a hundred.

That matters for fees and it matters for key exposure. Every signing operation is a moment the hot wallet is in use, and batching reduces how often that happens.

04 /What is involved in supporting four chains and five token types?

More than it looks. ERC20 on Ethereum, BEP20 on BNB Chain, TRC20 on TRON and SPL on Solana each have their own transfer semantics, and native SOL behaves differently again from the SPL tokens beside it.

Each sits behind its own adapter with the batching and approval logic shared above it, so the differences are contained rather than spread through the payout path.

05 /How does the gamification stay honest?

By running on the same ledger as everything else. Spin-wheel results and the raffle lifecycle, which opens, draws and settles on a cron schedule, credit the ledger like any other earning rather than existing in a parallel scoring system.

Leaderboards and multi-level referral trees read from the same source, so a rank and a balance cannot disagree.

06 /What we delivered

  • Multi-level referrals, points and leaderboards
  • Spin wheel and cron-driven raffle lifecycle
  • Multi-chain payouts on ETH, BSC, Solana and TRON
  • Approval-gated batch hot-wallet transfers

07 /The outcome

A rebate and referral platform with safe, multi-chain settlement covering ERC20, BEP20, TRC20 and SPL tokens plus native SOL.

08 /Build at a glance

Earning sourcesTrading rebates, multi-level referrals, gamified rewards
LedgerSingle points ledger, every credit and debit recorded
Release controlAdmin-approved withdrawals only
SettlementBatched per chain, hot-wallet signing
ChainsEthereum, BNB Chain, TRON, Solana
Token standardsERC20, BEP20, TRC20, SPL, plus native SOL
GamificationSpin wheel and cron-driven raffle lifecycle
ReconciliationTransaction hashes settled back to the ledger
COMMON QUESTIONS

Questions people actually ask

Should crypto reward payouts be automatic?

Generally not from a hot wallet. Reward systems are designed to give money away for activity, and activity can be faked, so automatic release turns any exploit directly into a loss. Requiring admin approval converts that into a delay instead, which is a far cheaper failure.

Why batch crypto payouts instead of sending them individually?

Two reasons: fees and key exposure. Grouping approved withdrawals per chain turns many signing operations into one, which cuts cost and reduces how often the hot wallet is actually in use. Each signing moment is a risk window worth minimising.

What is the difference between ERC20, BEP20, TRC20 and SPL?

They are token standards on different chains: ERC20 on Ethereum, BEP20 on BNB Chain, TRC20 on TRON and SPL on Solana. Transfer semantics differ enough that each needs its own adapter, and native SOL behaves differently again from the SPL tokens on the same chain.

Why keep rewards and referrals in one ledger?

So there is a single answer to what a user is owed. Rebates, referral commissions and prize winnings arrive from unrelated subsystems, and reconciling a payout across three separate balances becomes guesswork as soon as any of them disagree.

THE WORK BEHIND IT

Services this project drew on

ANOTHER PERSPECTIVE / NEXT PROJECTArbitrage Engine

A cross-exchange trading engine where correctness is the feature.