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

Reward tier model: add slots column #141

Open
vikinatora opened this issue Nov 7, 2021 · 0 comments
Open

Reward tier model: add slots column #141

vikinatora opened this issue Nov 7, 2021 · 0 comments

Comments

@vikinatora
Copy link
Contributor

Description

As per the new requirements we should remove minimumBid column and create a new slots column.
slots will be a jsonb array column holding objects with index and minimumBid properties. This object can be extended with more properties in the future.

Example column config:

[{
  index: 1,
  minimumBid: 0.5
}, {
  index: 2,
  minimumBid: 0.3
}, {
  index: 2,
  minimumBid: 0.2
}]

Purpose

The main purpose of these changes will be when a user is placing a bid in an active auction. In the bid popup we need to calculate which exact slot the bidder will potentially win and validate the user's bid amount. The bid amount should be greater or equal to the respective minimum bid of the slot.

Other changes

We will need to rework the edit and add reward tiers endpoints both on the FE and BE.

@alexandrumatei36 @taskudis @boris-bonin Let me know if I'm missing something

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

No branches or pull requests

2 participants