Skip to content

Latest commit

 

History

History

hidden-hand

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hidden Hand

Reward Distributor (Mainnet): 0x0b139682d5c9df3e735063f46fb98c689540cf3a Reward Distributor (Optimism): 0x0b139682D5C9Df3e735063f46Fb98c689540Cf3A

Important note:

Distribution data contains ALL rewards, including those that have already been claimed.

In order to calculate the current rewards (amount of rewards that have not yet been claimed), you must subtract the claimed rewards from the total rewards.

You may query the RewardDistributor for previous claims using the claimed method and passing in the rewardIdentifier (keccak256 hash of PROTOCOL + rewardTokenAddress) and walletAddress as parameters, eg:

const amount = await contract.claimed(
  '0x0000000000000000000000000000000000000000', // Reward Identifier
  '0x0000000000000000000000000000000000000000' // Wallet address
)

You would then subtract this amount from the total contained in ./latest/market/network/0xRewardToken.json

Token mappings

Note: ETH rewards are represented by the BribeVault on Ethereum and Optimism.

  • ETH: 0x9DDb2da7Dd76612e0df237B89AF2CF4413733212

Directory structure

.
└── aura                                # Protocol slug
    ├── 1                               # Chain ID (1 = Mainnet)
    │   ├── latest                      # Aggregated distribution data
    │   │   └── 0xRewardToken.json      # Rewards for token address
    │   └── 1674691200                  # Distribution at proposal deadline (UTC)
    │       └── 0xRewardToken.json
    └── 10                              # Chain ID (10 = Optimism)
        ├── latest
        │   └── 0xRewardToken.json
        └── 1674691200
            └── 0xRewardToken.json