From e55421f830ceeba2f3bce34d394a19a3679a5cc6 Mon Sep 17 00:00:00 2001 From: Frihat Date: Mon, 9 Oct 2023 07:31:01 +0200 Subject: [PATCH] fix issue in function _burnShares --- contracts/TapETH.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/TapETH.sol b/contracts/TapETH.sol index 86a4514..5ce052c 100644 --- a/contracts/TapETH.sol +++ b/contracts/TapETH.sol @@ -491,7 +491,7 @@ contract TapETH is ITapETH { uint256 preRebaseTokenAmount = getPooledEthByShares(_sharesAmount); shares[_account] -= _sharesAmount; totalShares -= _sharesAmount; - _totalSupply -= _sharesAmount; + _totalSupply -= preRebaseTokenAmount; newTotalShares = totalShares; uint256 postRebaseTokenAmount = getPooledEthByShares(_sharesAmount);