Points and referrals

Follow a finalized LP withdrawal into the points ledger and reconcile the direct inviter’s share with the figures shown in the app.

On this page

Identify an eligible receipt

The hosted indexer processes finalized settlement logs in block, transaction and log order. A BinFilled event increases fee growth for one bin. A PositionClosed event realizes the owner’s share of that growth and credits the corresponding base-equivalent fees to the ledger. Opening a position records a starting balance for fee growth.

Swapping directly through the canonical pool adds the Swapped receipt to the trader’s activity history and generates fees for participating LPs. The trader receives zero volume points for that swap. The separate volume-credit path requires a configured router and a matching issued order. Both quote endpoints currently settle through the pool, and the hosted configuration reports router: null. Hosted deployment configuration ↗

Convert realized fees to points

The indexer keeps a Q64 accumulator for each bin. Given F base-equivalent fee atoms from a fill and S outstanding shares, the increment is ⌊F × 264 / S⌋. At withdrawal, the indexer multiplies each bin’s growth since entry by the position’s shares, sums across bins and divides by 264, rounding down once. The result is a fee attribution contained in the LP’s reserves.

Each whole WHYPE of realized fee attribution earns 10,000 points. For a concrete example, take a position with 1 of 4 bin shares throughout a fill that contributes 0.010000 WHYPE in LP fees. At withdrawal the position realizes 0.002500 WHYPE of fee attribution and earns 25 points.

0.010000 WHYPE × ¼ × 10,000 points / WHYPE = 25 points

GET /api/airdrop?address=… reports fees in base atoms (18 decimals) and points in billionths of a point (9 decimals). For a wallet with only this position, the returned strings are 2500000000000000 and 25000000000, respectively. total is the network-wide points sum used to calculate the wallet’s share.

Attribute a direct invitation

Open Points → Invitations → Create invite link and share the resulting URL. A visitor joins by selecting Accept invitation and signing a wallet message bound to the invitation code, chain ID, service address and a single-use nonce. Each wallet can join one inviter. The app displays link visitors and joined wallets as separate counts.

The direct inviter earns 15% of the points attributable to eligible reward events dated at or after the join time. For an LP this event is the finalized withdrawal. In the example above, a user who joins before closing earns all 25 points, and the inviter earns another 3.75. The API reports referralPoints as the eligible invited activity in point units, and bonus as the inviter’s credited fraction. Both use 9 decimals. Open Points ↗