Detailed Smart Contract Structure

Our decentralized platform is underpinned by a robust network of interconnected smart contracts, each playing a unique role in our ecosystem. This architecture enables our platform to provide a secure, transparent, and efficient environment for all users.

  1. WBlock Token Contract: The WBlock token contract is at the center of the ecosystem and interacts with all other contracts. It's used by the Governance Contract to check if an address is eligible to vote and by how much. The Game Contract uses it to handle games. The Reward Distribution Contract uses it to transfer rewards to voters. The Liquidity Management Contract uses it to add and remove liquidity from decentralized exchanges.

  2. Governance Contract: The Governance contract primarily interacts with the WBlock Token Contract to check voting eligibility and to receive the proposal fee from proposal creators. Additionally, it interacts with the Consensus Contract to ensure only consensus members are reviewing proposals and with the Reward Distribution Contract to award tokens to voters.

  3. Consensus Contract: The Consensus Contract communicates with the Governance Contract for reviewing proposals and enacting changes to system parameters. It uses the WBlock Token Contract to distribute rewards and interacts with the Emergency Mechanism Contract to enact emergency measures. Furthermore, it is responsible for managing the number of consensus seats. Changes to this number are initiated by community votes and enacted through this contract.

  4. Liquidity Management Contract: This contract directly interacts with the WBlock Token Contract and a decentralized exchange's smart contract like Uniswap or PancakeSwap to manage the platform's liquidity. It is regulated by the Consensus Contract, which authorizes liquidity management actions.

  5. Game Contracts: Each game contract interacts with the WBlock Token Contract to handle playing and rewards. They may also communicate with the Whitelist Contract to ensure they are still approved on the platform, ensuring a measure of security and trust.

  6. Emergency Mechanism Contract: This contract would be called upon by the Consensus Contract in emergency situations. In response, it might interact with all other contracts in the system to pause their functions or enact other safety measures.

  7. Whitelist Contract: This contract is controlled by the Consensus Contract, which adds or removes addresses. It interacts with the Game Contracts to ensure that only whitelisted games are running on the platform.

  8. Reward Distribution Contract: This contract is used by the Governance Contract to reward voters. It uses the WBlock Token Contract to transfer tokens to reward recipients.

Our smart contract structure combines the power of blockchain technology with the democratic principle of decentralized governance. We believe this infrastructure empowers our users and promotes transparency, trust, and fairness in the ecosystem.

Last updated