RE: CONVERSION ROLLBACK!

avatar

You are viewing a single comment's thread:

I was not aware of the min(price_median) .... that's new to me :)

From the test I have made like a year ago, when this was a new thing, I usually would wait out for the conversions to end and check the final results .... and in the final result the final_price is used that is the median of the median in the 3.5 days :)
Turns out this min(price_median) is just a temporary price to ensure more collateral is put in.

How is min(price_median) calculated? Is it just a single witness at the bottom of the list deciding this number? Is that too much power for a single witness to hold?

Its not up to one witness, since it is still a median price for one hour, collected from the feed from the top witnesses. But then it looks at the median hourly prices from the last 3.5 days (84 data points) and choses the lowest.

The way I was going about HIVE to HBD conversions is doing them only if HBD is above $1.1.

Kudos to you for learning it live and digging in deep :)



0
0
0.000
6 comments
avatar

Turns out this min(price_median) is just a temporary price to ensure more collateral is put in.

This. Obviously, there are consequences. While it cannot turn a winning trade to a losing one, it makes your trades smaller in a volatile environment which greatly reduces the power of parlaying (nesting) the conversions as extra HIVE gets locked up compared to calculations that expect median (so no $2 perpetuum mobile in practice).

0
0
0.000
avatar

Yes it reduces the size faster ... when you keep converting HIVE to HBD and selling the HBD for HIVE

0
0
0.000
avatar

Its not up to one witness, since it is still a median price for one hour, collected from the feed from the top witnesses. But then it looks at the median hourly prices from the last 3.5 days (84 data points) and choses the lowest.

Yeah... I still don't get it.

What is a "top witness"?

Oh wait maybe I get it...
Yeah there are 84 data points (all medians) and it just takes the lowest one.
Simple enough but there are a lot of ways to misinterpret how it was being explained.

Thanks for the help!

0
0
0.000
avatar

I just imagine it like that for easier understanding, dunno how it is actually implemented in the code, and the actual code

0
0
0.000
avatar

Yeah I've been told the hourly thing before by many other people and it just wasn't clicking.
I think I have a better grasp of what's happening here.

I still think it's a little weird that we would consolidate them into hourly aggregates when we could technically create a new data point every 3 seconds. Guessing it has something to do with database efficiency and whatnot.

0
0
0.000
avatar

No witness updates thier price feed every 3 seconds. We are talking about witnesses broadcasting "the current price of Hive is $0.427", not looking at actual trades (neither on internal market nor Binance).

Even if you could get new data every three seconds, you want the minimum value to be a reasonable value not a fluke fat finger trade. You want the price to stay below a certain point for a while (30+ mins under current implementation) to qualify as reasonable enough for usage.

0
0
0.000