FLX staking: earn MOAI
FLX is a separate token from MOAI, distributed outside the borrowing/redemption protocol. FLX staking lets FLX holders earn MOAI on a one-year linear stream.
What FLX is
A standalone ERC-20 token. The RAI Dollar protocol does not mint FLX. The FLX token is deployed independently and distributed through whatever channel the project chooses (airdrop, sale, partnership, etc., details outside the scope of this site).
From the protocol's point of view, FLX is just another ERC-20 it accepts into the FLX staking contract.
The deal
At deployment, the MOAIToken constructor mints a fixed amount of MOAI (FLX_STAKING_ENTITLEMENT) straight into the FLXStaking contract. Once anyone calls startStreaming(), the contract streams that MOAI linearly over 365 days to whoever is staking FLX at each instant.
- If you stake FLX → you start accruing a share of the MOAI stream, proportional to your share of total FLX staked.
- If you unstake → you stop accruing further MOAI on that portion.
- The stream has a fixed start (the
startStreaming()call, which can happen only once) and a fixed end 365 days later. After the end, no more MOAI accrues from this contract. - MOAI that vests while nobody is staked is not lost: it is credited to whoever is staked at the next update.
There's no lockup. You can stake or unstake at any time. Whenever you stake or unstake, your accrued MOAI is paid out.
The pot is 2,000,000 MOAI, vested over a fixed 365 days at ≈ 5,480 MOAI per day. Pick your entry day and your share of staked FLX to see what's still on the table — the stream doesn't care when it started, only how much of it is left.
This 2,000,000 MOAI is the 2% FLX-staker slice of the 100,000,000 MOAI supply. The full allocation, and every tranche's release curve on one timeline, are on the MOAI emissions schedule.
How rewards work
The math is the standard "linear stream + reward-per-share" pattern (formula in the developer reference). Implications:
- You earn more when total FLX staked is lower. Same MOAI stream, fewer claimants, bigger slice.
- You don't lose previously-accrued MOAI. Every stake or unstake pays out what you'd earned up to that point.
- There's no boosted curve. It's a flat linear stream from start to finish.
Claiming
There's no separate claim function — your accrued MOAI is paid out whenever you stake or unstake (unstake(0) claims without withdrawing), and you can preview what's currently owed at any time with getPendingMOAIGain. See the developer reference for the exact calls, and Deployed addresses for the FLX token and staking contract addresses.
When does FLX staking pay best?
- Early in the stream, when total FLX staked tends to be lower (fewer people have heard of it / accumulated FLX) but the stream rate is constant.
- When you can lock in early: there's no lockup, so the only "lock-in" advantage is being there before others.
It pays worst once everyone has staked everything (your share gets diluted) and after the 365-day stream completes (no more MOAI accrues from this contract).
Difference vs. MOAI staking
- MOAI staking earns continuous protocol fees, in RD, with lockup tiers and multipliers.
- FLX staking earns a one-time, time-boxed MOAI distribution from a single seeded pool. No tier, no multiplier, no lockup, no perpetual fee share.
The two are independent. You can do both. They claim from different reward pools.
After the stream ends
After the 365-day stream ends, the staking contract stops generating new rewards. Existing stakers can still withdraw their staked FLX and any unclaimed accrued MOAI. The contract has no admin and no way to restart the stream: startStreaming() can run only once.