LP staking: earn RD + MOAI
Provide liquidity to one of the protocol's two Uniswap v4 RD market pools (RD/USDC or RD/USDT), take the pool's LP share receipt, stake it in that pool's LPStaking contract, and earn MOAI and RD rewards.
RdStableSwapHook and receive the hook's LP share (an ERC-20 receipt). Staking that share in the pool's LPStaking contract earns two streams — MOAI and RD. Withdrawing (48 hours or more after your last deposit) returns your LP shares and settles both.What you're providing liquidity for
The protocol's RD market is two Uniswap v4 pools, RD/USDC and RD/USDT. Each is run by its own RdStableSwapHook, which prices swaps on a StableSwap curve concentrated around $1 and keeps a 1 basis point fee on each swap's input for the pool's LPs. The same pools are what the protocol's market oracle reads to feed the controller. So LP'ing there is doing two jobs at once:
- Providing tradable depth on the RD market (helps the controller stay accurate).
- Earning the protocol's LP rewards, on top of the pool's own swap fees.
Liquidity is added and removed through the hook (addLiquidity, removeLiquidity), which mints and burns a fungible ERC-20 LP share; native Uniswap v4 positions are rejected. See RD Market Oracle for how the pools work, and Deployed addresses for the pool, hook and staking addresses.
Providing liquidity in the app
Choose RD/USDC or RD/USDT. For a pool that already has liquidity, enter a target amount of either token; the other input follows the current reserve ratio. The Quote shows the maximum of each token you may spend after the app's 0.5% slippage allowance. Have enough of both tokens for those maximums. If the pool is empty, you instead choose both exact opening amounts, which set its initial ratio. Removing liquidity shows the minimum tokens you will receive.
A quote is current for less than 30 seconds; the app refreshes it automatically. A previous quote stays visible while refreshing but cannot be submitted. A submitted transaction has a separate deadline no later than 20 minutes after its quote was produced. Approvals are separate wallet transactions. By default, a new token approval gives Permit2 an unlimited allowance, while a new Permit2 approval gives only the selected pool hook up to five times that quote's maximum spend for 90 days. Check Only use minimum allowance to limit new approvals to the quote's maximum spend; the hook's authorization then expires 24 hours after the transaction deadline. Existing larger allowances are not reduced. USDT may require a separate reset-to-zero approval before an increase.
The deal
You stake your LP shares in the LPStaking contract for that pool. The contract accrues two reward streams to you:
- MOAI rewards: from
V4LpIssuance, which releases 31,500,000 MOAI over 48 months on the front-loaded MOAI emission curve (rising to a peak in month 12, then tapering to zero by month 47). It splits each period's issuance equally between the two pools that are not shut down, regardless of how much is staked in each. - RD rewards: the LP share of protocol fees from the
GlobalFeeRouter. It goes toLpFeeDistributor, which also splits it equally between the two pools that are not shut down; anyone can callLpFeeDistributor.distribute()to forward the balance to the twoLPStakingcontracts.
Inside a pool, your share of both streams is your stake / total staked in that pool's LPStaking, using a standard reward-per-share index (formula in the developer reference). Stake more, earn more. Because each pool receives the same rewards, the pool with less stake pays more per LP share.
The RD share responds to LP depth
The RD stream's size is set the same way the Stability Pool's interest share is: a PI controller on LP utilization — the RD market pools' liquidity (the lower of the market oracle's 24-hour and 4-hour liquidity TWALs, summed over the pools that are not shut down) as a fraction of RD total supply. When LP depth is below its 12.5% target the router routes more of the fees to LP stakers; when it's above, it routes less. The share is bounded to 10%–60% at launch (the floor rises to 35% as MOAI emissions taper), with a 50% bias and a 1% deadband around the target.
The full LP-vs-MOAI split is in Fees.
Staking
Approve and deposit your LP shares, withdraw part or withdrawAll of them — a withdrawal settles your pending MOAI + RD in the same call — or claimRewards without changing your stake. Each deposit starts a 48-hour withdrawal lockup (WITHDRAWAL_LOCKUP) on your whole stake; rewards can be claimed during it. There's no tier.
Developer reference: Earning.
Risks
LP staking has three distinct risk surfaces:
- Price divergence in the pool. If RD's market price moves away from its paired stablecoin, the pool rebalances toward the falling side, and you end up holding more of it than if you'd just held the tokens. This is a standard AMM risk; not specific to RAI Dollar.
- Reward stream taper. MOAI emissions peak in month 12 and then decay to zero by month 47. LPs staked through the peak capture a larger share of the lifetime MOAI emission than late entrants.
- Pool shutdown. A pool that spends 7 days of credited time within a 21-day window failing (empty, with a StableSwap invariant below 200, or with one side more than 50 times the other) shuts down permanently. Its MOAI issuance and RD fee share stop, and the remaining pool receives them; MOAI already accrued stays claimable. See RD Market Oracle.
There's also the operational dependency: the protocol's market oracle reads these same pools. If they are shallow or imbalanced, the oracle price can drift from the real market, which affects the controller. As an LP, you have a small alignment-of-interest with keeping the pools healthy.
When LP staking pays best
- Around the peak of the MOAI emission curve. Emissions rise every month through month 12, then taper.
- When you can stay through the program. Unstaking and re-staking doesn't accelerate rewards; staying staked maximizes accrual.
- When your pool has little stake relative to its rewards. Each pool gets the same MOAI and RD, so a bigger share of a less-crowded pool pays more.
It pays worst when the pools are crowded with stakers chasing a small remaining emission tail, or when losses from price divergence eat more than the rewards.
Difference vs. the other earning paths
| Path | What you stake | What you earn | Lockup |
|---|---|---|---|
| Stability Pool | RD | Branch collateral + RD interest + MOAI | 1 day after each deposit (plus liquidation exposure) |
| MOAI staking | MOAI | RD only | 7d / 30d / 60d tiers |
| FLX staking | FLX | MOAI (1-year linear stream) | None |
| LP staking | RD market pool LP shares | MOAI + RD | 48 hours after each deposit |
All four are independent. The protocol doesn't double-count: a token can only be in one role at a time.