Cashback & GLRX
Every swap on Glarex pays the trader back in GLRX. This page covers what GLRX is, how the cashback amount is decided, and why it’s calculated the way it is.
GLRX
GLRX is the cashback token of the Glarex protocol.
| Total supply | 100,000,000 GLRX |
| Standard | ERC-20 |
| Network | Robinhood Chain testnet (46630) |
Supply is fixed. The router holds an allocation and pays out of it; nothing is minted per swap. When that allocation is drawn down, cashback rates are governed by what remains, not by printing more.
GLRX on testnet has no monetary value and is not sold, traded for value, or redeemable for anything.
How cashback works
Cashback is paid on the same transaction as your swap. There is no claim step, no waiting period, and no separate contract to interact with.
Not every swap pays. Payouts land on a schedule tied to your personal swap count, not on every trade:
- Certain swap numbers always pay — a guaranteed interval, so cashback never stops entirely no matter how your other swaps land
- Other swap numbers are eligible for a payout, and whether they pay is decided by the calculation below
- The rest don’t pay
Every swap emits one of two events: CashbackPaid when you’re paid, CashbackSkipped when you aren’t. Nothing is silent.
When a payout does happen:
- You submit a swap through GlarexRouter
- The router executes the trade and takes its 10 bps commission
- GLRX is transferred to you from the cashback treasury
- All of it settles or none of it does — the swap and the cashback are atomic
The payout amount falls between a minimum and maximum set on the contract. Both are readable on-chain, as is the treasury balance remaining.
You can check before you swap
The router exposes previewCashback(yourAddress). It returns two things: whether your next swap pays, and how much.
You don’t have to swap to find out, and you don’t have to trust this page. Read it from the contract on the explorer.
previewCashbackAt(address, count) does the same for any specific swap number, so you can see the schedule ahead of you.
Deterministic, not random
Whether a swap pays, and how much, varies. It is not random.
Randomness on-chain is either expensive (an oracle) or fakeable (block data). Glarex uses neither. The outcome is derived from a hash over values that are fixed before your transaction runs:
- Your address
- Your swap count
- A protocol constant
- The router’s own address
No block number, no timestamp, no block hash enters the calculation. That’s why previewCashback can tell you the answer in advance — the inputs already exist.
Why no block data
An earlier design mixed in block-level values. On a chain producing blocks every 100ms, that made gas costs unpredictable enough that swaps failed out of gas. The current design reads only values already in state, which keeps the cost of a swap flat and predictable.
What this means for you
- You can’t grind it. The inputs are fixed before you submit; resubmitting the same swap doesn’t reroll the outcome.
- You can plan around it.
previewCashbacktells you what your next swap does before you make it. - It’s verifiable. Anyone can reproduce the result from the contract and confirm the payout was correct.
- It’s not gameable by miners or sequencers. There’s no block-level value to manipulate.
Checking your cashback
When a swap pays, your GLRX balance updates in your wallet on the same transaction. If you don’t see it:
- Check whether that swap paid at all — look for
CashbackPaidin the transaction’s logs on the explorer.CashbackSkippedmeans that swap wasn’t a paying one, which is normal. - Add the GLRX token address to your wallet manually — see Contracts & Addresses
- Check the transaction’s token transfer list — the GLRX transfer appears alongside your swap output
If the cashback treasury is exhausted, swaps still execute and payouts are skipped. Your trade is never blocked by the cashback layer.
Cashback vs points
Two separate systems, often confused:
| Cashback | Points | |
|---|---|---|
| Where it lives | On-chain, in your wallet | Off-chain, in the indexer |
| When you get it | Same transaction as the swap | After the indexer reads the block |
| What it is | GLRX tokens | A score |
| Depends on | Your address and swap count | Your activity over Phase Zero |
Cashback is settled and final. Points are a record of activity — see Points.
Next
- Points — Phase Zero mechanics
- Contracts & Addresses — GLRX and router addresses