origin-dollar icon indicating copy to clipboard operation
origin-dollar copied to clipboard

Morpho Aave strategy gas savings

Open naddison36 opened this issue 2 years ago • 0 comments

  • [ ] 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 and withdrawAll 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

naddison36 avatar Jun 07 '23 00:06 naddison36