-
Notifications
You must be signed in to change notification settings - Fork 182
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
fix: display runepool name and rune asset #7540
Conversation
...oviders/thorchain-savers/components/ThorchainSaversManager/Overview/ThorchainSaversEmpty.tsx
Outdated
Show resolved
Hide resolved
src/components/EarnDashboard/components/ProviderDetails/OpportunityRow.tsx
Outdated
Show resolved
Hide resolved
src/components/EarnDashboard/components/ProviderDetails/OpportunityRow.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this does fix things according to #7526, I'm not sure about this one and we should probably strive for consistency rather than following what may or may not have been a misunderstanding from ops 🙏🏽
- Asset rows are now inconsistent, i.e what should be the asset name is now the opportunity name (monkey patched as RUNEPool)
- THORChain is still shown as a reward asset vs. RUNE
- Overview shows "RUNEPool - THORChain savers" which is technically wrong - the only reason why RUNEPool is part of THORChain savers opportunity is because of our own code reuse, however, savers !== RUNEPool. Though this one may not be tackled now (and possibly never) - we would need to explicitly decouple savers and RUNEPool and having RUNEPool as part of savers may actually be "sufficiently fine" from a user-perspective (i.e whether RUNEPool is part of savers or not is a UX nitpick and one could argue there's nothing wrong as showing it like so, as if it looks like savers, walks like savers and quacks like savers, it effectively is savers).
@NeOMakinG think we should probably take a second before adding more monkey patches here, and think of a way to follow our DeFi abstraction conventions:
- as @kaladinlight mentioned, we should make consistent use of asset symbol vs. name across the abstraction (which would solve the THORChain vs. RUNE issue)
- thankfully,
StakingEarnOpportunityType
already hasopportunityName
which leveragesopportunity.name
(which itself uses symbols). Not sure why we don't make consistent use of this, but this should realistically be all we need. See fix: display runepool name and rune asset #7540 (comment)
I'm align with your idea @gomesalexandre, can we double check with @shapeshift/product of they are too? I've done it in 0ec463b |
src/components/EarnDashboard/components/ProviderDetails/OpportunityRow.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, confirmed this does what it says on the box:
- RUNEPool
- Other savers
- Other DeFi opportunities
Two suggestions here before we land this:
- use RUNE symbol for consistency vs. RUNEPool, see https://github.com/shapeshift/web/pull/7540/files#r1718488923
- Remove the
Vault
suffix to keep naming aligned with the current develop onename: `${underlyingAsset.symbol} Vault`,
Description
We are displaying
THORChain
instead ofRUNEPool
in the opportunitiesWe are displaying
Need some THORChain?
instead ofNeed some RUNE?
in the overviewI added some patches so if it's runepool, we are displaying the right names, while it might not be the best solution, it's actually the best quickfix I could find
Pull Request Type
Issue (if applicable)
closes #7526
Risk
Very low
Testing
RUNEPool
is displayed instead of THORChainNeed some RUNE?
instead ofNeed some THORChain?
Engineering
n/a
Operations
n/a
Screenshots (if applicable)