Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooked ops #71

Merged
merged 5 commits into from
Mar 25, 2024
Merged

Hooked ops #71

merged 5 commits into from
Mar 25, 2024

Conversation

kasperpawlowski
Copy link
Contributor

@kasperpawlowski kasperpawlowski commented Mar 24, 2024

this PR removes:

  • pause guardian
  • locked ops
  • disabled ops
  • CFG_ONLY_ASSET_CAN_DEPOSIT
  • OP_ACCRUE_INTEREST

this PR adds:

  • hooked ops
  • hook target
  • renames verifyController to validateController
  • IPermit2

the idea is that disabling operations can still be supported by setting the hook target to address(0) and setting the hooked ops appropriately.

pause guardian role can still be supported through auxiliary adjudicator contract with governor role granted.

enforcement of the "only asset can deposit" for synths can also be achieved with hooking the respective ops and installing auxiliary hook target contract as shown in the tests:
https://github.com/euler-xyz/euler-vault-kit/blob/hooked-ops/test/unit/evault/EVaultTestBase.t.sol#L130-L155

@dglowinski dglowinski merged commit 28afd84 into master Mar 25, 2024
1 check failed
@dglowinski dglowinski deleted the hooked-ops branch March 25, 2024 12:19
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.

2 participants