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

Use Staking API for fiat rewards calculation #1877

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

hectorgomezv
Copy link
Member

Summary

This PR partially reverts #1864 as the ETH price is directly provided by the Staking API (Kiln), so there's no need to use BalancesRepository and expose a getNativeCoinPrice function to get this data.

Changes

  • Reverts the ETH price retrieval via BalancesRepository.
  • Gets the ETH price on the NetworkStats object provided by the Kiln API.

@hectorgomezv hectorgomezv self-assigned this Aug 29, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner August 29, 2024 16:04
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10618625988

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 46.707%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/routes/transactions/mappers/common/native-staking.mapper.ts 0 1 0.0%
Totals Coverage Status
Change from base Build 10615017663: 0.01%
Covered Lines: 4767
Relevant Lines: 8250

💛 - Coveralls

@hectorgomezv hectorgomezv merged commit 5b02a33 into main Aug 30, 2024
18 checks passed
@hectorgomezv hectorgomezv deleted the get-eth-price-from-kiln branch August 30, 2024 09:28
DenSmolonski pushed a commit to Zilliqa/safe-client-gateway that referenced this pull request Oct 24, 2024
- Reverts the ETH price retrieval via `BalancesRepository`.
- Gets the ETH price on the `NetworkStats` object provided by the Kiln API.
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