Author Topic: Why is Current Supply not equal to the sum of all Margin Positions?  (Read 2447 times)

0 Members and 1 Guest are viewing this topic.

Offline kadawum

  • Newbie
  • *
  • Posts: 11
    • View Profile
Thank you for the explanation. Now I was able to confirm with the cli_wallet that the sum is matching to the current supply.

Offline zapata42

  • Full Member
  • ***
  • Posts: 62
    • View Profile
  • BitShares: zapata42
It seems that the UI only display the 300 earliest position to be called.

The request made by the UI is:
    {"method":"call","params":[2,"get_call_orders",["1.3.121",300]],"id":32}

The documentation of the API:
  http://docs.bitshares.org/api/database.html#_CPPv2NK8graphene3app12database_api15get_call_ordersE13asset_id_type8uint32_t

The code:
  https://github.com/bitshares/bitshares-ui/blob/master/app/components/Blockchain/Asset.jsx#L105


 

Offline kadawum

  • Newbie
  • *
  • Posts: 11
    • View Profile
I copied the full table to a spreadsheet and calculated the sum of the Debt column. So the sum is not displayed there because I calculated it myself.

Offline yvv

  • Hero Member
  • *****
  • Posts: 1186
    • View Profile
I don't see no sum of all debt at the bottom.



Offline kadawum

  • Newbie
  • *
  • Posts: 11
    • View Profile
I would like to get a better knowledge about the inner workings of SmartAssets.
On the BitUSD Asset Page it is listed with a "Current supply" of 28,558,281.0318 bitUSD.
But on the bottom of the page in the "Margin Positions" tab, the sum of all Debt ( BitUSD) is 19,849,062.7291 bitUSD.

I always assumed that the "Current Supply" should be exactly equal to the sum of all margin positions. Isn't bitUSD completely borrowed into existence? But then where is the excess supply of 8,709,218.3027 bitUSD coming from? I am wondering, if everyone would want to cash out, there would not be enough collateral BTS left at some point. Please, could someone help me understand where the additional bitUSD is created, if not by borrowing. Thank you very much.