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
DEVOPS_ROLE
bytes32 DEVOPS_ROLEpriceFeeds
mapping(address => contract AggregatorV3Interface) priceFeedsconstructor
constructor() publicinitialize
function initialize(address devopsWallet_) externaladdNewTokenPriceFeed
function addNewTokenPriceFeed(address token, address tokenPriceAggregator) externalParameters
Name
Type
Description
removeTokenPriceFeed
Parameters
Name
Type
Description
usdValueOfTokens
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_getLatestPrice
Return Values
Name
Type
Description
_getDecimals
Return Values
Name
Type
Description
_authorizeUpgrade
Last updated