Skip to content

Conversation

@m30m
Copy link
Contributor

@m30m m30m commented Jun 12, 2023

No description provided.

@vercel
Copy link

vercel bot commented Jun 12, 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) Jun 13, 2023 10:54am
xc-admin-frontend ⬜️ Ignored (Inspect) Jun 13, 2023 10:54am

Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

looks great!

to_price_feed(&mut feed3).publish_time += 1;
to_price_feed(&mut feed1).price *= 2;
to_price_feed(&mut feed2).price *= 2;
to_price_feed(&mut feed3).price *= 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: with a name like to_price_feed, this doesn't sound like it should mutate the underlying data. that said, I can't think of a better name for it, so 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tried to conform to this

StdError::from(PythContractError::InvalidAccumulatorMessage)
);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 nice & thorough tests

Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

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

Very nice!

I think it would be good to add a few more tests that i mentioned in an inline comment. Please add them before merging.

m30m added 2 commits June 13, 2023 12:32
The fee for accumulator messages is base fee times the number of messages
but the logic remains the same for the batch method
Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

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

🚢 it

@m30m m30m merged commit 211bf02 into main Jun 13, 2023
@m30m m30m deleted the cosmwasm/accumulator-support branch June 13, 2023 10:59
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