Skip to content

Instantly share code, notes, and snippets.

@bayological
Created August 1, 2023 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bayological/4dd79e8524140ffe02f11f2d19c8b212 to your computer and use it in GitHub Desktop.
Save bayological/4dd79e8524140ffe02f11f2d19c8b212 to your computer and use it in GitHub Desktop.
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