Skip to content

Staking Data Tests Documentation

Overview

This test suite focuses on verifying the correct handling and management of staking data within the KagePool contract, ensuring accurate record-keeping and data management for all staking operations.

Test Setup
  • Contracts Deployed:
  • KAGENETWORK Token
  • KagePool

  • Key Actors:

  • Owner
  • Treasury
  • User1, User2, User3
  • Reward Distributor
Key Constants
  • MONTH: 30 days (in seconds)
  • POOL_CAP: 1,000,000 tokens
  • MIN_STAKE: 100 tokens
  • LOCK_DURATION: 1 month
  • PENALTY_BPS: 20% (2000 basis points)
  • COOLDOWN_PERIOD: 1 day (in seconds)

Test Configuration

The test environment is set up with:

KAGE Token Configuration

  • Buy/Sell Tax: 5% (500 basis points)
  • Max Wallet Division: 100
  • Max Transaction Division: 100
  • Max Swap Divisor: 10

KagePool Configuration

  • Contract unpaused
  • Basic pool configuration

Test Coverage

The staking data tests verify:

  • ✅ Accurate staking record creation
  • ✅ Staking data updates and modifications
  • ✅ User balance tracking
  • ✅ Lock period calculations
  • ✅ Reward data management
  • ✅ Historical data accuracy
  • ✅ Data consistency across operations
  • ✅ Staking metadata management