-
Notifications
You must be signed in to change notification settings - Fork 13
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
Minor surplus fixes #468
Minor surplus fixes #468
Conversation
I discovered that |
Why was it not addressed in this PR? I understand that it's not the UI problem, but you basically need to fix |
In the core it's set as |
Initially, there is no |
I adjusted the code with this suggestion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so after hours of digging, here's where I think the problem is: the simulation is not enriching newly created surplus auctions. The thing is, the |
Not sure I fully understand without a link to the source code where the problem is. What is the proposed solution? |
There are two scenarios of the simulation:
|
Ok, the problem is reproduced. Do you want to investigate why is it not enriched in this case and propose a solution? |
I checked the two simulation cases for the debt auctions, and they work fine. The difference to the surplus cases seems to be that debt auctions have a fixed bid. Surplus auctions, however, start with no bids, and their calculation of I guess such a behavior is acceptable, since we can't calculate a unit price if we have no units. @valiafetisov, what do you think? |
Since we want to show "unit price" and not the total price for the whole collateral, we can (only in case when there is no bids yet) compute |
That's what I went for in the latest commit |
Agree to the propsal by @valiafetisov. Better to use arbitrary number (in this case |
Closes #450.
Checklist:
#
)Issues to be fixed:
nextMinimumBid
to make sense (eg a uniswap price * gap to reach 1k net profit)SurplusAuctionBidTransactionTable
"state" should display state, not just dateSurplusAuctionBidTransactionTable
end state should count down, but count up (ie Ended 2s ago, 3s ago, etc. First guess: can be caused by invalid determination of theearliestEndDate
)