Skip to content

feat: MCMS Treasury helper contract for fees - #786

Open
JohnChangUK wants to merge 4 commits into
mainfrom
feat/mcms-fee-treasury
Open

feat: MCMS Treasury helper contract for fees#786
JohnChangUK wants to merge 4 commits into
mainfrom
feat/mcms-fee-treasury

Conversation

@JohnChangUK

Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +134 to +137
-- | Cancel an unused authorization (e.g. after expiry or policy change).
choice WithdrawAuthorization : ()
controller feeOwner
do pure ()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feeOwner == ccipOwner, right? In this case this would need an MCMSEntrypoint as well, in order to be able to call it via MCMS

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets either update this or add another choice that anyone can call after the authorization has expired. Kind of like a cleanup function callable by anyone to not leave expired authorizations hanging around.

@JohnChangUK JohnChangUK Aug 28, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

  • Added FeeWithdrawalAuthorization now has a signed authorizationId and implements MCMSReceiver, so MCMS can target and cancel a specific authorization through WithdrawAuthorization
  • Added CleanupExpiredAuthorization, which any disclosed submitter can exercise once now >= expiresAt

Comment thread contracts/ccip/fee-treasury/daml.yaml Outdated
sdk-version: 3.4.11
name: ccip-fee-treasury
source: daml
version: 2.0.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets start on 1.0.0, this also implicitly makes it clearer that this is separate from the other CCIP contracts

@JohnChangUK JohnChangUK changed the title MCMS Treasury helper contract for fees feat: MCMS Treasury helper contract for fees Aug 29, 2026
@JohnChangUK
JohnChangUK force-pushed the feat/mcms-fee-treasury branch from a9c9037 to feafba8 Compare August 30, 2026 18:01
@JohnChangUK
JohnChangUK marked this pull request as ready for review August 30, 2026 18:20
@JohnChangUK
JohnChangUK requested a review from a team as a code owner August 30, 2026 18:20
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