Skip to content

Morpho Aave strategy gas savings #1605

Open
@naddison36

Description

@naddison36
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    OETHOETH related thingsOUSDOUSD releated thingscontractsWorks related to contracts

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions