BitShares Forum

Main => General Discussion => Topic started by: bitcrab on December 31, 2015, 11:27:11 am

Title: TUSD come at the last day in 2015
Post by: bitcrab on December 31, 2015, 11:27:11 am
main difference between BitUSD and TUSD:
 
Code: [Select]
      "feed_lifetime_sec": 86400/21600,
      "minimum_feeds": 7/3,
      "force_settlement_offset": 0/100,
      "maximum_force_settlement_volume": 2000/200,
     

like TCNY, the purpose to define TUSD is to make exact pegging possible, we believe exact pegging is necessary for merchant use and is possible with the help of gateway.

the force_settlement_offset of TUSD is 1%,  less than that of TCNY(2%),  we hope this can bring better liquidity.

transwiser plan to cooperate with gempay.com for withdrawing TUSD to bank as fiat. we hope this will benefit the promotion of smartcoin.

hope everyone enjoy it. :) @xeroc could you please update the price feed script for TUSD when you have time? :) thanks  a lot.
Title: Re: TUSD come at the last day in 2015
Post by: btswildpig on December 31, 2015, 11:29:36 am
 +5% +5% +5% +5% +5% +5%
Title: Re: TUSD come at the last day in 2015
Post by: cass on December 31, 2015, 11:33:53 am
Great news  +5% & happy new year
Title: Re: TUSD come at the last day in 2015
Post by: Empirical1.2 on December 31, 2015, 11:53:12 am
 +5% Good Luck

I think having forced settlement offset by 1% should work well.

I also think maybe we need to make force settle < 1-1 maybe 0.99. So that there is a cost and so that BitAssets trade closer to 1-1.

Title: Re: TUSD come at the last day in 2015
Post by: xeroc on December 31, 2015, 12:03:34 pm
+5% Good Luck

I think having forced settlement offset by 1% should work well.

I also think maybe we need to make force settle < 1-1 maybe 0.99. So that there is a cost and so that BitAssets trade closer to 1-1.


I would have picked 2% but at least we have a USD with 1% .. let's see how markets react ..

+5% for taking the lead!
Title: Re: TUSD come at the last day in 2015
Post by: jakub on December 31, 2015, 01:24:16 pm
That's really great @bitcrab
Instead of fighting each other, we are starting to make use of the platform.
Always good to have diversity.
Title: Re: TUSD come at the last day in 2015
Post by: vegolino on December 31, 2015, 01:34:07 pm
Good luck   @bitcrab   :)
Title: Re: TUSD come at the last day in 2015
Post by: abit on December 31, 2015, 03:11:35 pm
Price feeding for TUSD from witness in.abit is activated.

//Edit:SQR set to 1001:
Code: [Select]
"maximum_short_squeeze_ratio"   : 1001
Title: Re: TUSD come at the last day in 2015
Post by: Riverhead on December 31, 2015, 03:31:13 pm
That's really great @bitcrab
Instead of fighting each other, we are starting to make use of the platform.
Always good to have diversity.


^^ This.
Title: Re: TUSD come at the last day in 2015
Post by: morpheus on December 31, 2015, 03:56:34 pm
I definitely think you guys are on the right track here.
Title: Re: TUSD come at the last day in 2015
Post by: alt on December 31, 2015, 04:12:13 pm
btsprice support feed for TUSD now
https://github.com/pch957/btsprice
Title: Re: TUSD come at the last day in 2015
Post by: Xeldal on December 31, 2015, 04:54:33 pm
 +5% +5% +5%  Hell yeah!!  Very happy to see this.  TY bitcrab, this is great news!
Title: Re: TUSD come at the last day in 2015
Post by: puppies on December 31, 2015, 08:43:48 pm
I am now publishing for TUSD.  In fact.  I just shorted some into existence.

I still can't get my feed for TCNY to work on either Xerocs or Alts script though.  Is TCNY a whitelist only feed?
Title: Re: TUSD come at the last day in 2015
Post by: Xeldal on December 31, 2015, 09:07:19 pm
I am now publishing for TUSD.  In fact.  I just shorted some into existence.

I still can't get my feed for TCNY to work on either Xerocs or Alts script though.  Is TCNY a whitelist only feed?

There is a missing comma in xeroc's config.py
within asset_config={...} after the "CNY" : {...} entry , before the TCNY entry

IDK if that's your issue though.

Title: Re: TUSD come at the last day in 2015
Post by: puppies on December 31, 2015, 09:11:57 pm
I am now publishing for TUSD.  In fact.  I just shorted some into existence.

I still can't get my feed for TCNY to work on either Xerocs or Alts script though.  Is TCNY a whitelist only feed?

There is a missing comma in xeroc's config.py
within asset_config={...} after the "CNY" : {...} entry , before the TCNY entry

IDK if that's your issue though.

I commented the mssr change out, and the script runs, but the transaction itself fails.  Same with Alts script.

When I am confident that I have the syntax correct I'll try to publish a manual transaction with the TCNY feed.
Title: Re: TUSD come at the last day in 2015
Post by: abit on December 31, 2015, 09:25:49 pm
I am now publishing for TUSD.  In fact.  I just shorted some into existence.

I still can't get my feed for TCNY to work on either Xerocs or Alts script though.  Is TCNY a whitelist only feed?

There is a missing comma in xeroc's config.py
within asset_config={...} after the "CNY" : {...} entry , before the TCNY entry

IDK if that's your issue though.

I commented the mssr change out, and the script runs, but the transaction itself fails.  Same with Alts script.

When I am confident that I have the syntax correct I'll try to publish a manual transaction with the TCNY feed.
What's the error message of "the transaction itself fails"?

By the way I'm using a modified version of xeroc's old script, so can't simply paste my config/script here.
Title: Re: TUSD come at the last day in 2015
Post by: puppies on December 31, 2015, 11:04:10 pm
I get
Code: [Select]
Update required! Forcing now!
constructing feed for witness dele-puppy
Traceback (most recent call last):
  File "pricefeeds.py", line 560, in <module>
    update_price_feed()
  File "pricefeeds.py", line 518, in update_price_feed
    update_feed(rpc,price_feeds)
  File "pricefeeds.py", line 179, in update_feed
    signedTx = rpc.sign_builder_transaction(handle, True)
  File "/home/user/.local/lib/python3.4/site-packages/graphene-0.1-py3.4.egg/grapheneapi/grapheneapi.py", line 91, in method
  File "/home/user/.local/lib/python3.4/site-packages/graphene-0.1-py3.4.egg/grapheneapi/grapheneapi.py", line 74, in rpcexec
  File "/home/user/.local/lib/python3.4/site-packages/graphene-0.1-py3.4.egg/grapheneapi/grapheneapi.py", line 66, in rpcexec
grapheneapi.grapheneapi.RPCError: 0 exception: unspecified
10 assert_exception: Assert Exception
bitasset.feeds.count(o.publisher):
    {}
    th_a  asset_evaluator.cpp:531 do_evaluate

    {"o":{"fee":{"amount":10000,"asset_id":"1.3.0"},"publisher":"1.2.1191","asset_id":"1.3.734","feed":{"settlement_price":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":50891,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1001,"core_exchange_rate":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":48346,"asset_id":"1.3.0"}}},"extensions":[]}}
    th_a  asset_evaluator.cpp:535 do_evaluate

    {}
    th_a  evaluator.cpp:46 start_evaluate

    {}
    th_a  db_block.cpp:650 apply_operation

    {"trx":{"ref_block_num":43585,"ref_block_prefix":1445078753,"expiration":"2015-12-31T23:02:21","operations":[[19,{"fee":{"amount":10000,"asset_id":"1.3.0"},"publisher":"1.2.1191","asset_id":"1.3.734","feed":{"settlement_price":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":50891,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1001,"core_exchange_rate":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":48346,"asset_id":"1.3.0"}}},"extensions":[]}]],"extensions":[],"signatures":["1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33"]}}
    th_a  db_block.cpp:633 _apply_transaction

    {"trx":{"ref_block_num":43585,"ref_block_prefix":1445078753,"expiration":"2015-12-31T23:02:21","operations":[[19,{"fee":{"amount":10000,"asset_id":"1.3.0"},"publisher":"1.2.1191","asset_id":"1.3.734","feed":{"settlement_price":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":50891,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1001,"core_exchange_rate":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":48346,"asset_id":"1.3.0"}}},"extensions":[]}]],"extensions":[],"signatures":["1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33"]}}
    th_a  db_block.cpp:220 push_transaction
    {"error":"10 assert_exception: Assert Exception\nbitasset.feeds.count(o.publisher): \n    {}\n    th_a  asset_evaluator.cpp:531 do_evaluate\n\n    {\"o\":{\"fee\":{\"amount\":10000,\"asset_id\":\"1.3.0\"},\"publisher\":\"1.2.1191\",\"asset_id\":\"1.3.734\",\"feed\":{\"settlement_price\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":50891,\"asset_id\":\"1.3.0\"}},\"maintenance_collateral_ratio\":1750,\"maximum_short_squeeze_ratio\":1001,\"core_exchange_rate\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":48346,\"asset_id\":\"1.3.0\"}}},\"extensions\":[]}}\n    th_a  asset_evaluator.cpp:535 do_evaluate\n\n    {}\n    th_a  evaluator.cpp:46 start_evaluate\n\n    {}\n    th_a  db_block.cpp:650 apply_operation\n\n    {\"trx\":{\"ref_block_num\":43585,\"ref_block_prefix\":1445078753,\"expiration\":\"2015-12-31T23:02:21\",\"operations\":[[19,{\"fee\":{\"amount\":10000,\"asset_id\":\"1.3.0\"},\"publisher\":\"1.2.1191\",\"asset_id\":\"1.3.734\",\"feed\":{\"settlement_price\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":50891,\"asset_id\":\"1.3.0\"}},\"maintenance_collateral_ratio\":1750,\"maximum_short_squeeze_ratio\":1001,\"core_exchange_rate\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":48346,\"asset_id\":\"1.3.0\"}}},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33\"]}}\n    th_a  db_block.cpp:633 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":43585,\"ref_block_prefix\":1445078753,\"expiration\":\"2015-12-31T23:02:21\",\"operations\":[[19,{\"fee\":{\"amount\":10000,\"asset_id\":\"1.3.0\"},\"publisher\":\"1.2.1191\",\"asset_id\":\"1.3.734\",\"feed\":{\"settlement_price\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":50891,\"asset_id\":\"1.3.0\"}},\"maintenance_collateral_ratio\":1750,\"maximum_short_squeeze_ratio\":1001,\"core_exchange_rate\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":48346,\"asset_id\":\"1.3.0\"}}},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33\"]}}\n    th_a  db_block.cpp:220 push_transaction","data":{"id":27746,"error":{"code":1,"message":"10 assert_exception: Assert Exception\nbitasset.feeds.count(o.publisher): \n    {}\n    th_a  asset_evaluator.cpp:531 do_evaluate\n\n    {\"o\":{\"fee\":{\"amount\":10000,\"asset_id\":\"1.3.0\"},\"publisher\":\"1.2.1191\",\"asset_id\":\"1.3.734\",\"feed\":{\"settlement_price\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":50891,\"asset_id\":\"1.3.0\"}},\"maintenance_collateral_ratio\":1750,\"maximum_short_squeeze_ratio\":1001,\"core_exchange_rate\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":48346,\"asset_id\":\"1.3.0\"}}},\"extensions\":[]}}\n    th_a  asset_evaluator.cpp:535 do_evaluate\n\n    {}\n    th_a  evaluator.cpp:46 start_evaluate\n\n    {}\n    th_a  db_block.cpp:650 apply_operation\n\n    {\"trx\":{\"ref_block_num\":43585,\"ref_block_prefix\":1445078753,\"expiration\":\"2015-12-31T23:02:21\",\"operations\":[[19,{\"fee\":{\"amount\":10000,\"asset_id\":\"1.3.0\"},\"publisher\":\"1.2.1191\",\"asset_id\":\"1.3.734\",\"feed\":{\"settlement_price\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":50891,\"asset_id\":\"1.3.0\"}},\"maintenance_collateral_ratio\":1750,\"maximum_short_squeeze_ratio\":1001,\"core_exchange_rate\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":48346,\"asset_id\":\"1.3.0\"}}},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33\"]}}\n    th_a  db_block.cpp:633 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":43585,\"ref_block_prefix\":1445078753,\"expiration\":\"2015-12-31T23:02:21\",\"operations\":[[19,{\"fee\":{\"amount\":10000,\"asset_id\":\"1.3.0\"},\"publisher\":\"1.2.1191\",\"asset_id\":\"1.3.734\",\"feed\":{\"settlement_price\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":50891,\"asset_id\":\"1.3.0\"}},\"maintenance_collateral_ratio\":1750,\"maximum_short_squeeze_ratio\":1001,\"core_exchange_rate\":{\"base\":{\"amount\":112,\"asset_id\":\"1.3.734\"},\"quote\":{\"amount\":48346,\"asset_id\":\"1.3.0\"}}},\"extensions\":[]}]],\"extensions\":[],\"signatures\":[\"1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33\"]}}\n    th_a  db_block.cpp:220 push_transaction","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"asset_evaluator.cpp","line":531,"method":"do_evaluate","hostname":"","thread_name":"th_a","timestamp":"2015-12-31T23:01:51"},"format":"bitasset.feeds.count(o.publisher): ","data":{}},{"context":{"level":"warn","file":"asset_evaluator.cpp","line":535,"method":"do_evaluate","hostname":"","thread_name":"th_a","timestamp":"2015-12-31T23:01:51"},"format":"","data":{"o":{"fee":{"amount":10000,"asset_id":"1.3.0"},"publisher":"1.2.1191","asset_id":"1.3.734","feed":{"settlement_price":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":50891,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1001,"core_exchange_rate":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":48346,"asset_id":"1.3.0"}}},"extensions":[]}}},{"context":{"level":"warn","file":"evaluator.cpp","line":46,"method":"start_evaluate","hostname":"","thread_name":"th_a","timestamp":"2015-12-31T23:01:51"},"format":"","data":{}},{"context":{"level":"warn","file":"db_block.cpp","line":650,"method":"apply_operation","hostname":"","thread_name":"th_a","timestamp":"2015-12-31T23:01:51"},"format":"","data":{}},{"context":{"level":"warn","file":"db_block.cpp","line":633,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2015-12-31T23:01:51"},"format":"","data":{"trx":{"ref_block_num":43585,"ref_block_prefix":1445078753,"expiration":"2015-12-31T23:02:21","operations":[[19,{"fee":{"amount":10000,"asset_id":"1.3.0"},"publisher":"1.2.1191","asset_id":"1.3.734","feed":{"settlement_price":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":50891,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1001,"core_exchange_rate":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":48346,"asset_id":"1.3.0"}}},"extensions":[]}]],"extensions":[],"signatures":["1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33"]}}},{"context":{"level":"warn","file":"db_block.cpp","line":220,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2015-12-31T23:01:51"},"format":"","data":{"trx":{"ref_block_num":43585,"ref_block_prefix":1445078753,"expiration":"2015-12-31T23:02:21","operations":[[19,{"fee":{"amount":10000,"asset_id":"1.3.0"},"publisher":"1.2.1191","asset_id":"1.3.734","feed":{"settlement_price":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":50891,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1001,"core_exchange_rate":{"base":{"amount":112,"asset_id":"1.3.734"},"quote":{"amount":48346,"asset_id":"1.3.0"}}},"extensions":[]}]],"extensions":[],"signatures":["1f518764f24041d919be5bfc9d7b74b26ca91fbc4805d664dc57e8d72471ffb3ea05a3e398edcabc1c5b16b04fada0f492c2d32cf4ade7cea0b04c1d5622659f33"]}}}]}}}}
    th_a  state.cpp:38 handle_reply

To me it looks like my account doesn't have permission to publish a feed for TCNY.