Skip to content

Commit

Permalink
Add SharesMinted event
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 committed Oct 27, 2023
1 parent 8daa646 commit b340811
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/TapETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -482,6 +488,8 @@ contract TapETH is Initializable, ITapETH {
totalShares += _sharesAmount;
newTotalShares = totalShares;
_totalSupply += _tokenAmount;

emit SharesMinted(_recipient, _tokenAmount, _sharesAmount);
}

/**
Expand Down

0 comments on commit b340811

Please sign in to comment.