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

Hung add test ProcessBandOraclePrices #24

Conversation

hungdinh82
Copy link
Contributor

No description provided.

if tt.expectedRate != 0 {
priceState := app.OracleKeeper.GetBandPriceState(ctx, "ATOM")
require.NotNil(t, priceState)
require.Equal(t, tt.expectedRate, priceState.Rate.Int64())
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should get the PriceState.Price and compare instead of rate here

Copy link
Collaborator

Choose a reason for hiding this comment

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

We also need to check whether BandCallDataRecord was deleted after this line k.DeleteBandCallDataRecord(ctx, uint64(clientID))

Copy link
Collaborator

@ThanhNhann ThanhNhann left a comment

Choose a reason for hiding this comment

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

LGTM!

@ThanhNhann ThanhNhann merged commit 1b5f180 into onomyprotocol:nhan/oracle_module Oct 4, 2024
1 of 4 checks passed
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.

2 participants