TermPriceConsumerV3.sol
This contract operates at the protocol level and governs all instances of a Term Repo. This contract is a centralized price oracle contract that feeds pricing data to all Term Repos.
TermPriceConsumerV3
This contract is a centralized price oracle contract that feeds pricing data to all Term Repos
This contract operates at the protocol level and governs all instances of a Term Repo
DEVOPS_ROLE
priceFeeds
fallbackPriceFeeds
constructor
initialize
Intializes with an array of token addresses, followed with an array of Chainlink aggregator addresses https://docs.chain.link/docs/ethereum-addresses/
addNewTokenPriceFeedAndFallbackPriceFeed
Parameters
addNewTokenPriceFeed
Parameters
addNewTokenFallbackPriceFeed
Parameters
removeTokenPriceFeed
Parameters
removeFallbackTokenPriceFeed
Parameters
usdValueOfTokens
A function to return current market value given a token address and an amount
Parameters
Return Values
_addNewTokenPriceFeed
Parameters
_addNewTokenFallbackPriceFeed
Parameters
_getLatestPrice
Return Values
_authorizeUpgrade
required override by the OpenZeppelin UUPS module
Last updated