Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Conversation

@roiLeo
Copy link
Contributor

@roiLeo roiLeo commented Oct 6, 2021

PR type

  • Bugfix
  • Feature
  • Refactoring

Before submitting this PR, please make sure:

  • Code builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've didn't break any original functionality
  • I've posted screenshot of demonstrated change in this PR

Optional

  • I've tested it on mobile and everything works

What's new? (may be part of changelog)

Screenshot

Screenshot 2021-10-06 at 10-37-14 KodaDot Kusama NFT Market explorer

@roiLeo roiLeo marked this pull request as draft October 6, 2021 11:20
Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

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

LGTM

@roiLeo
Copy link
Contributor Author

roiLeo commented Oct 6, 2021

@vikiival could you take a look on /Search/query.ts ? I've added backend sorting

@roiLeo roiLeo marked this pull request as ready for review October 6, 2021 13:28
@yangwao
Copy link
Member

yangwao commented Oct 6, 2021

It's all good to go out 👀

We still won't see negative numbers on % volume

Why is this happening?

@roiLeo
Copy link
Contributor Author

roiLeo commented Oct 6, 2021

It's all good to go out 👀

We still won't see negative numbers on % volume

Why is this happening?

Current volume:
TotalVolume = add up all nfts price from collection with "BUY" event

Current percentage:
Volume changes (%) = ((TotalVolume - TotalVolumeFromYesterday) / TotalVolume) * 100

This looks like you can't have negative numbers as current volume will always be bigger than 24h/7d/30d volume, or I could be wrong.

@yangwao
Copy link
Member

yangwao commented Oct 7, 2021

It's all good to go out 👀

We still won't see negative numbers on % volume

Why is this happening?

Current volume: TotalVolume = add up all nfts price from collection with "BUY" event

Current percentage: Volume changes (%) = ((TotalVolume - TotalVolumeFromYesterday) / TotalVolume) * 100

This looks like you can't have negative numbers as current volume will always be bigger than 24h/7d/30d volume, or I could be wrong.

I see, legit

@yangwao yangwao requested a review from vikiival October 7, 2021 09:12
@roiLeo
Copy link
Contributor Author

roiLeo commented Oct 8, 2021

as (x - y) / y * 100
Wich data look better?

Volume

x = totalVolume0
y = totalVolume7dayAgo
Screenshot 2021-10-08 at 17-46-40 KodaDot Kusama NFT Market explorer

Range

x = totalVolume>7dayAgo
y = totalVolume>14dayAgo && <7dayAgo
Screenshot 2021-10-08 at 17-53-20 KodaDot Kusama NFT Market explorer

Data is different in the 2 case.

@yangwao
Copy link
Member

yangwao commented Oct 8, 2021 via email

@roiLeo roiLeo marked this pull request as draft October 11, 2021 06:22
@roiLeo roiLeo mentioned this pull request Oct 11, 2021
9 tasks
@roiLeo roiLeo marked this pull request as ready for review October 11, 2021 13:18
@yangwao
Copy link
Member

yangwao commented Oct 11, 2021

Can we merge this 😄

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.

3 participants