SKOR AI
  • SKOR AI
    • 1️⃣ Introduction
      • 📌 What is Skor AI?
      • 🌎 Vision & Mission
      • 🚀 Why Skor ?
    • 2️⃣Skor AI Agents
      • 🤖 Overview of AI Agents
      • 🎮 Agent Precision - Gaming Co-Pilot (Real-Time Coaching)
        • 🏆 Esports Analyst (Tournament Insights & Meta Strategies)
        • 🔥 Witty Banter Bot (Trash Talk AI for Fun & Engagement)
        • 📊 AI Spectator Mode (Live Commentary & Analysis)
      • 🛍️ Agent Hunterrrr (Purchase Optimization)
  • 3️⃣Skor Gaming Dashboard
    • 🏠 Home & Personalization
    • 🎯 Game Discovery & Recommendations
    • 📉 Performance Tracking & Analytics
    • 🎁 Discounts, Airdrops, and Web3 Rewards
    • 📡 Live Game Alerts & AI Notifications
  • 4️⃣ SKOR AI Agent Staking Project
    • 🌐 $SKORAI Token: Utility, Staking, and Ecosystem Integration
  • 5️⃣ SKOR AI Agent Tokenomics
  • 6️⃣ $SKORAI- Earn While Upskilling
  • 7️⃣Skor Metaverse & Virtual Arena
    • 🏟️ 3D Live Streaming
    • 🔴 Esports Watch Parties
    • 🏙️ Immersive Digital
  • VISION
    • Vision
    • Core Philosophies
  • Community
    • Welcome Aboard
Powered by GitBook
On this page
  • 1. Overview
  • 2. Staking Model & Tokenomics
  • Staking Reward Pool
  • Staking Structure
  • APY Table (Annualized Rates, Pro-Rated for Duration)
  • Example Calculation:
  • 3. Backend Architecture & Components
  • A. Blockchain Integration (Solana)
  • B. Off-Chain Services
  • 4. Reward Calculation Logic
  • Calculation Formula:
  • Code Example (Rust)
  • Explanation:
  • 5. Test Driven Development (TDD) Strategy
  • Additional TDD Practices:
  • Example Simulation (Pseudocode in JavaScript)
  • Running Tests
  • 6. Simulations and Monthly Reward Budget
  • Simulation Scenarios

4️⃣ SKOR AI Agent Staking Project

Stake your $SKORAI tokens, earn rewards, and grow in-game and on-chain. Tiered staking, fixed durations, no early withdrawals. Solana-powered, with a 5M token monthly reward cap.

1. Overview

We're also bringing DeFi into the gaming world with Solana-based staking. Users can stake their $SKOR tokens to earn rewards through a structured tier and duration model — directly integrated into our platform. This creates a self-sustaining ecosystem where gamers grow both in skill and value.

2. Staking Model & Tokenomics

Total Supply: 1,000,000,000 tokens Initial Token Value: $0.0075

Staking Reward Pool

  • Total: 300,000,000 tokens distributed over 60 months

  • Monthly Cap: Maximum of 5,000,000 tokens distributed per month

Staking Structure

  • Tiers:

    • Bronze: 1,000 – 19,999 tokens

    • Silver: 20,000 – 49,999 tokens

    • Gold: 100,000+ tokens

  • Staking Durations:

    • Options: 60, 90, 180, 365 days

    • Note: Early withdrawals are not allowed.

  • Rewards:

    • Flat rewards paid at the end of the lock period

    • Annualized APYs, pro-rated for shorter durations

APY Table (Annualized Rates, Pro-Rated for Duration)

Tier
60 Days
90 Days
180 Days
365 Days

Bronze

6.5%

8%

10%

12%

Silver

8.5%

8%

13%

16%

Gold

10%

13%

16%

20%

Example Calculation:

For a Silver-tier user staking 20,000 tokens for 90 days:

  • Duration: 90 days (¼ year)

  • APY: 11% annualized → Pro-rated APY = 11% / 4 = 2.75%

  • Reward: 20,000 × 2.75% = 550 tokens

  • Maturity Amount: 20,000 + 550 = 20,550 tokens

3. Backend Architecture & Components

A. Blockchain Integration (Solana)

  • Smart Contracts: Written in Rust using the Solana program library.

  • On-Chain Storage: State is maintained on Solana, holding staking records and token balances.

  • Communication: Okto Smart Wallet integration and Paymaster for front-end interactions.

B. Off-Chain Services

  • Calculation Engine: Handles reward computations and staking simulations.

  • APIs: Expose endpoints for staking, checking rewards, and user account management.

4. Reward Calculation Logic

Reward calculations are based on the annualized APY, the staking tier, and the chosen lock duration. The reward is prorated for shorter terms.

Calculation Formula:

For a given stake:

  • Reward = Staked Tokens × (APY ÷ (365 / Duration in Days))

For example, using the Silver-tier for 90 days:

  • Reward = 20,000 tokens × (11% / 4) = 550 tokens

Code Example (Rust)

Below is a simplified Rust function that performs the calculation. This code would be part of your on-chain program or a simulation module.

/// Returns the reward for a given stake, APY (annualized in percentage),
/// and duration (in days). Reward is calculated as:
/// Reward = stake * ((apy/100) / (365 / duration))
pub fn calculate_reward(stake: u64, apy: f64, duration_days: u64) -> u64 {
    let annual_fraction = duration_days as f64 / 365.0;
    let reward = (stake as f64) * (apy / 100.0) * annual_fraction;
    reward.round() as u64
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_calculate_reward_90_days_silver() {
        // Silver Tier, 90 days APY of 11%, stake of 20,000 tokens.
        let stake = 20_000;
        let apy = 11.0;
        let duration = 90;
        // Expected reward = 20,000 * (11/100) * (90/365) ≈ 20,000 * 0.11 * 0.2466 = 543 tokens (approx)
        let reward = calculate_reward(stake, apy, duration);
        assert!((reward as i64 - 543).abs() <= 1, "Expected reward around 543 tokens, got {}", reward);
    }

    #[test]
    fn test_calculate_reward_365_days_gold() {
        // Gold Tier, 365 days APY of 20%, stake of 100,000 tokens.
        let stake = 100_000;
        let apy = 20.0;
        let duration = 365;
        // Expected reward = 50,000 * 0.20 * (365/365) = 10,000 tokens
        let reward = calculate_reward(stake, apy, duration);
        assert_eq!(reward, 10_000);
    }
}

Explanation:

  • Function: calculate_reward computes rewards based on the input parameters.

  • Testing: Unit tests (using Rust’s built-in framework) verify that the reward calculations meet expected values.

  • TDD Note: By writing tests first, then developing logic to pass these tests, you ensure that your calculation engine meets the business rules.

5. Test Driven Development (TDD) Strategy

TDD will be our guiding development methodology. The process is as follows:

  1. Write Tests: For every new feature or bug fix, write a failing test.

  2. Implement Code: Develop the code necessary to pass the test.

  3. Refactor: Clean up the code, ensuring tests continue to pass.

  4. Repeat: Iterate for every new piece of functionality.

Additional TDD Practices:

  • Integration Tests: Simulate entire staking flows, including token transfers, locking periods, and reward payouts.

  • Simulation Scripts: Use off-chain simulations to model monthly reward budgets under different staking scenarios.

Example Simulation (Pseudocode in JavaScript)

For further testing outside the on-chain environment, you might want a simulation script written in JavaScript using a framework like Mocha:

Copy

// calculateReward.js
function calculateReward(stake, apy, durationDays) {
  const annualFraction = durationDays / 365;
  return Math.round(stake * (apy / 100) * annualFraction);
}

module.exports = { calculateReward };

Copy

// test/calculateReward.test.js
const assert = require('assert');
const { calculateReward } = require('../calculateReward');

describe('calculateReward function', function() {
  it('should calculate reward for 90 days stake (Silver Tier)', function() {
    const stake = 20000;
    const apy = 11;
    const durationDays = 90;
    // Expected reward ≈ 543 tokens
    const reward = calculateReward(stake, apy, durationDays);
    assert(Math.abs(reward - 543) <= 1);
  });
  
  it('should calculate reward for 365 days stake (Gold Tier)', function() {
    const stake = 50000;
    const apy = 20;
    const durationDays = 365;
    // Expected reward = 10,000 tokens
    const reward = calculateReward(stake, apy, durationDays);
    assert.strictEqual(reward, 10000);
  });
});

Running Tests

  • Rust Tests: Run with cargo test to ensure all unit tests in your Solana program pass.

  • JavaScript Tests: Run npm test (assuming you set up Mocha/Chai) to validate off-chain simulation logic.

6. Simulations and Monthly Reward Budget

The following are simulations that validate monthly reward distributions:

Simulation Scenarios

  1. 10% of Supply Staked (100M tokens)

    • Breakdown Example:

      • Bronze: 50M tokens at 9.5% APY → Annual Reward: 4.75M tokens

      • Silver: 35M tokens at 12% APY → Annual Reward: 4.2M tokens

      • Gold: 15M tokens at 16% APY → Annual Reward: 2.4M tokens

    • Monthly Reward: Approximately 0.95M tokens

  2. 20% of Supply Staked (200M tokens) ...

  3. 30% of Supply Staked (300M tokens)

  4. 40% of Supply Staked (400M tokens)

  5. 50% of Supply Staked (500M tokens)

Each simulation confirms that the reward distribution is within the monthly cap, ensuring a 2M token buffer under the maximum monthly distribution of 5M tokens.

Previous📡 Live Game Alerts & AI NotificationsNext🌐 $SKORAI Token: Utility, Staking, and Ecosystem Integration

Last updated 9 days ago