Skip to content

Conversation

mesozoic-technology
Copy link

Description

Some implementations of 4626 require actions before a deposit. There is no beforeDeposit() hook, so I took the liberty of adding it. Likewise, there is no afterWithdrawal() hook, which may be similarly useful at times. I added that as well.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge snapshot?
  • Ran npm run lint?
  • Ran forge test?

I ran forge test, but my new version of foundry is complaining that testFail does not exist any more. Simply adding virtual hook functions shouldn't fail any tests that came before, and I don't want to modify the whole test suite, I'm not sure what is going on with that.

@mesozoic-technology mesozoic-technology changed the title added beforeDeposit and afterWithdrawal hooks added beforeDeposit and afterWithdrawal hooks to ERC4626 Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant