Open hackfisher opened 7 years ago
References Line in Play1.0:
https://github.com/bitsuperlab/cpp-play/blob/master/libraries/blockchain/market_operations.cpp#L136
test:
create_asset "nathan" "DICE" 5 100 "100" {"core_exchange_rate" : { "base": { "amount": 1, "asset_id": "1.3.0"},"quote": {"amount": 1, "asset_id": "1.3.1"}}} {} true
list_account_balances nathan
buy_game_chips nathan DICE 1000 true
Game asset has a new property called "collateral",
this chip asset is atomically calculated from current_supply and its collateral.