Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix(olympus): Outstanding Reward Positions #2628

Merged
merged 6 commits into from
May 1, 2023

Conversation

brightiron
Copy link
Contributor

Description

Outstanding rewards don't always return in the same order as getRewardTokens.
This is currently causing AURA and BAL reward numbers to be swapped in the UI.

This changes the getTokenBalancesPerPosition function to map over the reward balances in the same order getRewardTokens returns them and return balances in the same order they're displayed in getTokenDefinitions

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is:
  • (optional) As a contributor, my Twitter handle is:

@wpoulin wpoulin merged commit b472465 into Zapper-fi:main May 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants