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

feat: update oracle exchange rate query #387

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

akaladarshi
Copy link
Contributor

@akaladarshi akaladarshi commented Mar 12, 2023

1. Overview

  • Update oracle exchange_rate response to return the exchange rate of an asset in string.

  • Separate exchange_rate and all_exchange_rates queries.

2. Implementation details

Created two separate oracle queries exchange_rate, and all_exchange_rates.
exchange_rate: Takes the asset symbol as a request and returns its exchange in string.
all_exchange_rates: Doesn't take any request and returns exchange rates of all the assets stored on chain in sdk.DecCoins

3. How to test/use

cd x/oracle/ && go test -v ./...

@akaladarshi akaladarshi marked this pull request as ready for review March 13, 2023 06:03
@akaladarshi akaladarshi requested a review from xlab March 13, 2023 06:03
@akaladarshi akaladarshi changed the base branch from tikaryan/fix-vote-calculation to tikaryan/development March 13, 2023 06:12
@akaladarshi akaladarshi force-pushed the tikaryan/update-oracle-queries branch from 5346b89 to 3e16c91 Compare March 13, 2023 06:47
@akaladarshi akaladarshi merged commit fdc4948 into tikaryan/development Mar 14, 2023
akaladarshi added a commit that referenced this pull request Mar 19, 2023
1. Overview

Update oracle exchange_rate response to return the exchange rate of an asset in string.

Separate exchange_rate and all_exchange_rates queries.

2. Implementation details

Created two separate oracle queries exchange_rate, and all_exchange_rates.
exchange_rate: Takes the asset symbol as a request and returns its exchange in string.
all_exchange_rates: Doesn't take any request and returns exchange rates of all the assets stored on chain in sdk.DecCoins
ajeet97 pushed a commit that referenced this pull request Apr 14, 2023
1. Overview

Update oracle exchange_rate response to return the exchange rate of an asset in string.

Separate exchange_rate and all_exchange_rates queries.

2. Implementation details

Created two separate oracle queries exchange_rate, and all_exchange_rates.
exchange_rate: Takes the asset symbol as a request and returns its exchange in string.
all_exchange_rates: Doesn't take any request and returns exchange rates of all the assets stored on chain in sdk.DecCoins
xlab pushed a commit that referenced this pull request Apr 14, 2023
1. Overview

Update oracle exchange_rate response to return the exchange rate of an asset in string.

Separate exchange_rate and all_exchange_rates queries.

2. Implementation details

Created two separate oracle queries exchange_rate, and all_exchange_rates.
exchange_rate: Takes the asset symbol as a request and returns its exchange in string.
all_exchange_rates: Doesn't take any request and returns exchange rates of all the assets stored on chain in sdk.DecCoins
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.

None yet

2 participants