In ERC20Wrap, the amount parameter is supposed to be the amount of shTokens to receive, not the amount of ERC20 tokens to be wrapped.
The outputAmount is the specifiedAmount, which is passed as amount into ERC20Wrap function.
This outputAmount is then minted as the shToken, which means that the outputAmount must be in the form of shTokens.
It will be useful if amount is more specific and better explained in the comments. Is amount referring to the token amount to deposit or the corresponding shToken to receive?
Ocean.sol#L426-L431
0xA5DF (judge) commented:
