pyth-network / pyth-client

Client API for on-chain pyth programs
https://pyth.network
Apache License 2.0
169 stars 102 forks source link

[RFC] Make adding and deleting pubs idempotent #373

Open guibescos opened 1 year ago

guibescos commented 1 year ago

We have a way of proposing to add a publisher to all symbols that will make a proposal where the publisher gets added to all symbols where it is not already permissioned and the symbol has less than 32 pubs.

However, this doesn't always work. For example, if one raises a proposal to add publisher A to all symbols and then a proposal to add publisher B to all symbols; once they are both approved only one of the two will be executed without errors.

An alternative to this PR would be a "add many publishers to all symbols" button in the UI.