Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support handling of removed assets. #1895

Merged

Conversation

ManfredKarrer
Copy link
Contributor

  • cross check the isCryptoCurrency method if the symbol matches any
    fiat currency and of both not match consider it still a CC. In case of
    a removed asset it was returning false before which caused an issue in
    the trade currency pair showing both sides as BTC.
  • Show N/A for name in case the asset is not available.

The code mostly operates with the ticker symbol which gets stored in
the offer, so even an asset is removed traders who have that asset in
their account list can trade without problems.
Tested create offer, take offer and executing a trade.

- cross check the isCryptoCurrency method if the symbol matches any
fiat currency and of both not match consider it still a CC. In case of
a removed asset it was returning false before which caused an issue in
the trade currency pair showing both sides as BTC.
- Show N/A for name in case the asset is not available.

The code mostly operates with the ticker symbol which gets stored in
the offer, so even an asset is removed traders who have that asset in
their account list can trade without problems.
Tested create offer, take offer and executing a trade.
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link
Contributor

@cbeams cbeams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ManfredKarrer
Copy link
Contributor Author

Fixing tests and add some changes...

- We return true at isCryptoCurrency in those cases:
- The code is BTC
- The code is found in assetRegistry
- If not found we check if we have a fiat currency for that code,
if not we treat it as crypto (case of a removed asset)
@ManfredKarrer
Copy link
Contributor Author

As the additional changes have been non trivial I leave it for another ACK.

@ripcurlx
Copy link
Contributor

ripcurlx commented Nov 8, 2018

utACK

@ManfredKarrer ManfredKarrer merged commit ac6d812 into bisq-network:master Nov 8, 2018
@ManfredKarrer ManfredKarrer deleted the support-removed-assets branch November 8, 2018 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants