Skip to content

Commit

Permalink
fix: include reward token in event
Browse files Browse the repository at this point in the history
  • Loading branch information
narayanprusty committed Aug 23, 2023
1 parent 4d7c8b1 commit b5b1558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Comptroller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ contract Comptroller is
event NewSupplyCap(VToken indexed vToken, uint256 newSupplyCap);

/// @notice Emitted when a rewards distributor is added
event NewRewardsDistributor(address indexed rewardsDistributor);
event NewRewardsDistributor(address indexed rewardsDistributor, address indexed rewardToken);

/// @notice Emitted when a market is supported
event MarketSupported(VToken vToken);
Expand Down Expand Up @@ -977,7 +977,7 @@ contract Comptroller is
_rewardsDistributor.initializeMarket(address(allMarkets[i]));
}

emit NewRewardsDistributor(address(_rewardsDistributor));
emit NewRewardsDistributor(address(_rewardsDistributor), address(_rewardsDistributor.rewardToken()));
}

/**
Expand Down

0 comments on commit b5b1558

Please sign in to comment.