BitShares Forum

Main => Technical Support => Topic started by: kinglaw0577 on December 22, 2015, 02:36:36 am

Title: How can I burn asset in bts2.0, like in bts1.0?
Post by: kinglaw0577 on December 22, 2015, 02:36:36 am
How can I burn asset in bts2.0, like in bts1.0?
Title: Re: How can I burn asset in bts2.0, like in bts1.0?
Post by: xeroc on December 22, 2015, 07:38:54 am
I am not 100% sure .. but the documentation of "reserve_asset" says that the amount will be given back to the issue ..
at least the blockchain knows about this ... having a clickable button in the gui is another thing ..
Title: Re: How can I burn asset in bts2.0, like in bts1.0?
Post by: bytemaster on December 22, 2015, 04:38:14 pm
There is a special account "null-account" whose permissions are set such that "no one" has control.   Transferring funds to this account or to any account owned only by the null-account is effectively burning them.

There is also a special account "temp-account" whose permissions are set such that "any one" has control with the one caveat that its balance must always end up at 0. 
Title: Re: How can I burn asset in bts2.0, like in bts1.0?
Post by: Chronos on December 22, 2015, 04:41:46 pm
There is a special account "null-account" whose permissions are set such that "no one" has control.
You mean this account? https://bitshares.openledger.info/#/account/null-account/overview

How did an account with no permissions manage to update the BRICS asset?
Title: Re: How can I burn asset in bts2.0, like in bts1.0?
Post by: bytemaster on December 22, 2015, 04:49:52 pm
There is a special account "null-account" whose permissions are set such that "no one" has control.
You mean this account? https://bitshares.openledger.info/#/account/null-account/overview

How did an account with no permissions manage to update the BRICS asset?

That is a very good question.  It looks like the answer is that the old issuer "openbank" transferred the asset to "null-account".  So the account history shows the transaction listed under both old and new owner.  Looks like a bug in how account history is representing the UPDATE_ASSET.   If you click on the "time" in the history you can get more details.


Quote
UPDATE ASSET   
Asset to update   BRICS
Issuer   openbank
New owner account   null-account
Core rate   0.01 BTS/BRICS
New options   
root:{} 12 items
max_supply:100000000000000
market_fee_percent:0
max_market_fee:0
issuer_permissions:64
flags:0
core_exchange_rate:{} 2 items
base:{} 2 items
quote:{} 2 items
whitelist_authorities:[] 0 items
blacklist_authorities:[] 0 items
whitelist_markets:[] 0 items
blacklist_markets:[] 0 items
description:BRICS is the acronym for an association of five major emerging national economies: Brazil, Russia, India, China and South Africa. As of 2015, the five BRICS countries represent over 3 billion people, or 42% of the world population; as all five members are in the top 25 of the world by population, and four are in the top 10. The five nations have a combined nominal GDP of US$16.039 trillion, equivalent to approximately 20% of the gross world product, and an estimated US$4 trillion in combined foreign reserves. The asset's value is derived from the fully secured and decentralized blockchain with users participating from all around the world. The issuer is restricted from transferring the assets back to itself.
extensions:[] 0 items
Fee   21.52734BTS
Title: Re: How can I burn asset in bts2.0, like in bts1.0?
Post by: Chronos on December 22, 2015, 07:12:42 pm
Haha, good sleuthing.
Title: Re: How can I burn asset in bts2.0, like in bts1.0?
Post by: abit on December 23, 2015, 08:09:20 am
There is a special account "null-account" whose permissions are set such that "no one" has control.
You mean this account? https://bitshares.openledger.info/#/account/null-account/overview

How did an account with no permissions manage to update the BRICS asset?

That is a very good question.  It looks like the answer is that the old issuer "openbank" transferred the asset to "null-account".  So the account history shows the transaction listed under both old and new owner.  Looks like a bug in how account history is representing the UPDATE_ASSET.   If you click on the "time" in the history you can get more details.


Quote
UPDATE ASSET   
Asset to update   BRICS
Issuer   openbank
New owner account   null-account
Core rate   0.01 BTS/BRICS
New options   
root:{} 12 items
max_supply:100000000000000
market_fee_percent:0
max_market_fee:0
issuer_permissions:64
flags:0
core_exchange_rate:{} 2 items
base:{} 2 items
quote:{} 2 items
whitelist_authorities:[] 0 items
blacklist_authorities:[] 0 items
whitelist_markets:[] 0 items
blacklist_markets:[] 0 items
description:BRICS is the acronym for an association of five major emerging national economies: Brazil, Russia, India, China and South Africa. As of 2015, the five BRICS countries represent over 3 billion people, or 42% of the world population; as all five members are in the top 25 of the world by population, and four are in the top 10. The five nations have a combined nominal GDP of US$16.039 trillion, equivalent to approximately 20% of the gross world product, and an estimated US$4 trillion in combined foreign reserves. The asset's value is derived from the fully secured and decentralized blockchain with users participating from all around the world. The issuer is restricted from transferring the assets back to itself.
extensions:[] 0 items
Fee   21.52734BTS
By transferring the owner to null-account, the original owner fulfilled its promise that any parameter of that asset (e.g. max amount, fee rate and so) won't be changed in the future.