From 680dca61764fea3517825abe94895f89853362e3 Mon Sep 17 00:00:00 2001 From: Vitally Marinchenko Date: Sat, 19 Oct 2024 00:48:48 +0200 Subject: [PATCH] typical event added --- contracts/DynamicRewardFarm.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contracts/DynamicRewardFarm.sol b/contracts/DynamicRewardFarm.sol index 0a2d939..d9fa486 100644 --- a/contracts/DynamicRewardFarm.sol +++ b/contracts/DynamicRewardFarm.sol @@ -65,6 +65,11 @@ contract DynamicRewardFarm is TokenWrapper { _; } + event RewardTokenAdded( + address indexed rewardToken, + uint256 tokenCount + ); + /** * @dev No modifier necessary since this contract is * cloned by the factory contract calling initialize @@ -131,6 +136,11 @@ contract DynamicRewardFarm is TokenWrapper { ); tokenCount = tokenCount + 1; + + emit RewardTokenAdded( + _rewardToken, + tokenCount + ); } /**