aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/calculator.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/calculator.coffee b/routes/calculator.coffee
index 0fe11a28..aa4fb063 100644
--- a/routes/calculator.coffee
+++ b/routes/calculator.coffee
@@ -16,7 +16,7 @@ exports.ticker = (req, res) ->
r.setEncoding('utf-8')
r.on('data', (chunk) ->
try
- exchange = 1000 / JSON.parse(chunk).out
+ exchange = req.query.amount / JSON.parse(chunk).out
exchange = (Math.ceil(exchange * 100) / 100).toString()
catch e
exchange = ""