Affiliate program

Earn 30% of the house's net win attributable to your referees, paid in USDT, claimable on-chain. Threshold: a referee's losses must accumulate to $10 before an affiliate payout triggers.

Connect your wallet to register or view earnings.

How the program works

The DeFi Roulette (RDF) affiliate program is a fully on-chain revenue-share mechanism. There is no application form, no manual approval, no operator signing off on payouts. Anyone with an Arbitrum wallet can register by calling registerAffiliate; payouts accrue automatically inside the V5 contract and are claimable by the affiliate's wallet at any time via claimAffiliate.

  1. Register a code. Pick a 3–32-character URL slug (alphanumerics, underscores, dashes). The contract stores keccak256(code); if no other wallet claimed that hash, you own it. One code per wallet, one wallet per code, immutable.
  2. Share your link. Your link is https://roulettedefi.com/?ref=<your-code>. When someone visits with that query parameter, the backend records the player↔affiliate association in its database (idempotent, first-ref-wins). On the player's first authenticated session, the /affiliate page surfaces a banner asking them to confirm you as their referrer on-chain.
  3. Player confirms. The player calls setReferrer(yourWallet) once. Permanent — they cannot reassign later. After this, every losing bet they place — slots and roulette — feeds an attribution accumulator on-chain.
  4. You earn. When the player's accumulator reaches the threshold (currently $10 of attributed losses), 30% is moved from the operator's bankroll into your affiliateClaimable balance. Click Claim to withdraw to your wallet whenever you want — there is no vesting, no lock-up, no operator approval.

Affiliate share comes from the round's net house gain only, never from the player's principal directly. If a round ends with the operator breaking even (e.g. one player on Red, another on Black, equal stakes), there is zero net gain and therefore zero affiliate accrual that round. This is the structural reason why ring-trading attacks against the bankroll cannot extract value through this program.

How the referral link works

The link is just a URL with a query parameter. Visiting it does not move any funds, sign any transactions, or commit anyone to anything. What it does:

  • The frontend reads ?ref=<code>and stashes it in localStorage.
  • If the visitor connects a wallet and authenticates with a session signature, the frontend sends the code to POST /api/referral/claim, which resolves the code to the affiliate's wallet via affiliateByCodeHash on-chain and records the association in the backend database. First-ref-wins:the database INSERT is idempotent — once a player is associated with an affiliate, no later ?ref= can overwrite it.
  • The actual on-chain referrer relationship — the one that determines payouts — is only created when the player calls setReferrer themselves. The database row is a durable reminder that survives clearing localStorage, switching devices, or coming back months later.
  • An affiliate cannot set referrers on a player's behalf, cannot view a player's bets, and cannot revoke an existing association.

Terms & disclaimers

By registering as an affiliate or by promoting any RDF property using your referral code, you accept the following terms. Read them. They are short and they apply to you.

1. No relationship.

The affiliate program is a permissionless smart-contract revenue share. Registering does not make you an employee, contractor, agent, partner, or joint-venturer of the contributors who develop, maintain, or operate the RDF protocol, this website, or the underlying contracts (collectively, the "RDF Developers"). No fiduciary, advisory, or agency relationship is created.

2. Your responsibility for legality.

Online gambling and gambling-affiliate marketing are restricted, regulated, or prohibited in many jurisdictions. You alone are responsible for determining whether your participation in the affiliate program — including registering, sharing your referral link, and claiming payouts — is lawful where you reside, where you promote, and where your audience receives your promotion. The RDF Developers do not provide legal advice and make no representation that this program is legal in your or your audience's jurisdiction.

3. Prohibited promotion.

You agree not to promote your referral code by any of the following:

  • Spam, unsolicited messages, or unauthorised mass distribution.
  • False, misleading, or deceptive statements about RDF, the contracts, odds, returns, security, or any operator on the protocol.
  • Targeting jurisdictions where online gambling or affiliate marketing of gambling is illegal.
  • Targeting persons under the legal gambling age in their jurisdiction.
  • Impersonating RDF, its contributors, or any third party.
  • Wash betting, self-referral via secondary wallets, or any coordinated activity intended to harvest affiliate revenue without genuine player engagement. The RDF Developers may at their sole discretion decline to surface, link to, or otherwise associate with your code or wallet on any property they control if such activity is detected, even though they cannot revoke your on-chain registration.
4. Smart-contract risk.

The RDF contracts are deployed software. They have not been audited by an independent third party as of this writing. Bugs, exploits, frozen funds, or total loss of accumulated affiliate balances and player balances are possible outcomes. By participating, you assume all risk associated with smart-contract execution, network congestion, sequencer failures, oracle manipulation, key compromise, and any other technical failure mode.

5. No warranty.

The protocol, the website, the affiliate program, and all related software and services are provided "AS IS" and "AS AVAILABLE", without warranty of any kind, express or implied, including warranties of merchantability, fitness for a particular purpose, non-infringement, or uninterrupted operation. The RDF Developers do not guarantee that you will earn anything, that the program will continue to exist, that parameters (share rate, threshold, registry availability) will not change, or that any property they control will continue to drive traffic that resolves your code.

6. Limitation of liability.

To the maximum extent permitted by applicable law, the RDF Developers shall not be liable for any direct, indirect, incidental, special, consequential, exemplary, or punitive damages — including loss of profits, loss of expected affiliate earnings, loss of data, or loss of reputation — arising from or related to your participation in the affiliate program, even if advised of the possibility of such damages. This limitation applies regardless of whether the claim is based on contract, tort, negligence, strict liability, or any other legal theory.

7. Indemnification.

You agree to indemnify, defend, and hold harmless the RDF Developers and their contributors, operators, contractors, advisors, and successors from and against any and all claims, demands, suits, judgments, damages, liabilities, losses, costs, and expenses (including reasonable attorneys' fees) arising out of or related to: (a) your participation in the affiliate program; (b) your promotion, distribution, or use of your referral code or link; (c) your breach of these terms; (d) your violation of any law or third-party right; (e) any content you publish in connection with your promotion. This indemnity obligation survives termination of your participation in the program for any reason.

8. Tax.

You alone are responsible for the tax treatment of any payouts you receive through the program in your jurisdiction. The RDF Developers do not issue tax forms, withhold taxes, or provide tax advice.

9. Permissionless on-chain, off-chain discretion.

Because the registry is permissionless, the RDF Developers cannot revoke your on-chain registration or pending balance. They reserve the right to refuse, at their sole discretion, to surface, link to, or aggregate statistics about any affiliate code or wallet on properties they control, for any reason or no reason, including suspected breach of these terms.

10. Changes.

These terms may be updated. Continued promotion of your referral link or claiming of accrued balances after an update constitutes acceptance of the revised terms. On-chain parameters (share rate, threshold) may be updated by the protocol's owner; the current values are visible on this page and on the contract.

11. Severability.

If any provision of these terms is held unenforceable, the remaining provisions remain in full effect.

These terms govern affiliate participation only. Use of the RDF gameplay itself is governed separately by the site disclaimer.