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

scaledPriceAuthority core eval #10021

Closed
wants to merge 6 commits into from
Closed

Conversation

Chris-Hibbert
Copy link
Contributor

closes: #9998
refs: #9928

Description

This is the step in upgrading priceFeeds that adds new scaledPriceAuthorities. It is expected to come after creating replacement priceFeeds (#9998), and before upgrading Vaults and Auctions. (#10020)

Security Considerations

N/A

Scaling Considerations

N/A

Documentation Considerations

N/A

Testing Considerations

will be covered in #10020

Upgrade Considerations

not upgradeable, so replace the contracts and re-register in agoricNames.

@Chris-Hibbert Chris-Hibbert self-assigned this Sep 3, 2024
@Chris-Hibbert Chris-Hibbert marked this pull request as draft September 3, 2024 21:18
@Chris-Hibbert
Copy link
Contributor Author

This has been incorporated into #10074

mergify bot added a commit that referenced this pull request Oct 9, 2024
closes: #9584
closes: #9928
refs: #9827 
refs: #9748 
refs: #9382
closes: #10031

## Description

We added upgrading the scaledPriceAuthority to the steps in upgrading vaults, auctions, and priceFeeds, and didn't notice that it broke things. The problem turned out to be that the "priceAuthority" object registered with the priceFeedRegistry was an ephemeral object that was not upgraded. This fixes that by re-registering the new priceAuthority.

Then, to simplify the process of cleaning up the uncollected cycles reported in #9483, we switched to replacing the scaledPriceAuthorities rather than upgrading them.

We also realized that we would need different coreEvals in different environments, since the Oracle addresses and particular assets vary for each (test and mainNet) chain environment.

#9748 addressed some of the issues in the original coreEval. #9999 showed what was needed for upgrading priceFeeds, which was completed by #9827.  #10021 added some details on replacing scaledPriceAuthorities.

### Security Considerations

N/A

### Scaling Considerations

Addresses one of our biggest scaling issues.

### Documentation Considerations

N/A

### Testing Considerations

Thorough testing in a3p, and our testnets.  #9886 discusses some testing to ensure Oracles will work with the upgrade.

### Upgrade Considerations

See above
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.

start replacement scaled price authorities
1 participant