feat(v1_5_0): add OnRamp fee sweep changesets with WETH auto-unwrap#1825
Draft
feat(v1_5_0): add OnRamp fee sweep changesets with WETH auto-unwrap#1825
Conversation
Add CLD changesets for sweeping accumulated fees from EVM2EVMOnRamp v1.5.0
contracts to a validated treasury address via MCMS proposals.
Changesets:
- sweep_all_onramps_v150_evm: Mega flow that discovers all v1.5.0 OnRamps
on a chain and sweeps LINK + non-LINK fees in one atomic MCMS batch
- configure_fee_sweep_v150_evm: Sets treasury as sole NOP with 100% weight
- sweep_link_fees_v150_evm: Sweeps accumulated LINK via payNops
- sweep_non_link_fees_v150_evm: Withdraws non-LINK fee tokens to treasury
Key features:
- Atomic WETH unwrap: When fee token is WETH, generates 3-step flow
(withdraw → unwrap → native transfer) in a single MCMS batch
- Treasury allowlist: Change-controlled per-chain approved recipients
reject proposals targeting unauthorized addresses
- Defensive NOP re-assertion: Mega flow always sets NOPs in the batch
to guard against concurrent proposal interference
- Auto-discovery: Resolves OnRamps, WETH9, and RBACTimelock from datastore
Operations: setNops, payNops, withdrawNonLinkFees (OnRamp), withdraw (WETH)
Sequences: configure-fee-sweep, sweep-link-fees, sweep-non-link-fees,
sweep-all-onramps
Co-Authored-By: Claude
Co-Authored-By: cld-extension skill
|
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.
Add CLD changesets for sweeping accumulated fees from EVM2EVMOnRamp v1.5.0
contracts to a validated treasury address via MCMS proposals.
Changesets:
Key features:
Operations: setNops, payNops, withdrawNonLinkFees (OnRamp), withdraw (WETH)
Sequences: configure-fee-sweep, sweep-link-fees, sweep-non-link-fees,
sweep-all-onramps
Co-Authored-By: Claude
Co-Authored-By: cld-extension skill