From b3408115b2479f6330fadd947a8846e255bd9a6b Mon Sep 17 00:00:00 2001 From: zjb0807 Date: Fri, 27 Oct 2023 17:50:39 +0800 Subject: [PATCH] Add SharesMinted event --- contracts/TapETH.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contracts/TapETH.sol b/contracts/TapETH.sol index 2026863..e5ab856 100644 --- a/contracts/TapETH.sol +++ b/contracts/TapETH.sol @@ -41,6 +41,12 @@ contract TapETH is Initializable, ITapETH { uint256 sharesValue ); + event SharesMinted( + address indexed account, + uint256 tokenAmount, + uint256 sharesAmount + ); + event SharesBurnt( address indexed account, uint256 tokenAmount, @@ -482,6 +488,8 @@ contract TapETH is Initializable, ITapETH { totalShares += _sharesAmount; newTotalShares = totalShares; _totalSupply += _tokenAmount; + + emit SharesMinted(_recipient, _tokenAmount, _sharesAmount); } /**