added amounts

This commit is contained in:
Shriya Tyagi 2022-09-04 21:25:10 +05:30
parent ffb65ada60
commit c6e0adab7a
2 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,6 @@
pragma solidity ^0.7.0; pragma solidity ^0.7.0;
contract Events { contract Events {
event LogDeposit(uint256 tokenAmt, uint256 getId, uint256 setId); event LogDeposit(uint256 stethAmt, uint256 wstethAmt, uint256 getId, uint256 setId);
event LogWithdraw(uint256 tokenAmt, uint256 getId, uint256 setId); event LogWithdraw(uint256 wstethAmt, uint256 stethAmt, uint256 getId, uint256 setId);
} }

View File

@ -32,7 +32,7 @@ abstract contract WSTETHContract is Helpers, Basic {
setUint(setId, wstethAmt_); setUint(setId, wstethAmt_);
_eventName = "LogDeposit(uint256,uint256,uint256)"; _eventName = "LogDeposit(uint256,uint256,uint256)";
_eventParam = abi.encode(_amt, getId, setId); _eventParam = abi.encode(_amt, wstethAmt_, getId, setId);
} }
/** /**
@ -55,7 +55,7 @@ abstract contract WSTETHContract is Helpers, Basic {
setUint(setId, stethAmt_); setUint(setId, stethAmt_);
_eventName = "LogWithdraw(uint256,uint256,uint256)"; _eventName = "LogWithdraw(uint256,uint256,uint256)";
_eventParam = abi.encode(_amt, getId, setId); _eventParam = abi.encode(_amt, stethAmt_, getId, setId);
} }
} }