Created
August 1, 2023 02:06
-
-
Save bayological/4dd79e8524140ffe02f11f2d19c8b212 to your computer and use it in GitHub Desktop.
BreakerBox setRateFeedTradingMode function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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