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: show all sale prices #52

Merged
merged 4 commits into from
May 12, 2022
Merged

Conversation

nicosantangelo
Copy link
Contributor

@nicosantangelo nicosantangelo commented May 10, 2022


const isOnSale = fragment.searchIsStoreMinter && +fragment.available > 0
const isValidSalePrice =
!minSaleValue || new BN(fragment.price).gte(new BN(minSaleValue))
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that the isOnSale value before had this logic but with .lte instead of .gte. This one is the correct one right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

think so, yes! we arrived at:

if (price < min) wei then throw

so this should be the opposite

@nicosantangelo nicosantangelo merged commit 3e50068 into master May 12, 2022
@nicosantangelo nicosantangelo deleted the feat/new-min-sale-price branch May 12, 2022 19:00
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.

2 participants