-
Notifications
You must be signed in to change notification settings - Fork 8
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
BAIP 2:Reform of loopholes in feed price mechanism #4
Comments
@xeroc We need a compromise between feed_price and market_price and smartcoin-Market Metrics should play a role here. bitAsset-Market Metrics
@wenhuadream
|
We have considered the final solution from many of the programs. As I said, it is not perfect, but it is very simple, effective, and effective. I said "we" because we are a team, a professional team. I personally recommend that everyone pay attention: it is not perfect, simple, effective, and implement these words. The feed price mechanism is a huge project and a particularly important mechanism that does not allow us to make mistakes. I hope that everyone will think more about the failure of BSIP42. Then you will understand why we insist on this simple solution. |
|
What discussions were had? This could instead be a "see also" link. Could you create a pull request so that the individual lines can have their own threads? Responding to the issue with nested quotes is tiresome. |
I did some benchmarks on different MA for price feed algorithm:
Longer EMA are faster than MA, but more robust against shorting attacks. The advantage gets lost in DEMA. |
@froooze , can you please show me an example of how EMA would work? |
I have to say that this program is only to seek to solve the short-time malicious short |
Thanks for reminding |
We have discussed thousands of discussions from the forum, and we have chosen ma in the summary of several months of debates, and we are striving for simplicity and effectiveness. In fact, the feed price is a huge project, and there is no mistake. The cost of the error is huge (refer to BISP42), so we believe that it should be observed and summarized on a simple basis. |
IMHO, I have to complain about the progress of BAIP, I have been waiting for the establishment and implementation of BAIP standards, and now I finally saw the dawn. |
Discussion does not solve the problem, but the right development and direction does. Your solution is simple, but not effective.
History showed providing good price feeds is not an easy task and mistakes are very expansive. Criteria for good price feeds are:
BSIP42 made clear, there is no simple solution for the price feed problem. Using MA based feed price causes the same problem of not selling collateral in a downtrend, which increases bad debt. The good news is, we need only one working solution for our problem, which was recently found. |
Thank you very much for your participation in the discussion. You are also thinking hard. And give a very meaningful and level of advice. EMA is also a solution we have considered. But we think MA is better than EMA. |
Can you provide evidence to back up your hypothesis that MA works better than EMA?
Disagree, the motivation, rationale and discussion do not yet fully justify the proposed changes. |
Yes, we need a solution for short term price manipulation.
Yes, but EMA does the same thing here. EMA price is in a downtrend higher than market price, but improves margin call performance.
Yes, the idea to use different price feeds for different situations, is a good approach. The combination of different EMAs showed the best results.
The time frame of the EMA has a higher impact on the course of the curve, than the exponential part in the calculation. red -> fast EMA On the one side the fast EMA allows better collateral selling than the MA, on the other side the fast EMA is at the end not lower than the MA. The slow EMA (also part of the price feed) reduces shorting attack compared to the 2 day MA. Therefore: Dynamic price feeds based on EMAs and smartcoin metrics |
I hope this BAIP can enter the voting phase as soon as possible. This is the simplest and easiest program to implement. |
Assigned BAIP2 please creat a PR |
Simple is not a criteria, criteria are robustness against manipulation and margin call performance. Complexity and integration is not a problem, because price feeds are not part of the core code. |
MA certainly can't solve all the problems, but please pay attention to the key points that BAIP wants to solve: short-term malicious shorting. To prevent short-term malicious shorts, there is no doubt that it is effective. Benefits outweigh! |
I have already done this, thank the committee |
A slow feed price feedback is right for the quick downtrend, people still can chose to sell the debt freely as the price which they wish. I have checked the #7, it still has many undefined parameters need to define, i think some of them hard to define or need much time to discuss. #7 may be another good solution.
The most lack is time for us, we can make #4 as the first edition to solve the problem now we face, then we will have much time and energy to make a better edition, or we will make a Bounty for the feed price script in the future, we should have different script to increase fault tolerance. What we need is a perfect and robust mechanism, feed price is only one problem of these. |
Most collateral positions are only sold, until they are getting margin called at market price.
Why? The time frame has a higher impact than the used MA.
It has the same flaw as BSIP42, because margin calls do not work in a downtrend.
All parameters, equations, conditions and transition routs are defined, but I don't see any benefits to open source the code now. The basic concept and vision should be clear and understandable.
My solution is also quick, because development is completed.
Yes, the other key points are p2p borrowing for margin positions (MPLP) and extra liquidity (MPL) |
This is the choice of people. Two-day moving average price just use the of price of the MA, not is MA 2. |
You are free to ask any questions about my BAIP and make things more clear. |
No network consensus has been achieved, there hasn't been full review of the pull request nor this issues discussion complete, so this isn't the choice of all people yet. |
You should understand what is the "choice", and you did not get what i say. |
I would also support a simple solution for the first improvement, before my advanced solution can be integrated. But without accepting critics and changing important things, this gets unnecessary harder, than it should be. |
support the choice of people. |
Abstract
This BAIP defines reforms to the current feed price mechanism vulnerability. The specific program is: The
feed price
is the highest between thecurrent price
and thetwo-day moving average price
.Motivation
After the failure of BSIP42, the current feed price mechanism has major loopholes and serious negatives, many cex exchanges use our vulnerability to maliciously short,which seriously damaged the ecological balance, which caused us to suffer many unnecessary losses and hindered the development of the entire ecology.
When the vulnerability has been expanded to be intolerable, in an emergency, the passage and execution of BSIP76 has temporarily blocked the expansion of the vulnerability. However, the current feed price mechanism is still in urgent need of reform.
Rational
"The feed price is the highest between the
current price
and thetwo-day moving average price
".This BAIP does not conflict with the previous consensus on the feed price of all the communities. The feed provider continue to collect the feed price according to the original community consensus, and the community consensus on the protection of the black swan(BSIP58) and the minimum feed price is continued(BSIP76).
This BAIP only requires the introduction of the abstract described in the feed price script, which is
"The feed price is the highest between the
current price
and thetwo-day moving average price
".Specifications
Implementing measures
Noun explanation
Current price
: The real-time feed price of the current feed price mechanism before the reform.Two-day moving average price
:two-day moving average price
=(current price (1)
+current price (2)
+current price ( 3)
...+current price (n)
)/n.sampling frequency
, which is 48 times, that is, n = 48*m; m is positive: m = 1, 2, 3....current price (k)
is the current price at the time of sampling. Thecurrent price (1)
is thecurrent price at this moment. The
current price (n)
is the current price at the time of 48 hours ago.Sampling interval
(in hours):sampling interval
= 48 / n = 48 / (48 * m). That is: m = 1,two- day moving average price
every hour to sample once,;m = 2,two-day moving average price
half an hour to sample once, And so on.supplementary explanation
To decide whether to reform of loopholes in feed price mechanism, 2 poll worker proposals will be created for voting:
If the voting confirm the change, committee will announce the change at least 3 days before the change is implemented by feed provider.
Summary for Shareholders
This program is simple and effective, and can prevent malicious short-selling or increase malicious short-selling costs to a certain extent.
Discussion
bitshares/bsips#244
See Also
https://bitsharestalk.org/index.php?topic=29698.0
https://bitsharestalk.org/index.php?topic=29699.0
https://bitsharestalk.org/index.php?topic=29635.0
https://bitsharestalk.org/index.php?topic=28418.0
https://bitsharestalk.org/index.php?topic=29684.0
https://bitsharestalk.org/index.php?topic=29687.0
Copyright
This document is placed in the public domain.
The text was updated successfully, but these errors were encountered: