Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

No description provided.

@ali-behjati ali-behjati requested review from Reisen and m30m October 24, 2023 15:22
@vercel
Copy link

vercel bot commented Oct 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2023 3:27pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2023 3:27pm

.next()
.ok_or(RestError::UpdateDataNotFound)?;

// Currently Benchmarks API doesn't support returning the previous publish time. So we
Copy link
Contributor

Choose a reason for hiding this comment

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

is this comment also valid here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah i think they don't return it


let publish_time = price_feed.price_feed.get_price_unchecked().publish_time;

// Currently Benchmarks API doesn't support returning the previous publish time. So we
Copy link
Contributor

Choose a reason for hiding this comment

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

if you expect the benchmark service to return 404 if not unique, why do we have this check here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This applies to the cache of Hermes.

Copy link
Contributor

@m30m m30m left a comment

Choose a reason for hiding this comment

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

lgtm, added some minor comments

@ali-behjati ali-behjati merged commit d07579e into main Oct 27, 2023
@ali-behjati ali-behjati deleted the hermes/unique-price branch October 27, 2023 15:01
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.

4 participants