We use the mint fee implementation for ERC4626 recommended by OpenZeppelin in their docs but our logic in getMintFeePortion() was incorrect, so this PR:
changes it to use the correct logic
creates a new function with the old logic (getAdditionalMintFeeToReceive()), which is required for previewMint().
Note this also optimizes a few references in WETHVault
We use the mint fee implementation for ERC4626 recommended by OpenZeppelin in their docs but our logic in
getMintFeePortion()
was incorrect, so this PR:getAdditionalMintFeeToReceive()
), which is required forpreviewMint()
.Note this also optimizes a few references in WETHVault