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
  • GovernanceRegistry Methods
  • votingRewardsFactory
  • poolsData
  • getPoolId
  • isPoolRegistered
  1. Technical Reference
  2. Contract Functions

GovernanceRegistry

Overview

The GovernanceRegistry keeps a record of miscellaneous data used by Spectra's governance contracts.

GovernanceRegistry Methods

votingRewardsFactory

Returns the address of VotingRewardsFactory.

function votingRewardsFactory() external view returns (address)

poolsData

Returns the pool data.

function poolsData(uint160 _poolId) external view returns (address, uint256, bool)
Return Parameter
Type
Description

_pool

address

The pool address.

_chainId

uint256

The chainId of the network on which the pool is deployed.

_isRegistered

bool

True if the pool is registered, false otherwise.

getPoolId

Returns the pool ID for the given pool.

poolId = uint160(poolAddress) āŠ•\oplusāŠ• uint160(chainId)

function getPoolId(address _pool, uint256 _chainId) external view returns (uint160)

isPoolRegistered

Returns wether the given pool is registered for deployment of voting rewards.

function isPoolRegistered(uint160 _poolId) external view returns (bool)
function isPoolRegistered(address _pool, uint256 _chainId) external view returns (bool)
PreviousRouterNextVoter

Last updated 1 year ago