for some people asked me how to create an private smart coin
1. create asset. '4' means precition is 0.0001, '511' means enable all permision for the issuers. '128' means get feed from witness.
set 'market_fee_percent' to 100 if you want charge 1% fee.
create_asset bitcrab TCNY 4 {"issuer_permissions": 511, "flags": 128, "market_fee_percent": 0, "core_exchange_rate":{"base":{"amount":1,"asset_id":"1.3.1"},"quote":{"amount":1,"asset_id":"1.3.0"}}} {} true
check it
locked >>> get_asset TCNY
get_asset TCNY
{
"id": "1.3.734",
"symbol": "TCNY",
"precision": 4,
"issuer": "1.2.121",
"options": {
"max_supply": "1000000000000000",
"market_fee_percent": 0,
"max_market_fee": "1000000000000000",
"issuer_permissions": 511,
"flags": 128,
"core_exchange_rate": {
"base": {
"amount": 1,
"asset_id": "1.3.734"
},
"quote": {
"amount": 1,
"asset_id": "1.3.0"
}
},
"whitelist_authorities": [],
"blacklist_authorities": [],
"whitelist_markets": [],
"blacklist_markets": [],
"description": "",
"extensions": []
},
"dynamic_asset_data_id": "2.3.734",
"bitasset_data_id": "2.4.33"
}
2. setup some important parameter for the smart coin
1) expired time for feeds 2 hours(7200 sec)
2) efficent number of feeds is 7, less than 7 is not efficeint.
3) delay 24 hours for force settlement(86400 sec)
4) price for force settlement have 2% addtion(200/10000)
5) limit for the force settlement volume is 2% of supply. (200/10000)
6) backup by BTS
update_bitasset TCNY {"feed_lifetime_sec" : 7200, "minimum_feeds" : 7, "force_settlement_delay_sec" : 86400, "force_settlement_offset_percent": 200, "maximum_force_settlement_volume" : 200, "short_backing_asset" : "1.3.0"} true
check it
locked >>> get_object 2.4.33
get_object 2.4.33
[{
"id": "2.4.33",
"feeds": [[
"1.2.9952",[
......
"current_feed_publication_time": "2015-12-09T23:44:54",
"options": {
"feed_lifetime_sec": 7200,
"minimum_feeds": 7,
"force_settlement_delay_sec": 86400,
"force_settlement_offset_percent": 200,
"maximum_force_settlement_volume": 200,
"short_backing_asset": "1.3.0",
"extensions": []
},
"force_settled_volume": 0,
"is_prediction_market": false,
"settlement_price": {
"base": {
"amount": 0,
"asset_id": "1.3.0"
},
"quote": {
"amount": 0,
"asset_id": "1.3.0"
}
},
"settlement_fund": 0
}
]