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

FUSDC: add oracle operators to highPrioritySenders #11068

Open
0xpatrickdev opened this issue Feb 28, 2025 · 0 comments
Open

FUSDC: add oracle operators to highPrioritySenders #11068

0xpatrickdev opened this issue Feb 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@0xpatrickdev
Copy link
Member

0xpatrickdev commented Feb 28, 2025

What is the Problem Being Solved?

highPrioritySendersManager exists for things like Inter Price Oracles. It seems beneficial to grant the FUSDC oracle operators the same priviledge.

Description of the Design

A la Inter Protocol:

const handlehighPrioritySendersList = async (
{ consume: { highPrioritySendersManager: highPrioritySendersManagerP } },
{ options: { highPrioritySendersConfig } },
) => {
const HIGH_PRIORITY_SENDERS_NAMESPACE = 'economicCommittee';
const highPrioritySendersManager = await highPrioritySendersManagerP;
if (!highPrioritySendersManager) {
throw assert.error(`highPrioritySendersManager is not defined`);
}
const { addressesToAdd, addressesToRemove } = highPrioritySendersConfig;
await Promise.all(
addressesToAdd.map(addr =>
E(highPrioritySendersManager).add(
HIGH_PRIORITY_SENDERS_NAMESPACE,
traced('High Priority Senders: adding', addr),
),
),
);
await Promise.all(
addressesToRemove.map(addr =>
E(highPrioritySendersManager).remove(
HIGH_PRIORITY_SENDERS_NAMESPACE,
traced('High Priority Senders: removing', addr),
),
),
);
};

Security Considerations

highPrioritySendersManager carries authority

Scaling Considerations

Test Plan

TBD - is verifying in vstorage sufficient?

Upgrade Considerations

TBD - depending when this is planned, and if it will be in owns CoreEval Proposal or a chain software upgrade.

@0xpatrickdev 0xpatrickdev added the enhancement New feature or request label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant