We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbeea02 commit f146c8eCopy full SHA for f146c8e
src/commands/tokenAddress.js
@@ -26,6 +26,12 @@ module.exports = () => {
26
const network = args[1] ? args[1].toLowerCase() : 'mainnet';
27
const currencies = (await kyber(network).get('/currencies')).data.data;
28
const token = args[0].toUpperCase();
29
+
30
+ if (token === 'ZERO') {
31
+ replyWithMarkdown('0x0000000000000000000000000000000000000000', inReplyTo(message.message_id));
32
+ return;
33
+ }
34
35
const result = currencies.find((o) => o.symbol === token);
36
37
if (!result) {
0 commit comments