feat(script): add Arbitrum deploy and strategy-registration scripts#19
Merged
Conversation
DeployArbitrum: deploys all 15 facets, assembles the Diamond + ERC-4626 Vault in one diamondCut, sets base risk policy (idle reserve, curator, optional fees), and wires strategies with stable Arbitrum defaults for Aave V3 and Compound III. Morpho and Pendle are opt-in via env so the script never reverts on a missing market address. Reads the deployer key from PRIVATE_KEY_ARB (falling back to PRIVATE_KEY) tolerating a missing 0x prefix. Two-step ownership handoff via FINAL_OWNER. RegisterStrategies: registers Morpho and/or Pendle on an already-deployed vault (no redeploy), owner-gated, skips anything already registered so it is safe to re-run, and sets no allocation (left to the curator). Both verified end-to-end against a live Arbitrum fork.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DeployArbitrum: deploys all 15 facets, assembles the Diamond + ERC-4626 Vault in one diamondCut, sets base risk policy (idle reserve, curator, optional fees), and wires strategies with stable Arbitrum defaults for Aave V3 and Compound III. Morpho and Pendle are opt-in via env so the script never reverts on a missing market address. Reads the deployer key from PRIVATE_KEY_ARB (falling back to PRIVATE_KEY) tolerating a missing 0x prefix. Two-step ownership handoff via FINAL_OWNER.
RegisterStrategies: registers Morpho and/or Pendle on an already-deployed vault (no redeploy), owner-gated, skips anything already registered so it is safe to re-run, and sets no allocation (left to the curator).
Both verified end-to-end against a live Arbitrum fork.