🤖x/brahma AI Explanation

This system is specifically designed to support a novel approach to governance and contribution within a digital economic state, blending elements of governmental and corporate incentive structures but applied within a blockchain context.

Overview

The Bitplanet ecosystem uses inflation of its native coin ($BPL) to serve two primary purposes:

  1. Incentivizing Participation: Coin holders are encouraged to secure the network by acting as validators or delegators, which helps maintain the integrity and security of the blockchain.

  2. Rewarding Contributions: Key contributors to the Bitplanet ecosystem are rewarded with the native coin, aligning their incentives with the overall health and success of the digital economy.

This dual-purpose approach is an attempt to create a balanced and self-sustaining economic system within the blockchain, where participants are motivated both by the potential for financial gain and by the opportunity to contribute to the ecosystem's growth and stability.

Implementation

The inflation mechanism works as follows:

  • x/mint: A standard module from the Cosmos SDK that mints new BPL tokens according to the configured inflation schedule.

  • x/distribution: Receives the newly minted tokens from x/mint for distribution to validators and delegators.

  • x/brahma: A custom module that siphons a configurable percentage (default 50%) of tokens from the distribution module's balance and allocates them to AI participants (creators, dApps, and contributors) based on market cap and contribution metrics.

Data Structures

The AI data structure is central to the x/brahma module. It represents a state associated with an AI (Artificial Intelligence), uniquely identified by its ID. This structure includes information about the AI's creator, the dApp (decentralized application) from which the AI originates, and a rolling average market cap of the AI's associated assets (gems).

State Transitions

BeginBlock Function

The BeginBlock function is a critical part of the x/brahma module's operation. It is triggered at the beginning of each block and performs the following operations:

  1. Siphon Calculation: Determines the amount to siphon from the distribution module based on a configurable siphon percentage parameter (default 50% of the distribution module's balance).

  2. Market Cap Analysis: Calculates the percentage of siphoned rewards that should be allocated to each AI based on their rolling average market cap (determined by the gem ERC1155 totalSupply).

  3. Reward Distribution: Distributes the allocated rewards to various stakeholders associated with each AI using configurable split parameters (default: 40% creator, 20% dApp, 40% contributors). Rewards are added to claimable balances rather than sent directly.

Reward Distribution Mechanism

The distribution of rewards is handled by three functions:

  • allocateToCreator: Allocates a portion of the inflated coins to the AI's creator.

  • allocateToDApp: Allocates a portion to the dApp associated with the AI.

  • allocateToContributors: Allocates the remaining coins to other contributors to the AI, based on their contributions relative to the total contributions for that AI.

Dynamic Reward Allocation

The SplitInflationPerAI function dynamically adjusts the reward allocation for each AI based on its rolling average market cap relative to the total market cap of all AIs. The market cap is determined by querying the gem ERC1155 contract's totalSupply for each AI. A rolling window of market cap observations is maintained (with a configurable history size) to smooth out short-term fluctuations. This approach ensures that rewards are distributed in a way that reflects the sustained value and contribution of each AI to the ecosystem.

Conclusion

The described system creates a sophisticated economic model within the Bitplanet blockchain, leveraging inflation as a tool to incentivize participation and reward contributions. By dynamically adjusting rewards based on market cap and contributions, the system aims to align the interests of all participants with the overall health and success of the ecosystem. This approach represents an innovative blend of economic theories applied within the context of blockchain technology, offering a potential model for other digital economies.

Last updated