Update contracts/mainnet/connectors/wsteth/main.sol

Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
Shriya Tyagi 2022-09-04 21:21:43 +05:30 committed by GitHub
parent a7bc617f13
commit ffb65ada60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);