Author Topic: Problem in creating a MPA  (Read 3122 times)

0 Members and 1 Guest are viewing this topic.

Offline weiyang

  • Newbie
  • *
  • Posts: 4
    • View Profile
Thanks abit. It works.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4666
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
After searching on internet and some experiments, I still couldn't figure out how to create a MPA.

Based on my understanding, the process of issuing an UIA is

* create asset
* issue it to an account

After this, you could transfer it to anyone you want.

While I am a little bit confused in the process of creating a MPA and how to use it.

Below is my current understanding:

* create asset with bitasset option
* publish feed for this asset
* borrow the asset
* sell the asset to complete (?)

I managed to create an MPA in cli_wallet, which could be listed in list_assets

```
unlocked >>> list_assets YW 1
list_assets YW 1
[{
    "id": "1.3.4",
    "symbol": "YWMPA",
    "precision": 5,
    "issuer": "1.2.17",
    "options": {
      "max_supply": "1000000000000000",
      "market_fee_percent": 0,
      "max_market_fee": "1000000000000000",
      "issuer_permissions": 79,
      "flags": 0,
      "core_exchange_rate": {
        "base": {
          "amount": 10000,
          "asset_id": "1.3.0"
        },
        "quote": {
          "amount": 80000,
          "asset_id": "1.3.4"
        }
      },
      "whitelist_authorities": [],
      "blacklist_authorities": [],
      "whitelist_markets": [],
      "blacklist_markets": [],
      "description": "",
      "extensions": []
    },
    "dynamic_asset_data_id": "2.3.4",
    "bitasset_data_id": "2.4.0"
  }
]
```

But I didn't pass the publish feed step. The assertion shows

> Assert Exception: bitasset.feeds.count(o.publisher):

I have no idea about this meaning. Any step I missed? What's is the correct step to create a MPA and do the exchange on bitshares?

`"issuer_permissions": 79` means you can't publish feeds from witnesses.
Check what permission the MPAs on mainnet has.
You can adjust the permissions or set feed producers in GUI, or use update_asset command in CLI.
BitShares committee member: abit
BitShares witness: in.abit

Offline weiyang

  • Newbie
  • *
  • Posts: 4
    • View Profile
After searching on internet and some experiments, I still couldn't figure out how to create a MPA.

Based on my understanding, the process of issuing an UIA is

* create asset
* issue it to an account

After this, you could transfer it to anyone you want.

While I am a little bit confused in the process of creating a MPA and how to use it.

Below is my current understanding:

* create asset with bitasset option
* publish feed for this asset
* borrow the asset
* sell the asset to complete (?)

I managed to create an MPA in cli_wallet, which could be listed in list_assets

```
unlocked >>> list_assets YW 1
list_assets YW 1
[{
    "id": "1.3.4",
    "symbol": "YWMPA",
    "precision": 5,
    "issuer": "1.2.17",
    "options": {
      "max_supply": "1000000000000000",
      "market_fee_percent": 0,
      "max_market_fee": "1000000000000000",
      "issuer_permissions": 79,
      "flags": 0,
      "core_exchange_rate": {
        "base": {
          "amount": 10000,
          "asset_id": "1.3.0"
        },
        "quote": {
          "amount": 80000,
          "asset_id": "1.3.4"
        }
      },
      "whitelist_authorities": [],
      "blacklist_authorities": [],
      "whitelist_markets": [],
      "blacklist_markets": [],
      "description": "",
      "extensions": []
    },
    "dynamic_asset_data_id": "2.3.4",
    "bitasset_data_id": "2.4.0"
  }
]
```

But I didn't pass the publish feed step. The assertion shows

> Assert Exception: bitasset.feeds.count(o.publisher):

I have no idea about this meaning. Any step I missed? What's is the correct step to create a MPA and do the exchange on bitshares?