Comments (9)
I use "create_asset" method and create market-issued asset.
When I use "issue_asset" method for issue new shares of an asset, method returns me
"
....
10 assert_exception: Assert Exception
!a.is_market_issued(): Cannot manually issue a market-issued asset.
....
"
Thanks for your feedback.
Ghazar.
from graphene.
You'll need to be more precise if you want people to answer you request.
Why can't you use it?
Also, the official bitshares repo is no bitshares/bitshares-core
from graphene.
@GhazarArm market-issued asset can only be issued by the market but not the owner. Firstly you need to set price feeds for the asset, then use the "borrow_asset" command to create new tokens.
This is by design. For more info (e.g. how to use and etc), please discuss / ask in the forum.
from graphene.
I use publish_asset_feed() method to set price feed for the asset.
"
publish_asset_feed hayq MCORE {"settlement_price": {"quote": {"amount": 1000000, "asset_id": "1.3.0"}, "base": {"amount": 8563, "asset_id": "1.3.474"}}, "core_exchange_rate": {"quote": {"amount": 8563, "asset_id": "1.4.474"}, "base": {"amount": 1050000, "asset_id": "1.3.0"}}} true
"
And get this error
"
10 assert_exception: Assert Exception
fc::to_uint64( s.substr( 0, first_dot ) ) == SpaceID && fc::to_uint64( s.substr( first_dot+1, second_dot-first_dot-1 ) ) == TypeID: Space.Type.0 (1.3.0) doesn't match expected value 1.4.474
{"TypeID":3,"SpaceID":1,"var":"1.4.474"}
th_a object_id.hpp:208 from_variant
{"var":"1.4.474"}
th_a object_id.hpp:210 from_variant
"
How to set price feeds ?
from graphene.
you need more collateral to borrow that asset!
from graphene.
The asset id in quote
in core_exchange_rate
is wrong .. it should be 1.3.xxx
not 1.4.xxx
from graphene.
I tried it
publish_asset_feed hayq MCORE {"settlement_price": {"quote": {"amount": 1000000, "asset_id": "1.3.0"}, "base": {"amount": 8563, "asset_id": "1.3.474"}}, "core_exchange_rate": {"quote": {"amount": 8563, "asset_id": "1.3.574"}, "base": {"amount": 1050000, "asset_id": "1.3.0"}}} true
10 assert_exception: Assert Exception
feed.settlement_price.base.asset_id == feed.core_exchange_rate.base.asset_id:
{}
th_a asset_ops.cpp:141 validate
{"publishing_account":"hayq","symbol":"MCORE","feed":{"settlement_price":{"base":{"amount":8563,"asset_id":"1.3.474"},"quote":{"amount":1000000,"asset_id":"1.3.0"}},"maintenance_collateral_ratio":1750,"maximum_short_squeeze_ratio":1500,"core_exchange_rate":{"base":{"amount":1050000,"asset_id":"1.3.0"},"quote":{"amount":8563,"asset_id":"1.3.574"}}},"broadcast":true}
th_a wallet.cpp:1246 publish_asset_feed
I don't understand how to get price_feed in publish_asset_feed()?
from graphene.
Either your asset id is 1.3.574
or 1.3.474
not both
from graphene.
I put in
borrow_asset account_name 3000 asset_name 300 true
and get this error
...
exception: unspecified
10 assert_exception: Assert Exception
enable_black_swan: Black swan was detected during a margin update which is not allowed to trigger a blackswan
{}
th_a db_update.cpp:250 check_for_blackswan{} th_a db_market.cpp:547 check_call_orders
...
0 exception: unspecified
10 assert_exception: Assert Exception
enable_black_swan: Black swan was detected during a margin update which is not allowed to trigger a blackswan
{}
th_a db_update.cpp:250 check_for_blackswan{} th_a db_market.cpp:547 check_call_orders {"o":{"fee":{"amount":2000000,"asset_id":"1.3.0"},"funding_account":"1.2.18","delta_collateral":{"amount":30000000,"asset_id":"1.3.0"},"delta_debt":{"amount":30000,"asset_id":"1.3.4"},"extensions":[]}} th_a market_evaluator.cpp:275 do_apply {} th_a evaluator.cpp:51 start_evaluate {} th_a db_block.cpp:662 apply_operation
...
How to fix that?
from graphene.
Related Issues (20)
- Witness_node can not start under CentOS HOT 1
- Getting started - What parameters to set? HOT 1
- Cherry-pick the block timestamp validation patch to develop branch HOT 1
- Process to Reset a SmartCoin after a Blackswan Event HOT 10
- Bitshares issue HOT 3
- [Feature Suggestion] No Fee on User Side with Whitelisted UIA HOT 5
- Bitasset data
- Check wallet.cpp calls to fc::ecc::blind_sum HOT 1
- Boost compatibility issue HOT 1
- Issue with macOS build documentation HOT 3
- _apply_block: don't skip trx signature validation
- Wiki instructions no longer valid HOT 3
- I use ubuntu 16.10. I have builded Boost 1.57.0. There are some errors when "make". Why? And,should I must use Ubuntu 14.04? HOT 2
- what is wrong? HOT 2
- Error when install graphene HOT 2
- Transaction object
- Adding stop loss in DEX HOT 1
- forum or mailinglist? HOT 7
- Date of Orders HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphene.