Skip to content

Expand yield metrics reported, and make them easier to compare#488

Merged
KatunaNorbert merged 15 commits intomainfrom
issue487-simple-yield-avg-last
Mar 28, 2023
Merged

Expand yield metrics reported, and make them easier to compare#488
KatunaNorbert merged 15 commits intomainfrom
issue487-simple-yield-avg-last

Conversation

@idiom-bytes
Copy link
Member

@idiom-bytes idiom-bytes commented Mar 3, 2023

Fixes #487

DoD:

  • Keep APY front and center.
  • Review metrics being reported
  • Added roundAPR, roundYield, lastRoundAPR, lastRoundYield.
  • Merge from main PR updates for RouindYield and prepare this PR

Additionally:

  • Added In other PRs: roundVolume, lastRoundVolume
  • ImproveD metrics reported so they are easier to compare...This is a first pass, there is more work to be done. The APY/DCV/Allocation tabs should help improve this further.

@vercel
Copy link

vercel bot commented Mar 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
df-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 28, 2023 at 3:28PM (UTC)

@KatunaNorbert
Copy link
Member

The metrics are looking good, we should decide which one to show. Looks like roundYield is the most realistic metric which we can present and can be most helpful for the user.

@EnzoVezzaro
Copy link
Contributor

EnzoVezzaro commented Mar 3, 2023

when you toggle the columns, some values go from 0.00% to 0 and others from 0.00% to undefined. They should stay at 0.00%

datafarming.-.Ocean.Farm.-.3.March.2023.mp4

@EnzoVezzaro
Copy link
Contributor

EnzoVezzaro commented Mar 3, 2023

These metrics are fine, but we keep adding information to the user. We need to filter out what's most relevant for the user.

While doing some discovery I came across some products that are doing a great good displaying this information, for what I can see most platform play around with APR and APY this way:

Harvest:
Screenshot 2023-03-03 at 08 09 17
Screenshot 2023-03-03 at 08 09 39

Instadapp Lite:
Screenshot 2023-03-03 at 08 06 03
Screenshot 2023-03-03 at 08 06 29

Curve:
Screenshot 2023-03-03 at 08 14 12
Screenshot 2023-03-03 at 08 14 36

Pancake Swap:
Screenshot 2023-03-03 at 07 59 03
Screenshot 2023-03-03 at 08 04 32

Yield Finance:
Screenshot 2023-03-03 at 08 01 21

DeFi Lama:
Screenshot 2023-03-03 at 09 21 17

This might not be exactly our use case, but it can help us identifying what're the most important metrics to show. for what i see, simplicity is key for the user.

@jamiehewitt15
Copy link
Contributor

jamiehewitt15 commented Mar 6, 2023

I thought we had agreed in the meeting to get rid of the annualised numbers (APY and APR)? By taking the yield for the round and multiplying it by 52, we are not creating helpful information for the user - we are just extrapolating to present unreliable figures to them.

@idiom-bytes
Copy link
Member Author

idiom-bytes commented Mar 7, 2023

As discussed, we still want to lead with APY (it's the industry standard way of communicating the variable annual compound rate).

  • Room to improve visualization around variable rate. I.E. tooltips, calling it vAPY (it's out there)
  • We need to update docs.
  • We need to improve UX (i.e. add accordion to provide more details)
  • Room to improve via new calcs in df-sql: avg_apy_last_3_weeks
  • Will sort out bugs wrt bad nums.
    - Will move to draft until it's further along.

Please see discussion on slack
https://oceanprotocol.slack.com/archives/C03L5JZRJ94/p1677986331788659?thread_ts=1677819414.500449&cid=C03L5JZRJ94

@jamiehewitt15
Copy link
Contributor

  • Room to improve visualization around variable rate. I.E. tooltips, calling it vAPY (it's out there)

Yeah, I'd still prefer for us to avoid APY altogether, but if we must show it then it makes sense to acknowledge the variability.

  • Room to improve via new calcs in df-sql: avg_apy_last_3_weeks

I find this confusing. APY is an annualised rate, so why would a user want to see it averaged over a three-week period?

@KatunaNorbert
Copy link
Member

KatunaNorbert commented Mar 9, 2023

I propose the following steps:

@EnzoVezzaro
Copy link
Contributor

Yes, this is the intention. we are working on a quick mockup for it on miro.

@KatunaNorbert
Copy link
Member

Added extendable row containing current and last round APYs

@jamiehewitt15
Copy link
Contributor

The arrow on the left is so small I can imagine a lot of people wouldn't notice it. I suggest making it bigger, we could also make it so that clicking anywhere in the white space also expands the row.

image

@EnzoVezzaro
Copy link
Contributor

Sorry for letting you know just know 😅 I just realised that your design might conflict a bit with what we're been preparing in miro. I'll post here the high level mockup we have on the board.

Screenshot 2023-03-24 at 10 07 53

@KatunaNorbert
Copy link
Member

@EnzoVezzaro Thanks for letting me know, although I don't think we want to get all those changes in this PR. Let's just add the APY/APR/Yield and keep updating the extended row in other PRs.

@EnzoVezzaro
Copy link
Contributor

EnzoVezzaro commented Mar 28, 2023

I don't see the expanded view anymore 😶

Screenshot 2023-03-28 at 10 51 38

@KatunaNorbert
Copy link
Member

That was removed on @idiom-bytes request

@EnzoVezzaro
Copy link
Contributor

That was removed on @idiom-bytes request

I see 👍🏽

EnzoVezzaro
EnzoVezzaro previously approved these changes Mar 28, 2023
Copy link
Contributor

@EnzoVezzaro EnzoVezzaro left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

@idiom-bytes idiom-bytes self-assigned this Mar 28, 2023
Copy link
Contributor

@jamiehewitt15 jamiehewitt15 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@KatunaNorbert KatunaNorbert merged commit 64642bf into main Mar 28, 2023
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.

BE - Write df-sql queries to serve yield/return per round for the user (farms page)

4 participants