Skip to content

Commit

Permalink
adding notify reward amount to the trading rewards
Browse files Browse the repository at this point in the history
otherwise sending rewards to l2 will fail
  • Loading branch information
dbeal-eth committed Oct 15, 2023
1 parent bb84b67 commit bb6a240
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/TradingRewards.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.5.16;
import "./Pausable.sol";
import "./MixinResolver.sol";
import "./Owned.sol";
import "./RewardsDistributionRecipient.sol";

// External dependencies.
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol";
Expand All @@ -17,7 +18,7 @@ import "./interfaces/ITradingRewards.sol";
import "./interfaces/IExchanger.sol";

// https://docs.synthetix.io/contracts/source/contracts/tradingrewards
contract TradingRewards is ITradingRewards, ReentrancyGuard, Owned, Pausable, MixinResolver {
contract TradingRewards is ITradingRewards, ReentrancyGuard, Owned, Pausable, MixinResolver, RewardsDistributionRecipient {
using SafeMath for uint;
using SafeDecimalMath for uint;
using SafeERC20 for IERC20;
Expand Down Expand Up @@ -256,6 +257,8 @@ contract TradingRewards is ITradingRewards, ReentrancyGuard, Owned, Pausable, Mi
emit AssignedRewardTokensRecovered(recoverAddress, amount, periodID);
}

function notifyRewardAmount(uint256 reward) external {}

function _validateRecoverAddress(address recoverAddress) internal view {
if (recoverAddress == address(0) || recoverAddress == address(this)) {
revert("Invalid recover address");
Expand Down

0 comments on commit bb6a240

Please sign in to comment.