dali-rp2 icon indicating copy to clipboard operation
dali-rp2 copied to clipboard

Handling two coins with different tickers

Open iloveitaly opened this issue 2 years ago • 5 comments

Today I learned that BCC and BCH are different symbols for the same coin:

https://bitcointalk.org/index.php?topic=2617659.0

Two different exchanges used this symbol interchangeably. I'm not sure if this is the only case, but might be something we need to handle.

iloveitaly avatar Aug 17 '22 13:08 iloveitaly

Interesting, I wasn't aware of this story. It's from 2017, so hopefully exchanges fixed the problem by now, but if we find a case in which this still happens today we can add a synonym table.

eprbell avatar Aug 17 '22 14:08 eprbell

@eprbell yeah I'm guessing this is more of a historical quirk. I'm guessing the easiest way to handle this would be to manually manipulate the tables, but I'm wondering if you can think of an easy place to put a synonym table that wouldn't require a ton of work.

iloveitaly avatar Aug 17 '22 15:08 iloveitaly

Probably inside the first loop of the resolve_transactions(), which is already modifying transaction data.

eprbell avatar Aug 17 '22 15:08 eprbell

There is also the case of BCHSV and BSV that we had issues with earlier. I think this might spring up from time to time. There are also smaller assets that share tickers, like GENE.

macanudo527 avatar Aug 18 '22 02:08 macanudo527

Here's a more detailed description of how to approach this issue:

eprbell avatar Aug 18 '22 04:08 eprbell