Skip to main content

FLX staking

FLX is a separate token from FEE, distributed outside the borrowing/redemption protocol. FLX staking lets FLX holders earn FEE 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 FLXStaking contract.

The deal

When FLXStaking is initialized, the protocol deposits a fixed amount of FEE into it. The contract streams that FEE linearly over 365 days to whoever is staking FLX at each instant.

  • If you stake FLX → you start accruing a share of the FEE stream, proportional to your share of total FLX staked.
  • If you unstake → you stop accruing further FEE on that portion.
  • The stream has a fixed start and a fixed end. After the end, no more FEE accrues from this contract.

There's no lockup. You can stake or unstake at any time. Whenever you touch the contract, your accrued FEE is paid out.

How rewards work

The math is the standard "linear stream + reward-per-share" pattern:

F_FEE_global   = ∫ (stream_rate / total_FLX_staked) dt
my_pending = my_FLX_staked × (F_FEE_global − F_FEE_snapshot_at_my_last_touch)

Implications:

  • You earn more when total FLX staked is lower. Same FEE stream, fewer claimants, bigger slice.
  • You don't lose previously-accrued FEE by unstaking later. Your snapshot captures what you'd earned up to that point; you can claim it.
  • There's no boosted curve. It's a flat linear stream from start to finish.

Entry points

You stake by approving and calling the contract's stake function. You claim by calling the contract's claimRewards (or the equivalent unstake path, which claims + withdraws in one call).

The exact addresses for the FLX token, FLXStaking contract, and rewards are on Deployed 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 FEE accrues from this contract).

Difference vs. FEE staking

  • FEE staking earns continuous protocol fees, in RD and collateral, with lockup tiers and multipliers.
  • FLX staking earns a one-time, time-boxed FEE 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 streamEndTime, the FLXStaking contract stops generating new rewards. Existing stakers still hold their staked FLX and any unclaimed accrued FEE. The contract may or may not be re-seeded depending on protocol direction, that's a governance question, not a built-in feature.