Grass / grass
Grass is a network of over 2 million people who are rewarded for helping AI developers access the internet. Its goal is to prevent the concentration of AI by allowing ordinary people to play a part and share in the benefits of its growth.
Grass is the Data Layer of AI built as a Layer 2 Sovereign Data Rollup.
The infrastructure consists of two key components:
-
Grass nodes allow users' devices to contribute their underutilized internet resources towards the development of AI models.
-
Sovereign Data Rollup consists of the network of nodes, routers, validator, ZK processor, and Data ledger which facilitates the data sourcing and transformation process — turning unstructured web data into structured datasets.
Prize distribution and scoring
Total Prize Pool $15,000
- Scoring described in the competition scoring page.
- Findings Severities described in detail on our docs page.
- Only High and Medium findings would be accepted for Total Prize Pool.
Documentation
Airdrop Program Specs:
- Admin to update the correct allocation per account
- Admin will lock allocations
- Multisig to unlock allocation changes
- Multisig to allow tokens to be claimable
- Multisig to transfer tokens out of airdrop contract
- Capable of supporting up to 5m wallets.
Staking Program Specs:
- Each router will have a hotkey and a coldkey (staking contract will need to include both)
- The coldkey will have access to tokens (rewards generated from staking)
- The rewards generated from the validator are a fixed percent of total rewards generated from delegates that stake with the router (ie. 10% fee). The percentage can be adjusted.
- Any token holder will be able to delegate their tokens to be staked with a particular router
- Any wallet that has tokens delegated to a router can request to unstake
- Unstaking will have a 7 day lockup - after that time users can claim their staked tokens
- Staking rewards have no lockup
- Staking rewards are distributed every block
- Slashing will be manually done from a multisig and will be done in batches of 10k tokens
- Slashed tokens will be taken pro-rata from all users that staked to a particular delegate
- Slashed tokens will be sent to the staking reward pool
- Query stake per router
- Query unstake time + amount
- Query total stake
- Query rewards earned (router)
- Query rewards earned (staker)
Scope
Contracts
- router-staking/programs/token-staking/src/*
- grass-token/programs/token-contract/src/*
- token-airdrop/programs/token-airdrop/src/*
Code Overview
Build Instructions
- Each repository has its setup instructions in its respective README.
Out of scope
- Automated report
Contact Us
For any issues or concerns regarding this competition, please reach out to the Cantina core team through the Cantina Discord.
Summary
Status
CompletedTotal reward:
$15,000
Findings submitted:
116
Start date:
24 Jun 2024 8:00pm (local time)
End date:
1 Jul 2024 8:00pm (local time)