@@ -188,6 +188,8 @@ contract Validly is IValidly, ERC20, ReentrancyGuard {
188188
189189 (amount0, amount1) =
190190 pool.depositLiquidity (amount0, amount1, msg .sender , _verificationContext, abi.encode (msg .sender ));
191+
192+ emit Deposit (msg .sender , _recipient, amount0, amount1, shares);
191193 }
192194
193195 /**
@@ -215,11 +217,13 @@ contract Validly is IValidly, ERC20, ReentrancyGuard {
215217 revert Validly__withdraw_invalidRecipient ();
216218 }
217219
218- (uint256 reserve0 , uint256 reserve1 ) = pool.getReserves ();
220+ {
221+ (uint256 reserve0 , uint256 reserve1 ) = pool.getReserves ();
219222
220- uint256 totalSupplyCache = totalSupply ();
221- amount0 = Math.mulDiv (reserve0, _shares, totalSupplyCache);
222- amount1 = Math.mulDiv (reserve1, _shares, totalSupplyCache);
223+ uint256 totalSupplyCache = totalSupply ();
224+ amount0 = Math.mulDiv (reserve0, _shares, totalSupplyCache);
225+ amount1 = Math.mulDiv (reserve1, _shares, totalSupplyCache);
226+ }
223227
224228 if (amount0 == 0 || amount1 == 0 ) revert Validly__withdraw_AmountZero ();
225229
@@ -234,6 +238,8 @@ contract Validly is IValidly, ERC20, ReentrancyGuard {
234238 _burn (msg .sender , _shares);
235239
236240 pool.withdrawLiquidity (amount0, amount1, msg .sender , _recipient, _verificationContext);
241+
242+ emit Withdraw (msg .sender , _recipient, amount0, amount1, _shares);
237243 }
238244
239245 /**
0 commit comments