This document describes the process for dispensing Predictoor rewards.
Predictoor rewards are dispensed weekly via a GitHub Action workflow.
- Workflow: .github/workflows/dispense-predictoor-usdc.yaml
- Schedule: Every Monday at 00:00 UTC.
- Manual Trigger: Can be triggered manually via
workflow_dispatchwith a custom amount of tokens.
The workflow performs the following steps:
- Setup: Installs dependencies and configures environment variables (RPC URLs, private keys).
- Data Retrieval: Runs
dftool predictoor_datato fetch predictoor performance data for the previous week. - Reward Calculation: Runs
dftool calc predictoor_roseto calculate rewards based on the fetched data. - Dispense: Runs
dftool dispense_activeto send rewards to theDFRewardscontract on Sapphire. - Upload: Renames the results folder (appending
-USDCto the round number) and uploads the CSV files to Google Cloud Storage for historical tracking.
- Chain: Sapphire Mainnet (Chain ID 23294)
- Token: USDC (configured via
--TOKEN_ADDRin the dispense step) - Reward Contract:
DFRewardscontract address is specified in the dispense step.
Go to the "Actions" tab in GitHub, select "Dispense Predictoor USDC Rewards", and click "Run workflow". You can specify the amt_of_tokens to distribute.