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

coreEval for replacing price feeds #9999

Closed
wants to merge 3 commits into from
Closed

Conversation

Chris-Hibbert
Copy link
Contributor

closes: #XXXX
refs: #XXXX

Description

A coreEval to replace the priceFeeds. This is a draft, and intended as a starting point for further work.

Security Considerations

Scaling Considerations

The coreEval has minimal consequences for scaling, but it allows the chain to stop using priceFeeds that are accumulating uncollected garbage (#8400). We plan to be able to clean up the old priceFeeds soon.

Documentation Considerations

None.

Testing Considerations

Since this impacts vaults and auctions, we need to test carefully in a3p-integration and on our testnets.

@Chris-Hibbert Chris-Hibbert self-assigned this Aug 29, 2024
@Chris-Hibbert Chris-Hibbert marked this pull request as draft August 29, 2024 21:47
@Chris-Hibbert Chris-Hibbert requested a review from dckc August 29, 2024 21:47
@Chris-Hibbert Chris-Hibbert added contract-upgrade oracle Related to on-chain oracles. next-release about next agoric-sdk or endo release labels Aug 29, 2024
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

to get this off my pending review queue...

@Chris-Hibbert basically handed this off to me; for further work, see

@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
contract-upgrade next-release about next agoric-sdk or endo release oracle Related to on-chain oracles.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants