nodeset-org / constellation

GNU General Public License v3.0
5 stars 0 forks source link

Fix logic for `previewDeposit()` #349

Closed VVander closed 4 weeks ago

VVander commented 1 month ago

We use the mint fee implementation for ERC4626 recommended by OpenZeppelin in their docs but our logic in getMintFeePortion() was incorrect, so this PR:

Note this also optimizes a few references in WETHVault