Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krboktv committed Feb 17, 2019
1 parent e8f209d commit 90baa9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion telegram/request/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const tickers = {
"ETH": "usd-eth",
"XDAI": "usd-xdai",
"DAI": "usd-dai",
"BTC": "usd-btc"
"BTC": "usd-btc",
},
"ETH": {
"USD": "eth-usd",
Expand Down
6 changes: 3 additions & 3 deletions telegram/scenes/scenes.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ const tokenDAI = new WizardScene(
const tokenBuffio = new WizardScene(
"bufficoin", ctx=>{
ctx.session.currency = 'BUFF';
ctx.reply(Text.dialog.sendTokens.dai["0"]);
ctx.reply(Text.dialog.sendTokens.buffio["0"]);
return ctx.wizard.next()
},
ctx => {
ctx.session.to = ctx.message.text;
ctx.reply(Text.dialog.sendTokens.dai["1"]);
ctx.reply(Text.dialog.sendTokens.buffio["1"]);
return ctx.wizard.next()
},
async ctx => {
Expand All @@ -241,7 +241,7 @@ const tokenBuffio = new WizardScene(
amount = (Number(await utils.course.convert("USD", tickerFrom, amountInUsd)));
} else {
amount = ctx.message.text;
amountInUsd = Number((await utils.course.convert(tickerFrom, "USD", amount)).toFixed(2));
amountInUsd = 1;
}
console.log(amountInUsd);
const key = guid.create().value;
Expand Down

0 comments on commit 90baa9d

Please sign in to comment.