Rush Games
  • Welcome
  • Navigating the Ecosystem
    • About Rush Games
    • Rush Games: Where Gaming Meets DeFi
    • Rush Tokenomics
  • Technical Foundation
    • Rush Games Architecture & Contracts
    • Platform Mechanism
    • Rush Earn
    • Subgraph and Transparency
    • Audits
  • Community & Resources
    • Community Links
    • Media Kit
Powered by GitBook
On this page
  • Overview
  • Key Features
  • How to Use
  • Contract Details
  • Important Parameters
  • Tips for Optimizing Returns
  • Security
  1. Technical Foundation

Rush Earn

The Rush Games Vault is a staking mechanism that allows users to earn rewards by staking their RUSH tokens. This section explains how the Vault works and how you can participate to earn passive income.

Overview

The Vault contract enables users to:

  • Stake RUSH tokens and receive xRUSH tokens in return

  • Earn rewards based on tiered APY rates

  • Claim rewards at any time

  • Withdraw staked tokens (after meeting the minimum staking period)

Key Features

Tiered Rewards System

The Vault implements a three-tier reward structure based on the amount of RUSH tokens staked:

  • Tier 1: For balances below the tier 1 threshold

    • Current APY: ${tier1_APY/100}%

  • Tier 2: For balances between tier 1 and tier 2 thresholds

    • Current APY: ${tier2_APY/100}%

  • Tier 3: For balances above the tier 2 threshold

    • Current APY: ${tier3_APY/100}%

xRUSH Tokens

When you stake RUSH tokens, you receive an equivalent amount of xRUSH tokens (minus the deposit fee). These tokens represent your stake in the Vault and can be used in other parts of the Rush Games ecosystem.

Reward Calculation

Rewards are calculated hourly based on:

  • Your staked balance

  • Your applicable APY tier

  • The duration since your last claim or deposit

The formula used is:

Annual Reward = (Staked Balance * APY Rate) / 10000
Hourly Reward = Annual Reward / (52 weeks * 7 days * 24 hours)
Total Reward = Hours Staked * Hourly Reward

How to Use

Staking (Deposit)

To stake your RUSH tokens:

  1. Approve the Vault contract to spend your RUSH tokens

  2. Call the deposit function with the amount you want to stake

  3. A small deposit fee (currently ${depositFeePercentage/100}%) will be deducted

  4. You'll receive xRUSH tokens representing your stake

Claiming Rewards

You can claim your accumulated rewards at any time by:

  1. Calling the claim function

  2. The rewards will be transferred to your wallet

  3. Your last update time will be reset

Withdrawing

To withdraw your staked tokens:

  1. Call the withdraw function with the amount you want to withdraw

  2. Your xRUSH tokens will be burned and RUSH tokens returned to you

  3. Note: A minimum staking period of 21 days applies to withdrawals

Contract Details

  • Contract Address: -

  • Chain: Sonic

Important Parameters

  • Minimum Staking Period: 21 days

  • Deposit Fee: ${depositFeePercentage/100}%

  • Tier 1 Threshold: ${tier1_balance} RUSH

  • Tier 2 Threshold: ${tier2_balance} RUSH

Tips for Optimizing Returns

  • Stake larger amounts to access higher APY tiers

  • For maximum rewards, claim less frequently to minimize gas costs

  • Consider the minimum staking period when planning your strategy

Security

The Vault contract includes several security measures:

  • Utilizes OpenZeppelin's ReentrancyGuard to prevent reentrancy attacks

  • Implements SafeERC20 for secure token transfers

  • All functions that modify state are protected against potential exploits

For complete transparency, the full contract code will be available on Audit

PreviousPlatform MechanismNextSubgraph and Transparency

Last updated 2 months ago