Integration Tests Documentation¶
Overview¶
This file contains integration tests for the KagePool and KAGENETWORK contracts, testing the complete functionality and interaction between different components of the system.
Test Setup
- Contracts Deployed:
- KAGENETWORK Token
-
KagePool
-
Key Actors:
- Owner
- Treasury
- New 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
- KAGE token address
- Treasury address
Test Coverage¶
The integration tests cover the complete flow of:
- ✅ Contract deployment and initialization
- ✅ Pool setup and configuration
- ✅ Interaction between KagePool and KAGENETWORK token
- ✅ Multiple user interactions and state changes