Skip to content

Staking for GET Token on Solana #1

Description

@sanaderi

The staking functionality is a core part of the Gamatrain Governance program. Users can stake their GET tokens on the Solana blockchain through Anchor program transactions, which directly interact with the Solana smart contract. This ensures full decentralization and transparency, as all data and transactions are handled and stored on-chain.

Requirements

1. Staking within Governance Program:

  • Users should be able to stake their GET tokens directly through transactions sent from the client-side using Anchor, which interacts with the Solana blockchain.
  • The amount of GET tokens staked should directly affect the user's voting power in DAO governance decisions, such as proposals and voting outcomes.
  • Implement a minimum staking duration to encourage long-term commitment from stakers, and ensure the system only allows users to unstake after a specific period.

2. Staking Rewards:

  • Users will earn rewards in the form of additional GET tokens for staking. The reward system will distribute GET tokens based on the amount of tokens staked and the duration of staking.
  • Rewards will be calculated and distributed periodically by the Solana program.

3. Staking via Anchor Program Transactions:

  • Client-side Interaction: The client will send requests directly to the Solana program via Anchor to stake and unstake GET tokens.
  • Transaction Logic: The program will handle staking and unstaking operations by updating the relevant on-chain state, calculating rewards, and updating the user’s voting power.

4. Governance Participation:

  • The staked GET tokens will provide users with voting power in the Gamatrain DAO governance system.
  • The voting power will be proportional to the number of tokens staked and how long they have been staked. This data will be recorded on-chain, ensuring transparency.
  • Users can participate in governance decisions, such as voting on proposals or decisions related to the platform, directly from their staked tokens.

5. Solana Blockchain Storage:

All staking and governance data, including the following, will be stored directly on the Solana blockchain:

  • user_wallet_address: The wallet address of the user who staked their GET tokens.
  • amount_staked: The amount of GET tokens staked on the blockchain.
  • staking_start_time: The timestamp when staking began.
  • rewards_earned: The total rewards earned from staking.
  • staking_end_time: The timestamp when unstaking can occur (if applicable).
  • voting_power: The user's voting power derived from staked tokens.
  • The program's state and data will be updated and managed on-chain by the Anchor program.

6. Security:

  • Ensure that only the wallet owner can stake or unstake GET tokens via the Anchor program.
  • All staking and unstaking actions will be authorized and validated directly on the Solana blockchain, making sure no unauthorized or malicious actions occur.

7. Validation:

  • The program will validate the number of GET tokens available in the user’s wallet before allowing them to stake.
  • The system will ensure that staking and unstaking amounts are properly handled, preventing actions like staking more tokens than the user owns.

Acceptance Criteria:

  • Users can stake GET tokens directly on the Solana blockchain using Anchor program transactions.
  • The staked GET tokens provide voting power for DAO governance decisions.
  • Users can earn staking rewards, distributed periodically based on the amount and duration of tokens staked.
  • Staking and unstaking operations are validated and secure, with all relevant data stored on the Solana blockchain.

Additional Considerations:

  • On-Chain Rewards Calculation: The reward system will be implemented on-chain using the Anchor program. Rewards will be calculated based on the staked tokens and duration.
  • Staking Duration and Penalties: Implement a minimum staking period and optional penalties for early unstaking, to encourage long-term staking behavior.
  • Governance Voting: Ensure users can participate in DAO governance by using their staked GET tokens for voting. The voting power will be calculated based on staked tokens and stored on-chain.
  • Efficient On-Chain Storage: Ensure that all staking data and governance information is stored in an efficient manner on the Solana blockchain, ensuring decentralization, transparency, and scalability.

Technologies

  • Anchor Framework: Used to develop and deploy the staking logic and governance mechanisms on the Solana blockchain.
  • Solana Blockchain: Platform for managing GET token staking, governance, and rewards in a decentralized and transparent manner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions