Author Topic: TUSD come at the last day in 2015  (Read 4230 times)

0 Members and 1 Guest are viewing this topic.

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
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.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
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.
« Last Edit: December 31, 2015, 09:28:32 pm by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
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.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Xeldal

  • Guest
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.


Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
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?
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Xeldal

  • Guest
 +5% +5% +5%  Hell yeah!!  Very happy to see this.  TY bitcrab, this is great news!

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi

Offline morpheus

  • Full Member
  • ***
  • Posts: 81
    • View Profile
I definitely think you guys are on the right track here.

Offline Riverhead

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.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Price feeding for TUSD from witness in.abit is activated.

//Edit:SQR set to 1001:
Code: [Select]
"maximum_short_squeeze_ratio"   : 1001
« Last Edit: December 31, 2015, 03:16:47 pm by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline vegolino

  • Sr. Member
  • ****
  • Posts: 450
  • Reality is Information
    • View Profile

jakub

  • Guest
That's really great @bitcrab
Instead of fighting each other, we are starting to make use of the platform.
Always good to have diversity.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
+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!

Offline Empirical1.2

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
 +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.

If you want to take the island burn the boats

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
Great news  +5% & happy new year
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█