# Referral program

Share a link to a swap. When someone pays for a swap after opening it, you earn a share of what
they buy — paid in USDC on Base, for as long as they keep swapping.

There is no sign-up: connecting a wallet at [drip.tools](https://drip.tools) is enough to get a
link. The current rates, your link, your referrals and your balance are on the
[Rewards](https://drip.tools/account) page.

## How it works

1. **Get your link.** Connect a wallet. Your referral code and link appear on the
   [Rewards](https://drip.tools/account) page — no signature, no email.
2. **Share a swap.** Press **Share** in the swap form, or on the page of a delivered order: the
   link opens the same pair of tokens for whoever follows it and carries your code. A link never
   contains an amount or a recipient.
3. **A friend pays for a swap.** From the first swap they pay for after opening your link, the
   wallet they paid with is your referral.
4. **You earn on every swap they pay for** — the first one and each one after it.
5. **You are paid in USDC on Base**, to the wallet you verified.

## What you earn

- **Reward = the value delivered × the rate of the token bought.** The value is in USD at the
  price of the quote. Each testnet token has its own rate; the rates in force are listed under
  **Rates** on the Rewards page.
- **The rate is fixed when the quote is issued.** A later change of the rates applies to new
  quotes only, never to a payment already made.
- **Only what was delivered counts.** If a part of an order fails and is refunded, that part earns
  nothing. An order that is refunded in full earns nothing.
- **One payment is one reward**, whether it funds one wallet or a thousand in a multisend.

A reward moves through these states on the Rewards page:

| State      | Meaning                                                                               |
| ---------- | ------------------------------------------------------------------------------------- |
| Confirming | The payment is seen and the order is still being delivered; the amount is an estimate |
| Accrued    | The order is settled and the reward is counted, waiting for the next payout           |
| Paid       | Sent to the balance contract or straight to your wallet                               |
| Canceled   | Nothing was delivered, or the reward was canceled under "Fair use" below              |

## Who counts as your referral

- **The wallet that pays.** A referral is the wallet a swap was paid from — not the recipient of
  the testnet tokens.
- **Bound once, for good.** A wallet becomes the referral of the code its first paid swap carried,
  and stays so. It is never moved to another code later.
- **The last link wins — until the first payment.** A visitor's browser keeps the code of the last
  referral link they opened for 30 days. Whichever code is there when they first pay is the one
  that counts.
- **Existing users count too.** A wallet that used Drip Tools before can still become a referral,
  as long as it is not bound to a code yet.
- **Your own wallet does not count.** A payment from the wallet that owns the code earns nothing.
- **Scripts and agents:** pass the code as `ref` in [`POST /api/quote`](https://docs.drip.tools/api/quote.md). The web app
  does it by itself.

## Getting paid

- **Verify your wallet once.** Before the first payout, sign one message on the Rewards page. It
  is free, it is not a transaction, and it proves the payout wallet is yours. The payout wallet
  must be a regular wallet (an externally owned account) — a smart-contract wallet may not exist
  on Base, and USDC sent to it could be lost.
- **Payouts run every hour**, once your accrued rewards reach **$1** (at launch).
- **Your balance sits in the Drip Tools balance contract on Base** until you withdraw it. Nobody
  but you can move it — we cannot either: a withdrawal needs your signature or your own
  transaction, and withdrawals stay open even while payouts are paused. The contract cannot be
  upgraded. Its owner is a timelock: an owner action — replacing the key that pays rewards,
  naming a successor contract, taking money out of the reward pool — takes effect no sooner than
  24 hours after it is scheduled on-chain. A separate emergency key acts at once, but only on
  new payouts: it can pause and resume them, switch off the key that pays them, and cancel a
  successor contract. It has no access to your balance, to the reward pool or to withdrawals.
  The contract:
  [`0xC6147D44034Bbd2be5C18543C40d653163B5C64D`](https://basescan.org/address/0xC6147D44034Bbd2be5C18543C40d653163B5C64D)
  on Base; its owner, the timelock:
  [`0x66fA683dcB6cd0602486218273E8B11B47Db89aC`](https://basescan.org/address/0x66fA683dcB6cd0602486218273E8B11B47Db89aC).
- **Withdraw any time, to any address.** From **$0.10** (at launch) a withdrawal is free: you sign
  a message and we pay the gas. Smaller amounts, or any amount if you prefer, go out as your own
  transaction, for a little ETH on Base.
- **Or switch on auto-withdraw**, and every payout goes straight to your wallet instead of the
  contract.
- **A withdrawal reaches your wallet at once** and shows up in the history on the Rewards page
  a few seconds later.

> **Warning: USDC on Base only**
>
> Rewards are USDC on the Base network. When you withdraw to another address — an exchange, another
> wallet — make sure it accepts **USDC on Base**. A transfer to an address that does not cannot be
> reversed.

## Fair use

The program pays for bringing real users. To keep it that way:

- **No self-referral and no manufactured volume.** Rewards from payments made only to collect the
  reward — your own wallets under other codes, wash swaps, coordinated farming — may be canceled,
  and the account behind them blocked.
- **No misleading promotion.** Do not present yourself as Drip Tools, do not promise what the
  service does not do, and do not spam.
- **We may hold a reward or pause payouts while we check something.** A pause only delays a
  payout; a reward is canceled only for a reason from this section, or when the order behind it
  was not delivered.
- **No payouts to a frozen wallet.** If the issuer of USDC has frozen (blacklisted) your payout
  wallet, rewards are not paid to it, and gas-free withdrawals do not go to or from such an
  address.
- **Rates and terms can change, and the program can end.** A change applies to payments made
  after it. A balance already paid to the contract stays yours and stays withdrawable.
- **You are responsible for any taxes** on what you earn, and for making sure you may take part
  where you live.

Questions: [admin@drip.tools](mailto:admin@drip.tools).
