mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
hack to isolate Trocador exchange name
This commit is contained in:
parent
73b7af77f6
commit
33ec3f5a25
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,11 @@ abstract class Exchange {
|
|||
case TrocadorExchange.exchangeName:
|
||||
return TrocadorExchange.instance;
|
||||
default:
|
||||
final split = name.split(" ");
|
||||
if (split.length >= 2) {
|
||||
// silly way to check for 'Trocador ($providerName)'
|
||||
return fromName(split.first);
|
||||
}
|
||||
throw ArgumentError("Unknown exchange name");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue