BitShares Forum

Main => Technical Support => Topic started by: monsterer on October 24, 2015, 11:17:31 am

Title: [cli_wallet] update_asset - how to use?
Post by: monsterer on October 24, 2015, 11:17:31 am
I'd like to set the market_fee_percent option for a UIA, but looking at the docs, it's unclear how I can do this via the command line (cli_wallet) - is there an example of how to specify the options via command line?
Title: Re: [cli_wallet] update_asset - how to use?
Post by: xeroc on October 24, 2015, 07:49:19 pm
I have an example in the whitelisting part of docs.bitshares.eu/integration ..
Title: Re: [cli_wallet] update_asset - how to use?
Post by: monsterer on October 24, 2015, 08:44:05 pm
I have an example in the whitelisting part of docs.bitshares.eu/integration ..

Great, thanks :)

Any idea what core_exchange_rate represents?
Title: Re: [cli_wallet] update_asset - how to use?
Post by: roadscape on October 25, 2015, 10:06:12 pm
I believe core_exchange_rate is the fee pool exchange rate, and it's used to calculate fees when they are paid in bitassets as opposed to BTS.
Title: Re: [cli_wallet] update_asset - how to use?
Post by: monsterer on October 25, 2015, 10:10:37 pm
I believe core_exchange_rate is the fee pool exchange rate, and it's used to calculate fees when they are paid in bitassets as opposed to BTS.

Isn't that only for MPAs?
Title: Re: [cli_wallet] update_asset - how to use?
Post by: xeroc on October 26, 2015, 07:23:15 am
I believe core_exchange_rate is the fee pool exchange rate, and it's used to calculate fees when they are paid in bitassets as opposed to BTS.

Isn't that only for MPAs?

It's for any asset .. It essentially defines how many asset tokens you have to pay into the fee pool to have the feel pool pay for your transaction in BTS ..
Title: Re: [cli_wallet] update_asset - how to use?
Post by: monsterer on October 26, 2015, 09:58:36 am
It's for any asset .. It essentially defines how many asset tokens you have to pay into the fee pool to have the feel pool pay for your transaction in BTS ..

I don't really understand how the feel pool works - why can't the user just pay in BTS?
Title: Re: [cli_wallet] update_asset - how to use?
Post by: roadscape on October 26, 2015, 04:55:18 pm
The wallet pays fees in BTS by default, but the GUI pays for fees using the BitAsset that's being transferred (currently there is no option to pay with BTS from GUI, but it will be implemented).

The thinking is that most future users will not care about core tokens.. they have a wallet with just USD/CNY/EUR in it and pay all fees with that.
Title: Re: [cli_wallet] update_asset - how to use?
Post by: monsterer on October 27, 2015, 12:23:28 pm
For anyone struggling with how to use this command, here is a working example:

Code: [Select]
update_asset METAFEES null {"max_supply":"12000000000","market_fee_percent":30,"max_market_fee":"1000000000000000","issuer_permissions":79,"flags":128,"core_exchange_rate":{"base":{"amount":1,"asset_id":"1.3.0"},"quote":{"amount":160,"asset_id":"1.3.472"}}} true