From ffb65ada60cd0cc37c7a969a71063cc811c73999 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi <47134275+shriyatyagii@users.noreply.github.com> Date: Sun, 4 Sep 2022 21:21:43 +0530 Subject: [PATCH] Update contracts/mainnet/connectors/wsteth/main.sol Co-authored-by: Thrilok kumar --- contracts/mainnet/connectors/wsteth/main.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/mainnet/connectors/wsteth/main.sol b/contracts/mainnet/connectors/wsteth/main.sol index d908395c..0b0f9a02 100644 --- a/contracts/mainnet/connectors/wsteth/main.sol +++ b/contracts/mainnet/connectors/wsteth/main.sol @@ -51,8 +51,8 @@ abstract contract WSTETHContract is Helpers, Basic { uint256 _amt = getUint(getId, wstethAmt); _amt = _amt == uint(-1) ? wstethContract.balanceOf(address(this)) : _amt; - wstethContract.unwrap(_amt); - setUint(setId, _amt); + uint256 stethAmt_ = wstethContract.unwrap(_amt); + setUint(setId, stethAmt_); _eventName = "LogWithdraw(uint256,uint256,uint256)"; _eventParam = abi.encode(_amt, getId, setId);