Open
Description
- withdraw the underlying, eg WETH, directly to vault or user instead of withdrawing the underlying to the strategy contract and then transferring to the vault or user. This uses Morpho's withdraw function with
_receiver
override. -
depositAll
andwithdrawAll
for loop optimization to avoid SLOADs on each loop - storage variables like
vaultAddress
that can never be changed and read on most functions should be immutable