State Transitions Tests Documentation¶
Overview¶
This test suite focuses on verifying the correct state transitions of the KagePool contract, ensuring that the contract behaves correctly as it moves through different states and conditions.
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 initialized 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
- Linked to KAGE token
- Treasury address set
- Contract unpaused for testing
Test Coverage¶
The state transitions tests verify:
- ✅ Contract state changes
- ✅ State transitions during staking operations
- ✅ State management during cooldown periods
- ✅ State consistency during user interactions
- ✅ Contract pause/unpause state transitions