On-Chain Points
For Token Holders
Give points for each token held per day.
Reward users for holding specific tokens over time.
This system allows you to allocate points to users based on the amount of tokens they hold and the duration of holding. It’s designed to incentivize long-term token holding and engagement.
Points are calculated continuously based on token balances. Any changes in configuration will affect point accrual from that moment forward.
How It Works
- The system tracks token transfer events for specified token contracts.
- User balances are updated based on these transfer events.
- Points are calculated daily for each user based on their token balance and the configured points per day.
- The calculation takes into account partial days, allowing for precise point allocation even for short holding periods.
- Points are aggregated over time, providing a cumulative reward for long-term token holders.
Configuration Fields
Usage Tips
- Set appropriate
start_timestamp
andend_timestamp
to align with specific campaigns or seasons. - Adjust
points_per_day
to balance rewards across different tokens or to emphasize certain holdings. - Ensure
token_decimals
is set correctly to accurately calculate token balances. - Use
is_active
to temporarily pause point accrual without deleting the configuration.
FAQ
This configuration will reward users with 0.1 points per DAI token held per day on the Ethereum mainnet. The tracking period is not limited by start or end timestamps, meaning it will continue indefinitely until changed or deactivated.