Author Topic: [Witness Proposal] gdex-witnness  (Read 3100 times)

0 Members and 1 Guest are viewing this topic.

Offline Bangzi

  • Full Member
  • ***
  • Posts: 182
    • View Profile
    • Steemit: Bangzi
  • BitShares: bangzi
Re: [Witness Proposal] gdex-witnness
« Reply #30 on: September 24, 2018, 03:46:44 pm »
This topic is for "[Witness Proposal] gdex-witnness", the correct place to discuss is at "Witness Report for Verbaltech2":
https://bitsharestalk.org/index.php/topic,23902.0.html

Anyway, I suggest both of you settle the issue privately. What both of you share here may misused by someone else to call a public unvote, we can't lose both of you.
Please Vote for My Witness: Bangzi
My Blog: https://steemit.com/@bangzi
请投票支持比特股见证人: Bangzi

Offline Thom

Re: [Witness Proposal] gdex-witnness
« Reply #31 on: September 24, 2018, 04:40:13 pm »
This topic is for "[Witness Proposal] gdex-witnness", the correct place to discuss is at "Witness Report for Verbaltech2":
https://bitsharestalk.org/index.php/topic,23902.0.html

Anyway, I suggest both of you settle the issue privately. What both of you share here may misused by someone else to call a public unvote, we can't lose both of you.

Point noted, however abit made it a point to attack my abilities here, so here is where I refute them. He has chosen not to respond to my DMs, and seems to be less in favor of talking to me to and "working this out".
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline bitcrab

  • Committee member
  • Hero Member
  • *
  • Posts: 1067
    • View Profile
  • BitShares: bitcrab
  • GitHub: bitcrab
Re: [Witness Proposal] gdex-witnness
« Reply #32 on: October 31, 2018, 04:15:42 am »
plan to adopt below feed price algorithm to replace the current one:

Pdex:BTS price in DEX in smartcoin
Pf: current feed price
premium: current premium

scale=1;
get Pdex, Pf, premium;

while True:
   
   get Pdex, Pf, premium;
   if 0.3%>premium>-0.5%: ##just adopt the current median if the absolute premium is low enough.
       feed price = Pf;
   else:
       feed price = Pf*(1+premium*scale);
   time.sleep(120); ##update every 2 minutes.
« Last Edit: October 31, 2018, 04:26:20 am by bitcrab »

Offline sschiessl

Re: [Witness Proposal] gdex-witnness
« Reply #33 on: October 31, 2018, 08:03:38 am »
What are your thoughts on enforcing not a 1:1 peg, but one with a constant premium? There have been discussions on it in telegram and I tend to agree that a small constant positive premium will behave more stable than 1:1.

In your algorithm that would correlate to something like

Code: [Select]
   ...
   target_premium = 0.5%; // arbitrary number, chosen here to reflect the lower bound of allowed premium to be 0

   get Pdex, Pf, premium;
   premium = premium - target_premium;
   ...
« Last Edit: October 31, 2018, 08:08:47 am by sschiessl »

Offline bitcrab

  • Committee member
  • Hero Member
  • *
  • Posts: 1067
    • View Profile
  • BitShares: bitcrab
  • GitHub: bitcrab
Re: [Witness Proposal] gdex-witnness
« Reply #34 on: October 31, 2018, 08:29:54 am »
What are your thoughts on enforcing not a 1:1 peg, but one with a constant premium? There have been discussions on it in telegram and I tend to agree that a small constant positive premium will behave more stable than 1:1.

In your algorithm that would correlate to something like

Code: [Select]
   ...
   target_premium = 0.5%; // arbitrary number, chosen here to reflect the lower bound of allowed premium to be 0

   get Pdex, Pf, premium;
   premium = premium - target_premium;
   ...

in current bitCNY situation, your algorithm will make feed price even lower. maybe that will lead to better pegging, but will make more margin call happen which seems not so necessary. this may be not good as now feed price is already more than 2% lower than DEX price in bitCNY market.

I prefer to accept a premium between -0.5% and 0.3% with adopt the current median.

Offline bitcrab

  • Committee member
  • Hero Member
  • *
  • Posts: 1067
    • View Profile
  • BitShares: bitcrab
  • GitHub: bitcrab
Re: [Witness Proposal] gdex-witnness
« Reply #35 on: November 29, 2018, 04:17:17 am »
plan for next update on bitCNY:

Pdex:BTS price in DEX in smartcoin
Pf: current feed price
premium: current premium
GS_price: global settlement price

scale= 0.5;
get Pdex, Pf, premium, GS_price;

black_swan_protection_price = GS_price*MSSR*1.01

while True:
   
   get Pdex, Pf, premium;
   if 0.5%>premium>-1%: ##just adopt the current median if the absolute premium is low enough.
       feed price = Pf;
   else:
       feed price = Pf*(1+premium*scale);
   feed price = min(feed price, Pdex*MSSR)
   feed price = max(feed price, Pdex, black_swan_protection_price)
 
   time.sleep(120); ##update every 2 minutes.
« Last Edit: November 29, 2018, 04:19:06 am by bitcrab »