Why is median_history_price no longer the median of feed price? My investigation.

According to my previous understanding, witnesses feed prices for steem blockchain, as shown in the figure below.


(From: https://www.eztk.net/witnesses.php)

And about per hour(STEEM_FEED_INTERVAL_BLOCKS), STEEM read the feeds from the 21 witnesses(current_shuffled_witnesses) in current round, and sort the feeds value, get the median value of it.

Then STEEM push_back the median feed value got in above step to the globe feed history object(get_feed_history/price_history), and then remove the oldest feed by pop_front(). The price_history looks like the picture below.

The price_history length keeps 84, is defined as follows:

`#define STEEM_FEED_HISTORY_WINDOW (127) // 3.5 days`*

Then sort the price_history and return the median value as the current_median_history.

But now I found two questions,

  • The price of STEEM has been under $0.35 for a long time, Why is the current_median_history still higher than $0.4?

  • In the past, we always get the feed price in the form of {'base': '0.308 SBD', 'quote': '1.000 STEEM'}, Why now become such a form of {'base': '117738879.462 SBD', 'quote': '285479893.989 STEEM'}? This problem also leads to the Estimated Account Value of the wallet shows abnormal.

To find the answers to these two questions, I went to learn the code STEEM, then the following code was found:
https://github.com/steemit/steem/blob/master/libraries/chain/database.cpp#L3258

The intent of the code has been written in the comments, so I will not repeat them. This code perfectly explains two of my questions.

In the current market conditions(min_price > fho.current_median_history),median_history_price is no longer calculated by witnesses feeds and history feeds(price_history), it’s determined by the supply of STEEM and SBD.

.

Why hasn’t this happened before? I guess it’s because we modified STEEM_SBD_START_PERCENT and STEEM_SBD_STOP_PERCENT in HF20. Before HF20 there are 2% & 5%, in HF20 they are 9% & 10%.

New question

But the new question comes:
The sbd_print_rate is calculated from the supply of STEEM & SBD and the median_history_price and will be zero when STEEM_SBD_STOP_PERCEN(10%) reached.

But the median_history_price always be checked to force SBD to remain at or below 10% of the combined market cap of STEEM and SBD.

It seems that we will never get a SBD percentage greater than 10%, So sbd_print_rate will never be zero? If my calculation is correct, it’s really an interesting thing😀.

Related links:


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

This page is synchronized from the post: Why is median_history_price no longer the median of feed price? My investigation.

秒杀的套路

昨天家里的白面快要用光了,媳妇和我说有时间去买两袋面,一般情况我都是在京东网购白面,这次当然也不例外了。

我打开京东手机APP,搜索白面,我平时经常买的一款是“金龙鱼中筋面粉多用途麦芯小麦粉5kg”,看了一下是29.6元,似乎和以前买的价格差不多。

不过这时候我注意到面粉商品名称底下的一排小红字27日零时开始秒杀,我一看,现在是26日,那么第二天就是27日了,反正我们也不着急吃面,那么就等第二天下单喽,毕竟现在这行情,能省一点是一点嘛。

到了今天,我打开APP,准备下单,结果一看价格我就吐血了原价31.8,秒杀价29.5,这是赤裸裸的套路啊。

把原本29.6元的售价调整到31.8,然后再已29.5元的价格秒杀,这帐算的没毛病,什么?你说没优惠,这明明是优惠了好不好,就不算调整后的31.8,也比之前的29.6元便宜1毛钱呢!!!

我承认我贪图便宜被套路了,等了整整一天,只不过省了两毛钱(我买两袋),要说损失吧,也没啥损失,毕竟还省两毛,但是为啥就极度不爽呢?所谓的明码实价,看来再也回不去了。

另外,我澄清一下,我不是京东托啊,也不是金龙鱼的面托


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

This page is synchronized from the post: 秒杀的套路

消费降级,烤肉变刀削面

朋友大半夜喊我出去吃饭,他忙一整天只吃了一顿饭,而我吃了三顿饭到晚上还是饿,于是一拍即合,出去找吃的。可是这个时间一般的饭店都已经关门了,他和我说很远的地方有一处24小时营业的刀削面,于是让他开车过来我们会和去吃刀削面。

他车里放着超级老的歌曲,陈百强的《今宵多珍重》我在群里一段夜晚街景的小视频,群里的朋友打趣说你们是去香港吃刀削面啦?

不过夜景还是蛮好的,如果他的车能擦得干净点就更好了。

到了以后,这大半夜的人还挺多。我们点了两份刀削面、两份小菜,一共才16元,比烤肉便宜多啦。

发群里,馋倒一大片吃货们,纷纷表示后悔没有和我们一起出来。东西味道也不错,尤其是对两个饿鬼而言,这个时间点,有的吃的就不错啦。


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

This page is synchronized from the post: 消费降级,烤肉变刀削面

信用卡还款小插曲 & 微信限制提现了

前两天信用卡到期,人民币+美元一起需要还一大笔数额,为此我提前好几天就开始准备,把能划拉出来的活期金额都划拉过来,放到扣款的银行卡里,静待到期自动扣款。


(图源 :pixabay)

然后到扣款日晚上的时候,收到招商信用卡公众号的推送

咦,似乎哪里不对劲呢,仔细一看,原来实扣金额比应还金额少了50多元,这是咋回事啊,我明明记得按汇率算下来,我应该足够还款啊,然后去中行查了一下汇率,果然是美元又涨了😳

看了一下,储蓄卡里的余额已经归零了,得想办法把这五十元补上啊,于是想到了之前有个微信群一朋友股票暴涨,发了三万多的红包,我好像抢到了一些。

进微信钱包一看,哇,果然有一大笔钱, 赶紧转回银行卡吧,结果提现的时候提示:

我晕,我实名注册的银行卡,又实名注册的微信,这样还不够吗?还要上传身份证照片,要不要上传一下我的生活照以及三围啊,愁死了。

我特别讨厌上传身份证照片,当然了,不是因为什么安全问题之类的,而是身份证照片照得比较丑啊(其实还是比真人好看一些的)。

实在没办法,我找我一朋友,微信上和他说:“给我银行卡打100块钱吧,我着急用。” 他问我:“你不会是骗子吧?”我回答:“当然不是了”。我把卡号发了过去,过了不到5分钟,100大洋进账,然后我又手动把这100还给了信用卡。

突然发现,做骗子也是个很不错的职业嘛!这100到手的一点没费劲啊,比炒币啥的强多了。😂


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

This page is synchronized from the post: 信用卡还款小插曲 & 微信限制提现了

秀键盘喽

以前我秀过只有五个按键的奇葩机械键盘。是当时我们QQ群爱好者们DIY之后送我的。

其实除了这个奇葩键盘,他们搞DIY的时候还送了我好多电路板,让我一起玩,可是我懒得去买一堆键帽啊、支架啊等配件,更不用说什么焊接组装之类的了。

比如这个键盘电路板,我就一直当藏品呢,实在是非常漂亮,尤其是还弄上了两个小女孩的卡通头像,这在电路板上该是首创吧。

另外朋友还给我快递过几个机械键盘的电路板(PCB),好像叫神马GH60,据说光电路板就上百元,想想一堆配件头大的厉害,外壳啊、灯啊、轴 啊、键帽啥的,于是我把几套电路板都寄给另外的朋友,让他给我组装出来一套。

结果这家伙把自己的键盘弄得超级炫,就给我弄出来一个黑乎乎的家伙,于是这个黑乎乎的家伙一直在吃灰。

也不知道最近他们还都玩些啥呢,有没有DIY出好玩的东西。


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

This page is synchronized from the post: 秀键盘喽

币渣今何在?

今天偶然间翻到一个8个月以前的老帖子《奇怪的梦:携18亿美元巨款亡命天涯》,帖子中写的是我创建一个渣滓币曝光网站,进而发家致富的事情,看了一遍后不禁感慨一下:我的币渣哪里去了?


(图源 :pixabay)

不过现在似乎不需要曝光渣滓币了,因为随手一抓,10个当中至少有9.5个渣滓币。就算原来某个币曾经不那么空气,但是在这又一波的下跌趋势下,估计项目团队也掀不起什么浪花了。

在微信群里看到一个段子,在区块链领域成为百万富翁需要多久?以EOS为例,过去24小时内跌幅超过10%,说是按这个速度缩水,从亿万富翁变成百万富翁只需要43天。

哈哈,庆幸的是,我不是亿万富翁,根本不用担心自己43天后变成百万富翁,但是EOS我买入的最高点是138,现在22元,不过缩水成了不到六分之一。😭

EOS渣吗?我觉得不渣,至少团队还在做事情,BP们也都很努力,DAPP也非常火热,各种菠菜项目都搞得风生水起的。为了充值信仰,我还被一个不熟识的网友拉近了一个传销群,现在每天都信仰满满的。

历数一下我买过的币,好像发展的都不错呢,最惨的也不过是跌掉了98.5%,还剩1.5%呢,距离归零还早,不渣不渣。

想来想去,就算我真的做出了币渣,也没哪个项目可以曝光的,都是寒冬,项目方也不容易,不知道被谁割了,韭菜何苦为难韭菜。不过这样也好,币渣不存在,也没渣滓币可以曝光,那么我就不担心我因为暴富而亡命天涯了。


(图源 :pixabay)

写下标题的时候,我突然想起了《悟空传》,因为它的作者网名就叫今何在,还记得里边的经典台词:

我要这天,再遮不住我眼,
要这地,再埋不了我心,
要这众生,都明白我意,
要那诸佛,都烟消云散!

可叹的是,天依旧遮着我的眼,地依旧埋着我的心,众生依旧各忙各的为利益没人在乎我的想法,诸佛怎么样我不清楚,不过币圈的诸多虚拟币以及项目就要烟消云散了,连同我那从未问世的币渣。

相关链接


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

This page is synchronized from the post: 币渣今何在?

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×