Skip to content

Instantly share code, notes, and snippets.

Created August 1, 2023 02:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
BreakerBox setRateFeedTradingMode function
* @notice Sets the trading mode for the specified rateFeed.
* @param rateFeedID The address of the rateFeed.
* @param tradingMode The trading mode that should be set.
function setRateFeedTradingMode(address rateFeedID, uint8 tradingMode) public onlyOwner {
require(rateFeedStatus[rateFeedID], "Rate feed ID has not been added");
rateFeedTradingMode[rateFeedID] = tradingMode;
emit TradingModeUpdated(rateFeedID, tradingMode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment