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
  • View Methods
  • getFactory
  • getRouter
  • getPTBeacon
  • getYTBeacon
  • getTokenizationFee
  • getYieldFee
  • getPTFlashLoanFee
  • getFeeCollector
  • getFeeReduction
  • isRegisteredPT
  • getPTAt
  • pTCount
  1. Technical Reference
  2. Contract Functions

Registry

PreviousYield TokenNextRateOracle

Last updated 1 year ago

The Registry contract keeps a record of all valid contract addresses used by the protocol.

Registry.sol code can be .

View Methods

getFactory

function getFactory() external view returns (address)

Returns the address of the associated .

getRouter

function getRouter() external view returns (address)

Returns the address of the associated .

getPTBeacon

function getPTBeacon() external view returns (address)

Returns the address of the PT Beacon that allows to upgrade the implementation.

getYTBeacon

function getYTBeacon() external view returns (address)

getTokenizationFee

function getTokenizationFee() external view returns (uint256)

getYieldFee

function getYieldFee() external view returns (uint256)

getPTFlashLoanFee

function getPTFlashLoanFee() external view returns (uint256)

getFeeCollector

function getFeeCollector() external view returns (address)

getFeeReduction

function getFeeReduction(address _pt, address _user) external view returns (uint256)

Get the fee reduction of the given _user for the given _pt .

isRegisteredPT

function isRegisteredPT(address _future) external view returns (bool)

getPTAt

function getPTAt(uint256 _index) external view returns (address)

pTCount

function pTCount() external view returns (uint256)

Returns the address of the YT Beacon that allows to upgrade the implementation.

Return the tokenisation fee taken on deposited in the contract.

Return the value of the fee taken on generated yield in the contract.

Return the value of the fee taken for realizing a flash loan in the contract.

Return the address allowed to claim the fees from the contracts.

Returns true if an address is registered as a .

Returns the address of the at _index.

Returns the number of that are registered.

found on Github
Factory
Router
Principal Token
Yield Token
Principal Token
Router
PT
PrincipalToken
PrincipalToken
PrincipalToken
Principal Token
IBTs