Skip to Content
Cashback & GLRX

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 supply100,000,000 GLRX
StandardERC-20
NetworkRobinhood 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:

  1. You submit a swap through GlarexRouter
  2. The router executes the trade and takes its 10 bps commission
  3. GLRX is transferred to you from the cashback treasury
  4. 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. previewCashback tells 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:

  1. Check whether that swap paid at all — look for CashbackPaid in the transaction’s logs on the explorer. CashbackSkipped means that swap wasn’t a paying one, which is normal.
  2. Add the GLRX token address to your wallet manually — see Contracts & Addresses
  3. 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:

CashbackPoints
Where it livesOn-chain, in your walletOff-chain, in the indexer
When you get itSame transaction as the swapAfter the indexer reads the block
What it isGLRX tokensA score
Depends onYour address and swap countYour activity over Phase Zero

Cashback is settled and final. Points are a record of activity — see Points.

Next

Last updated on