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(earn): Show daily yield rate on the pool info screen if available #6159

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

jh2oman
Copy link
Contributor

@jh2oman jh2oman commented Oct 16, 2024

Description

https://www.figma.com/design/E1rC3MG74qEg5V4tvbeUnU/Stablecoin-Enablement?node-id=7514-85993&node-type=instance&m=dev
https://linear.app/valora/issue/ACT-1406/daily-rate

  • Daily yield rate in pool info screen when available
  • small style fix to learn more link

Daily Yield Rate

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-16.at.12.44.26.mp4

Link Style

https://www.figma.com/design/E1rC3MG74qEg5V4tvbeUnU/Stablecoin-Enablement?node-id=7514-85993&node-type=instance&m=dev

Before After

Test plan

Unit tests and manually verified

Related issues

https://linear.app/valora/issue/ACT-1406/daily-rate

@@ -573,6 +601,22 @@ export default function EarnPoolInfoScreen({ route, navigation }: Props) {
tokensInfo={tokensInfo}
earnPosition={pool}
/>
{!!dataProps.dailyYieldRatePercentage && dataProps.dailyYieldRatePercentage > 0 && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably fine, but should we check its >= 0.00005? so we don't end up showing 0.0000 with the round with toFixed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is nearing 1000 lines.. I was thinking of breaking this up, I am already putting the safety card in a different file

Copy link
Contributor

@finnian0826 finnian0826 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like root state schema needs to be updated but then lgtm!

src/positions/types.ts Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 5 lines in your changes missing coverage. Please review.

Project coverage is 88.76%. Comparing base (3a1a88e) to head (d732368).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/earn/EarnPoolInfoScreen.tsx 70.58% 5 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6159      +/-   ##
==========================================
- Coverage   88.77%   88.76%   -0.02%     
==========================================
  Files         727      727              
  Lines       30786    30803      +17     
  Branches     5631     5636       +5     
==========================================
+ Hits        27331    27342      +11     
- Misses       3258     3264       +6     
  Partials      197      197              
Files with missing lines Coverage Δ
src/analytics/Properties.tsx 100.00% <ø> (ø)
src/earn/EarnPoolInfoScreen.tsx 95.23% <70.58%> (-1.79%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a1a88e...d732368. Read the comment docs.

@jh2oman jh2oman added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit 33f21b1 Oct 16, 2024
15 checks passed
@jh2oman jh2oman deleted the daily-yield-rate branch October 16, 2024 22:50
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.

3 participants