You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
329 B
16 lines
329 B
import Ember from 'ember'; |
|
|
|
export function formatEthUsd(params) { |
|
let value = params[0]; |
|
let ethinr = params[1]; |
|
let valueeth = value * 0.000000001; |
|
let inr = valueeth * ethinr; |
|
|
|
if (isNaN(inr)) { |
|
return ''; |
|
} |
|
|
|
return "$" + inr.toFixed(2); |
|
} |
|
|
|
export default Ember.Helper.helper(formatEthUsd); |