Spectra Developer Docs
  • Developers Documentation
  • Getting Started
  • Guides
    • Tokenizing Yield
    • Providing Liquidity
    • Deploy PT and Curve Pool
    • Routing
    • IBT Additional Rewards
    • Locking APW for veAPW
    • Voting and Earning Rewards
  • Technical Reference
    • Deployed Contracts
    • Contract Functions
      • Principal Token
      • Yield Token
      • Registry
      • RateOracle
      • Factory
      • Access Manager
      • RouterUtil
      • Router
      • GovernanceRegistry
      • Voter
      • VotingReward
        • BribeVotingReward
        • FeesVotingReward
      • FeeDistributor
      • Spectra4626Wrapper
    • Yield Calculations
    • Spectra's Automated Market Makers
      • Rate Adjusted StableSwap pools
  • Glossary
  • INTEGRATION REFERENCE
    • Spectra Oracles
      • TWAP Oracles
      • Deterministic Oracles
        • Linear APR model
        • Linear Discount Model
        • Zero Coupon Bond Model
        • Comparison
      • Oracle Deployment
        • Deterministic Oracles Deployment
        • TWAP Oracles Deployment
Powered by GitBook
On this page
  • Overview
  • FeesVotingReward Methods
  • notifyRewardAmount
  • notifyRewardAmountETH
  1. Technical Reference
  2. Contract Functions
  3. VotingReward

FeesVotingReward

Overview

The FeesVotingReward contract allows to distribute pool fees rewards to users, earned through voting for the pool in question.

FeesVotingReward Methods

notifyRewardAmount

Add rewards for voters to earn.

function notifyRewardAmount(
    address _token,
    uint256 _amount
) external
Input Parameter
Type
Description

_token

address

The address of token to reward.

_amount

uint256

The amount of token to transfer to rewards

Only callable with FEES_VOTING_REWARDS_DISTRIBUTOR_ROLE role.

notifyRewardAmountETH

Add ETH rewards for voters to earn.

function notifyRewardAmountETH() external

msg.value should be set the desired amount to add.

Only callable with FEES_VOTING_REWARDS_DISTRIBUTOR_ROLE role.

PreviousBribeVotingRewardNextFeeDistributor

Last updated 1 year ago