Skip to main content

Open Staking Pools

The QsnStakingFactory contract enables permissionless creation of staking pools. Anyone can deploy a new pool where users stake one ERC20 token and earn another, without requiring protocol governance approval.

Permissionless Pool Creation

Any user or project can create a staking pool by specifying:

  • Stake token: The ERC20 token that participants deposit.
  • Reward token: The ERC20 token distributed to stakers.
  • Duration: The period over which rewards are streamed.
  • Min/Max stake limits: Optional bounds on individual stake amounts.

This makes it straightforward for new token projects to bootstrap incentive programs on QsnDEX infrastructure.

Creation Fee

Deploying a new staking pool requires:

Fee ComponentAmount
ETH fee0.01 ETH (paid at creation)
Reward token fee2% of deposited reward tokens (taken at creation)

Both fee rates are configurable by the protocol owner, with the reward token fee capped at a maximum of 10%.

Reward Distribution

Each open pool uses the same Synthetix-style reward streaming mechanism as the protocol QsnStakeVault:

  • Reward tokens are deposited at pool creation (or topped up later by the pool owner).
  • Rewards stream linearly over the configured duration.
  • Each staker earns proportionally to their share of the total staked amount.

APR Calculation

APR = (rewardRate * duration * rewardTokenPrice) / (totalStaked * stakeTokenPrice) * 100

APR updates dynamically as stakers enter and exit the pool.

Pool Functions

FunctionDescription
stakeDeposit stake tokens into the pool. Begins earning rewards.
withdrawRemove staked tokens. Unclaimed rewards are preserved.
claimRewardClaim all accrued reward tokens.
exitWithdraw all staked tokens and claim rewards in one transaction.

Pool Discovery

The QsnDEX backend indexes newly created pools every 15 seconds. Once indexed, pools appear in the staking interface with full analytics including:

  • Total value staked
  • Current APR
  • Time remaining in the reward period
  • Number of active stakers

Use Cases

  • Token launches: Incentivize holding by offering staking rewards in your project token.
  • LP incentives: Reward users who stake LP tokens from QsnDEX pools.
  • Partner integrations: Projects can create co-marketing staking pools pairing their token with QSN or other assets.