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

[Quais] - Create method for current Qi:Quai conversion rate #22

Closed
mibuono opened this issue Feb 8, 2024 · 1 comment · Fixed by #48
Closed

[Quais] - Create method for current Qi:Quai conversion rate #22

mibuono opened this issue Feb 8, 2024 · 1 comment · Fixed by #48

Comments

@mibuono
Copy link

mibuono commented Feb 8, 2024

Requirements:

Based on the method here: dominant-strategies/go-quai#1394 - integrate with that method so Blockscout can consume that information via the SDK.

@rileystephens28
Copy link
Member

rileystephens28 commented Mar 6, 2024

AbstractProvider.getLatestQuaiQiConversionRate(): Promise<bigint>

This new abstract provider method returns the qi:quai conversion rate at the latest block height (number). This function will call AbstractProvider.getQuaiQiConversionRate defined in #22 with blockNumber param equal to the latest block number.

@robertlincecum robertlincecum linked a pull request Mar 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants