Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Update QUOTE_ASSETS to reflect current DEX realities #165

@droplister

Description

@droplister

The counterblockd code defines:
QUOTE_ASSETS = ['BTC', 'XBTC', 'XCP'] # define the priority for quote asset

This configuration value is used by the assets_to_asset_pair utility function to deal with order asset pairs in a deterministic way and is a fair solution to the problem of, "Which asset comes first, 1 or 2?" But when an asset is not listed as part of the priority quote assets, the function defaults to alphabetical order which can create some unexpected results and inverted prices.

Today, I believe it makes sense to update this value to give PEPECASH and BITCRYSTALS priority as quote assets in the default configuration. This will improve the user experience of Counterwallet, as well. Additional candidates could include, RUSTBITS, SCOTCOIN, DATABITS, and hopefully one day BITCORN.

Perhaps, we could create a simple threshold in terms of trading volume to include assets here. Node operators could, of course, update this configuration value without causing any consensus issues, so I would encourage that this is done, but most node operators do not edit these default values.

XBTC hasn't been traded on the dex since 2014. I think it's worth updating this default config value to include PEPECASH and BITCRYSTALS, based on their clear volume of usage, and to talk about what threshold could be put in place to regularly be adding quote assets for priority.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions