Skip to content

PROTO-576: Update Portal Auth ix#177

Merged
SC4RECOIN merged 12 commits into
mainfrom
kurtis/update_portal_auth
Feb 25, 2026
Merged

PROTO-576: Update Portal Auth ix#177
SC4RECOIN merged 12 commits into
mainfrom
kurtis/update_portal_auth

Conversation

@SC4RECOIN

Copy link
Copy Markdown
Contributor

No description provided.

@SC4RECOIN SC4RECOIN requested review from Oighty and Copilot November 26, 2025 19:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Portal program's authority configuration by changing the Portal program ID and adding functionality to update the portal authority through the Earn program.

  • Updated the Portal program's public key to a new address
  • Added a new CLI command update-portal-authority to update the portal authority
  • Implemented the update_portal_authority instruction in the Earn program

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
services/cli/main.ts Updated Portal program ID and added CLI command to update portal authority
programs/earn/src/lib.rs Added public function to expose the update_portal_authority instruction
programs/earn/src/instructions/admin/update_portal_authority.rs Implemented the UpdatePortalAuthority instruction handler
programs/earn/src/instructions/admin/mod.rs Removed unused AdminAction struct and added update_portal_authority module export

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread programs/earn/src/lib.rs Outdated
Comment thread services/cli/main.ts
Comment thread programs/earn/src/instructions/admin/update_portal_authority.rs Outdated
SC4RECOIN and others added 3 commits December 1, 2025 13:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Oighty Oighty changed the title Update Portal Auth ix PROTO-576: Update Portal Auth ix Dec 12, 2025

@Oighty Oighty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Pretty straight forward. Left a couple comments.

Comment thread programs/earn/src/instructions/admin/update_portal_authority.rs
Comment thread programs/earn/src/instructions/admin/update_portal_authority.rs
Comment thread programs/earn/src/constants.rs
@SC4RECOIN SC4RECOIN requested a review from Oighty January 21, 2026 13:51

@Oighty Oighty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The update portal authority ix looks good. Just to make sure I understand the changes required:

  1. We need to update the portal_authority in the Earn program bc that allows us to unfreeze the M ATA that is owned by the new authority so that the portal has a "custody" token account to mint + transfer from. This PR solves that.
  2. We also need to update the mint_authority on the M mint account from the current portal authority to the new one. I believe that requires the existing mint authority to sign the txn to do that. It seems like we either need to have an intermediate upgrade that has an ix that allows us to transfer this authority OR we need to add an instruction on the wormhole bridge adapter. I realized that the existing portal program has this functionality.

@SC4RECOIN

Copy link
Copy Markdown
Contributor Author

The update portal authority ix looks good. Just to make sure I understand the changes required:

  1. We need to update the portal_authority in the Earn program bc that allows us to unfreeze the M ATA that is owned by the new authority so that the portal has a "custody" token account to mint + transfer from. This PR solves that.
  2. We also need to update the mint_authority on the M mint account from the current portal authority to the new one. I believe that requires the existing mint authority to sign the txn to do that. It seems like we either need to have an intermediate upgrade that has an ix that allows us to transfer this authority OR we need to add an instruction on the wormhole bridge adapter. I realized that the existing portal program has this functionality.

Correct. The portal authority also needs to be updated on Earn because its going to be signing the propagate index CPI

@Oighty Oighty self-requested a review February 25, 2026 18:15

@Oighty Oighty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@SC4RECOIN SC4RECOIN merged commit 4eca032 into main Feb 25, 2026
4 checks passed
@SC4RECOIN SC4RECOIN deleted the kurtis/update_portal_auth branch February 25, 2026 18:50
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.

3 participants