fix
This commit is contained in:
@@ -38,6 +38,7 @@ contract DODOIncentive is InitializableOwnable {
|
||||
|
||||
event SetBoost(address token, uint256 boostRate);
|
||||
event SetSwitch(bool isOpen);
|
||||
event SetNewProxy(address dodoProxy);
|
||||
event SetPerReward(uint256 dodoPerBlock);
|
||||
event SetDefaultRate(uint256 defaultRate);
|
||||
event Incentive(address user,uint256 reward, address fromToken, address toToken);
|
||||
@@ -74,6 +75,11 @@ contract DODOIncentive is InitializableOwnable {
|
||||
emit SetDefaultRate(defaultRate);
|
||||
}
|
||||
|
||||
function changeDODOProxy(address _dodoProxy) public onlyOwner {
|
||||
_DODO_PROXY_ = _dodoProxy;
|
||||
emit SetNewProxy(_DODO_PROXY_);
|
||||
}
|
||||
|
||||
function emptyReward(address assetTo) public onlyOwner {
|
||||
uint256 balance = IERC20(_DODO_TOKEN_).balanceOf(address(this));
|
||||
IERC20(_DODO_TOKEN_).transfer(assetTo, balance);
|
||||
|
||||
Reference in New Issue
Block a user