Bridge & Earn
On this page
- How it works
- Who is eligible and how the weight is computed
- Rewards and rates
- Why not "any new position"
- Risks
- Contract addresses
- From code
- API reference
- GET /rewards/lp
- GET /rewards/lp/stats
- GET /rewards/lp/positions?owner=0x…
- GET /rewards/lp/eligibility?owner=0x…
- POST /rewards/lp/attest
- GET /rewards/lp/claims?owner=0x…&limit=
- Funding and transparency
Bridge & Earn pays liquidity that was bridged into Gully Chain and deposited into a Gully Core pool a share of the platform's launch and trading fees for 30 days. Bridge ETH to Gully Chain, deposit it into a Gully Core pool and earn a share of the platform's launch and trading fees for 30 days.
Coming soon
Deploy pending: the program goes live when the governance Safe funds it. The contract address below is pinned (CREATE2) and will not change. Until the Safe funds the first stream, the app shows "Bridge & Earn is not live yet on testnet" and nothing can be enrolled.
What it is, in plain words:
- Where rewards come from. Rewards come from the platform's existing 50% share of Gully Core fees, moved into the program by the governance Safe. No new token, no inflation: the rewards are the fees themselves, in ETH and later USDC.e.
- 30 days of accrual from the program start, then 180 days to claim.
- Testnet first (chain 485590). Everything the app and this page show is real, measured data from the chain and the indexer, labelled "Testnet". There is no projected APY anywhere: you see the rate per day, what was distributed so far, your accrued amount and the number of participants.
- One contract,
GullyLPRewards, owned by the governance Safe, bounded by caps and notice periods (below).
#How it works
- Bridge. Send ETH from Arbitrum Sepolia to Gully Chain on the Gully Bridge fast lane (the Hyperlane native ETH route, about a minute; see Bridging). The arrival on Gully Chain is the bridge delivery your position will be tied to. After the bridge, the app opens testnet.kre8.fun/me/wallet/defi (opens in a new tab) with your delivery already selected.
- Deposit. Within 24 hours of the delivery, deposit into an allowlisted Gully Core pool with the
"Earn trading fees" flow in testnet.kre8.fun (opens in a new tab) or the Gully ID wallet's Earn tab. That mints a Gully Core
concentrated-liquidity position (an NFT of
CLPositionManager). The pool must hold ETH or USDC.e on one side. - Enrol. Press Enrol this position. The indexer checks the position against your delivery and signs an
attestation; your wallet sends one transaction,
CLPositionManager.subscribe(tokenId, rewards, data). The NFT never leaves your wallet: a subscription is a notification, nothing more. From that block the position accrues. - Claim. Press Claim any time, as often as you like, until the claim deadline (program end + 180 days). The deadline is read from the contract and shown next to every balance.
#Who is eligible and how the weight is computed
The indexer signs an attestation for a position when all of this holds:
| Check | Rule |
|---|---|
| The position | A Gully Core CL position (CLPositionManager NFT) in a pool the Safe has allowlisted, with liquidity above zero, never enrolled before. |
| The delivery | A fast-lane bridge delivery to the same address that owns the position. |
| The delivery window | The position was minted after the delivery and within 24 hours of it. |
| The quote side | The pool holds ETH or USDC.e. A position with no ETH or USDC.e in it (only the launch token) is not eligible. |
| The caps | The weight is at most the per-position cap, and the program's total weight cap has room. Both are set by the Safe and shown by the API (caps.remaining). |
Weight is the position's eligible size in US dollars (6 decimals on chain), and it is what your share is computed from:
weight = min( value of the bridge delivery still unused , 2 x the ETH or USDC.e side of the position at mint )- A balanced position is worth about twice its quote side, so "2 x quote side" is the position's value without needing a
price for the launch token. ETH is priced from the indexer's own feed (
/stats/tvlethUsd). - A delivery can back several positions, but its value is never counted twice: each position uses up part of it.
- The weight is frozen at enrolment. Adding liquidity later does not raise it (that liquidity was not bridged).
- One enrolment per position. A position that left the program cannot come back; bridge again and mint a new one.
- The attestation is valid for one hour; ask for a new one if you waited longer.
What ends participation (the contract learns it from the position manager in the same transaction):
| You do this | Result |
|---|---|
| Remove any liquidity, even a little | Participation ends at once (Exited, reason decrease). What you earned until that second stays claimable. |
| Burn the position | Ends at once (reason burn). The holder at the burn keeps the right to claim. |
| Unsubscribe the position from the rewards contract | Ends at once (reason unsubscribe). |
| Collect fees or add liquidity | Nothing changes. |
| Transfer or sell the position NFT | Participation continues; the new owner is the one who can claim from then on. |
#Rewards and rates
Rewards accrue pro rata to weight x time, per reward currency:
your share per second = your weight / total enrolled weight x the currency's rate (units per second)- Currencies. ETH first; USDC.e is the planned second stream. Each currency has its own stream with its own rate, funding and accounting. A position earns from every stream that is running while it is active.
- Rate changes. A rate increase applies at once. A rate cut is announced 7 days ahead (
RateCutScheduled) and only then applies; the Safe can cancel a pending cut. The app and the API show the pending rate and when it applies. - The 7-day runway rule. The Safe cannot withdraw funding below 7 days of payouts at the current rate (or the time left to the end, if shorter). Combined with the 7-day notice, participants always see a cut coming.
- Funding. A stream only pays what it has been funded with;
distributed <= fundedalways holds. If a stream runs dry, accrual pauses until it is funded again (the API showsunallocatednext to the rate). Funding is pulled from the Safe's fee share; anyone may top a stream up withfund. - Program end. The Safe may extend the end at once (time after the old end is never paid retroactively) and may shorten it only to a date at least 7 days away.
- Pause.
pausestops enrolments and accrual; paused time is never paid; claims stay open while paused. - Claim window. Claims are open from the first accrual until program end + 180 days. After that the Safe may
sweep what is left back to itself; that date (
claimDeadline) is public and shown in every UI.
No stuck funds: nothing can end up stranded in the contract.
| Path | What it does |
|---|---|
withdrawUnallocated |
Funding that is not yet distributed and not needed for the 7-day runway goes back to the Safe at any time. |
skim |
Anything that arrived outside fund (stray tokens, ETH via selfdestruct or coinbase) goes to the Safe. Plain ETH transfers are rejected (receive reverts). |
sweep |
After the claim deadline, whatever is left (unclaimed rewards and rounding dust) goes to the Safe. |
#Why not "any new position"
The simple rule, "every position minted in the window earns", pays liquidity that only moved:
- An LP who already has liquidity on Gully Chain burns it and re-mints: a "new" position without a single wei bridged. Bridge & Earn only signs positions minted after a bridge delivery to the same owner, inside the delivery window, and for at most the delivered value. Faking that needs a real bridge round trip per position, which costs real fees and time, so it is cheaper to just bridge.
- "Deposit, farm an hour, withdraw" is not blocked, but it earns one hour and nothing more: rewards are strictly weight x time while the position is whole, removing any liquidity ends it, and the position can never re-enrol.
- Adding liquidity to an enrolled position does not raise its weight, so nothing is gained by topping up with funds that did not cross the bridge.
- The indexer never signs more total weight for a delivery than it delivered, and only within the Safe's caps
(
maxWeightPerPosition,maxTotalWeight). It can add weight; it can never move funds.
#Risks
Heads up
- Liquidity positions can lose value when prices move (impermanent loss).
- A position out of its price range earns no trading fees.
- Removing any liquidity ends your participation; what you earned stays claimable.
- Rewards are a share of real fees: they vary with trading activity and can be zero.
- Testnet tokens have no value.
The program rewards are separate from the pool's own trading fees: an enrolled position keeps earning (or not earning) its pool fees exactly as any other Gully Core position does.
#Contract addresses
| Contract | Address | Note |
|---|---|---|
| GullyLPRewards (Bridge & Earn) | 0x6b1799cC598a02f2cC3af6f5d9fe8D8A65454688 (opens in a new tab) | pinned, deploy pending (CREATE2, label gully.bridge-earn.GullyLPRewards.v1) |
| Gully Core CLPositionManager | 0x337c8E7B40132B677db2b99445EbC6B3835fd7A4 (opens in a new tab) | mints the positions; subscribe enrols them |
| HypNative ETH router (fast lane) | 0xB1943191df824138bd0784C60077c6610F380810 (opens in a new tab) | where bridge deliveries land (ReceivedTransferRemote) |
| Governance Safe | 0xC5526E28B5cDe3C5962A224896804a499d5bb240 (opens in a new tab) | owner of the program: funds it, sets rates, pools, caps and the attester |
Reward currencies: native ETH (address(0)) and, planned, USDC.e 0x65Ba03c6FA90Ed549f465D4c8f2e784D6eEB7E76 (opens in a new tab).
The ABI will be at /abi/lp-rewards/GullyLPRewards.json once the deploy record is in
the contract registry. Licence: MIT, Solidity 0.8.28, OpenZeppelin 5.
#From code
Read the program and a position's claimable amount. If the address has no code yet, the program is not live: show that, do not error.
import { createPublicClient, http, parseAbi } from "viem";
const REWARDS = "0x6b1799cC598a02f2cC3af6f5d9fe8D8A65454688"; // pinned, deploy pending
const POSITION_MANAGER = "0x337c8E7B40132B677db2b99445EbC6B3835fd7A4";
const rewardsAbi = parseAbi([
"struct Program { uint64 start; uint64 end; uint64 claimDeadline; uint64 pausedAt; bool paused; address attester; uint128 maxWeightPerPosition; uint128 maxTotalWeight; uint256 totalWeight; uint256 activePositions; uint256 enrolledPositions; }",
"function program() view returns (Program)",
"function rewardTokens() view returns (address[])",
"function earned(uint256 tokenId) view returns (address[] tokens, uint256[] amounts)",
"function claim(uint256 tokenId, address to) returns (uint256[] amounts)",
]);
const positionManagerAbi = parseAbi([
"function subscribe(uint256 tokenId, address newSubscriber, bytes data)",
]);
const client = createPublicClient({ transport: http("https://testnet-rpc.gullychain.xyz") });
const live = (await client.getCode({ address: REWARDS })) != null;
if (!live) throw new Error("Bridge & Earn is not live yet on testnet");
const program = await client.readContract({ address: REWARDS, abi: rewardsAbi, functionName: "program" });
// program.end, program.claimDeadline (unix seconds), program.paused, program.totalWeight (usd6)
const [tokens, amounts] = await client.readContract({ address: REWARDS, abi: rewardsAbi, functionName: "earned", args: [tokenId] });
// tokens[i] = address(0) for ETH; amounts[i] in the currency's own unitsEnrol: ask the indexer for an attestation, then send one subscribe from the wallet that owns the position.
const res = await fetch("https://indexer.gullychain.xyz/rewards/lp/attest", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ tokenId: tokenId.toString(), owner }),
});
if (res.status === 409) { const { reason } = await res.json(); throw new Error(reason); } // not eligible
if (res.status === 503) throw new Error("attester offline");
const a = await res.json(); // { weight, attestationId, messageId, deadline, signature, data, rewards, positionManager }
await wallet.writeContract({
account,
address: a.positionManager, // CLPositionManager
abi: positionManagerAbi,
functionName: "subscribe",
args: [BigInt(a.tokenId), a.rewards, a.data], // data = abi.encode(weight, attestationId, messageId, deadline, sig)
});Claim to any address, from the wallet that owns the position (after a burn: the holder at the burn):
await wallet.writeContract({ account, address: REWARDS, abi: rewardsAbi, functionName: "claim", args: [tokenId, account] });Verify an attestation yourself before sending it. The attester signs EIP-712 typed data; the contract does the same check
with enrollDigest(...) and SignatureChecker.
import { verifyTypedData } from "viem";
const ok = await verifyTypedData({
address: program.attester,
domain: { name: "GullyLPRewards", version: "1", chainId: 485590, verifyingContract: REWARDS },
types: {
Enroll: [
{ name: "tokenId", type: "uint256" },
{ name: "owner", type: "address" },
{ name: "weight", type: "uint128" },
{ name: "attestationId", type: "bytes32" },
{ name: "messageId", type: "bytes32" },
{ name: "deadline", type: "uint64" },
],
},
primaryType: "Enroll",
message: { tokenId: BigInt(a.tokenId), owner: a.owner, weight: BigInt(a.weight), attestationId: a.attestationId, messageId: a.messageId, deadline: BigInt(a.deadline) },
signature: a.signature,
});attestationId = keccak256(messageId, tokenId); the contract refuses an id that was used before, an expired deadline
(one hour from issue), a weight above the caps, a pool outside the allowlist and an empty position.
#API reference
Base https://indexer.gullychain.xyz. JSON, big integers as decimal strings, CORS open, cached for a few seconds.
Amounts are in the currency's own units unless the field ends in Usd; weights are USD with 6 decimals.
| Endpoint | What it returns |
|---|---|
GET /rewards/lp |
the whole program: state, streams, pools, hourly series, latest funding events |
GET /rewards/lp/stats |
the compact numbers for cards |
GET /rewards/lp/positions?owner=0x… |
an owner's enrolled positions |
GET /rewards/lp/eligibility?owner=0x… |
an owner's bridge deliveries and which positions can be enrolled |
POST /rewards/lp/attest |
an attestation for one position (body { tokenId, owner }) |
GET /rewards/lp/claims?owner=0x…&limit= |
claims, newest first |
#GET /rewards/lp
{
live: boolean, // the contract has code and program.start <= now
address: string, chainId: 485590, network: "testnet",
program: { start, end, claimDeadline, paused: boolean, pausedAt, attester, maxWeightPerPosition, maxTotalWeight,
totalWeight, activePositions, enrolledPositions, participants /* distinct owners */, daysLeft },
streams: [{ currency, symbol, decimals, rate /* units per second */, ratePerDay, pendingRate, pendingAt,
funded, distributed, claimed, unallocated, withdrawable, usd: { ratePerDay, distributed, funded } }],
pools: [{ poolId, allowed: boolean, token0: { address, symbol, decimals }, token1: { address, symbol, decimals },
fee, tickSpacing, tvlUsd, enrolledWeight, activePositions }],
series: [{ t /* hour start, unix */, totalWeight, activePositions, distributedUsd /* cumulative */, claimedUsd /* cumulative */ }],
funding: [{ t, currency, amount, from, tx, kind: "fund" | "withdraw" | "skim" | "sweep" }], // latest 50
updatedAt
}series is hourly since the program start, zero-filled, at most 24 x 45 points.
#GET /rewards/lp/stats
{ live: boolean, totalWeightUsd, participants, activePositions, distributedUsd, claimedUsd, ratePerDayUsd, daysLeft, claimDeadline, updatedAt }#GET /rewards/lp/positions?owner=0x…
{
positions: [{
tokenId, owner, beneficiary, poolId, pool: { token0, token1, fee },
weight, weightUsd, enrolledAt, exitedAt,
status: "active" | "exited", exitReason: null | "decrease" | "burn" | "unsubscribe",
messageId, claimed: [{ currency, amount }],
liquidity, inRange: boolean, tickLower, tickUpper, enrollTx, lastClaimTx
}]
}Accrued-but-unclaimed is read live from the contract (earned(tokenId)); the API may add an earned field when it has an RPC.
#GET /rewards/lp/eligibility?owner=0x…
{
owner,
deliveries: [{ messageId, txHash, amount, amountUsd, consumedUsd, remainingUsd, t, block, route, windowEndsAt }],
candidates: [{ tokenId, poolId, pool, mintedAt, liquidity, valueUsd, proposedWeight, messageId, eligible: boolean, reason: null | string }],
allowedPools: [poolId, …],
caps: { perPosition, total, remaining }
}route is "native" for the fast lane; deliveries on the retired hypETH router are listed with route: "hypETH (retired)".
#POST /rewards/lp/attest
Body { tokenId, owner }.
// 200
{ tokenId, owner, weight, attestationId, messageId, deadline, signature, data /* hex, the abi-encoded subscribe payload */,
rewards /* GullyLPRewards address */, positionManager /* CLPositionManager address */ }
// 409: not eligible
{ error, reason }
// 503: the attester key is not loaded
{ error: "attester offline" }Within the deadline the API answers the same payload for the same (messageId, tokenId); it never signs two different
attestations for one pair. Requests are rate-limited per owner.
#GET /rewards/lp/claims?owner=0x…&limit=
[{ tokenId, to, currency, amount, usd, t, tx }]#Funding and transparency
Every movement of funds is an on-chain event and is listed under funding in GET /rewards/lp:
| Event | Meaning |
|---|---|
Funded(currency, from, amount) |
funding added with fund (by the Safe, or anyone) |
UnallocatedWithdrawn(currency, to, amount) |
undistributed funding returned to the Safe, never below the 7-day runway |
Skimmed(currency, to, amount) |
stray funds that arrived outside fund, moved to the Safe |
Swept(currency, to, amount) |
the remainder after the claim deadline, moved to the Safe |
The funding epoch is simple and visible: each epoch the governance Safe claims a share of the platform's locker fees,
GullyCoreLPLocker.claim(currency, safe) (the fees the locked launch liquidity earned for the protocol, see
Gully Core), and moves a fixed percentage of it into the program with
fund(currency, amount). Rate changes (RateSet, RateCutScheduled, RateCutCancelled), the program end
(ProgramEndSet), pool allowlisting (PoolAllowed), caps (CapsSet), the attester (AttesterSet) and every
enrolment, exit and claim are events too, so the whole program can be audited from the chain alone.
Help for users, in plain words: testnet.kre8.fun/help/bridge-and-earn (opens in a new tab).