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

This commit is contained in:
Thrilok kumar 2022-09-04 21:27:34 +05:30 committed by GitHub
parent 8832e70469
commit 04e5e5bd01
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); uint256 _amt = getUint(getId, wstethAmt);
_amt = _amt == uint(-1) ? wstethContract.balanceOf(address(this)) : _amt; _amt = _amt == uint(-1) ? wstethContract.balanceOf(address(this)) : _amt;
uint256 stethAmt_ = wstethContract.unwrap(_amt); uint256 _stethAmt = wstethContract.unwrap(_amt);
setUint(setId, stethAmt_); setUint(setId, _stethAmt);
_eventName = "LogWithdraw(uint256,uint256,uint256,uint256)"; _eventName = "LogWithdraw(uint256,uint256,uint256,uint256)";
_eventParam = abi.encode(_amt, stethAmt_, getId, setId); _eventParam = abi.encode(_amt, stethAmt_, getId, setId);