cryptonative-ch / aqua-interface

🌐 Aqua dApp
https://aquadev.co
GNU Affero General Public License v3.0
11 stars 6 forks source link

Feature/fair sale bids and chart #446

Closed rossneilson closed 3 years ago

rossneilson commented 3 years ago

Description

Added new redux reducer for bids to seperate them from commitments. The objects are different enough and bids need more processing where it makes more sense just to seperate them instead of having nested ifs to split logic when it is already split from the sale view. Using apollo generated interfaces for bids now. Integrated changes to work with chart, the actual d3 chart implementation did not need many changes. I implemented a simple clearing price calculation based on a simple dutch auction mechanism since the version in price.ts (also only realised this existed recently) is very complex and I dont think we have all the necessary data in the UI to use it. I was getting overwhelmed with changes needed so I will split the remaining work into more issues, however currently this implementation displays some mock bids and allows for bids to be loaded once the sc / graph issue is fixed.

Motivation and Context

Closes #428

How Has This Been Tested?

Screenshots (if appropriate):

スクリーンショット 2021-08-31 11 57 16

Types of changes

Checklist: