FeesVotingReward
Overview
FeesVotingReward distributes funded pool fee rewards according to the voting weights recorded for veNFTs. It inherits the accounting and claim methods described in VotingReward.
FeesVotingReward Methods
notifyRewardAmount
Transfer an ERC-20 reward token from the caller to the reward contract and assign it to the current weekly epoch.
function notifyRewardAmount(address token, uint256 amount) external| Input Parameter | Type | Description |
|---|---|---|
token | address | The ERC-20 reward token. |
amount | uint256 | The nonzero amount to transfer and record, in the token's smallest unit. |
This method is restricted by the contract's AccessManager authority. The caller must approve this reward contract to transfer amount tokens. A token not already present is added to the reward token list without a bribe-token whitelist check.
At least one voting escrow must be registered at the epoch's start. Funding is split between registered escrows using their weighted voting power at that timestamp when more than one escrow is registered. Rewards for the epoch become claimable after it ends, using getReward(ve, tokenId, tokens) or Voter.claimFees.