Submitted by berndartmueller, also found by WatchPug
Withdrawing ETH collateral via the withdrawCollateral function using type(uint256).max for the _amount parameter reverts the transaction due to _asset being the zero-address and IERC20Detailed(_asset).decimals() not working for native ETH.
GeneralVault.sol#L121-L124
Check _asset and use hard coded decimal value (18) for native ETH.
sforman2000 (Sturdy) confirmed
atozICT20 (Sturdy) commented:
hickuphh3 (judge) commented:
