Browse Source

preparation

master
yuriy0803 2 years ago
parent
commit
0f00f313cc
  1. 16
      www/app/helpers/format-ethinr.js
  2. 16
      www/app/helpers/format-ethusd.js
  3. 5
      www/config/environment.js

16
www/app/helpers/format-ethinr.js

@ -0,0 +1,16 @@
import Ember from 'ember';
export function formatEthInr(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(formatEthInr);

16
www/app/helpers/format-ethusd.js

@ -0,0 +1,16 @@
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);

5
www/config/environment.js

@ -1,6 +1,6 @@
/* jshint node: true */
module.exports = function(environment) {
module.exports = function (environment) {
var ENV = {
modulePrefix: 'open-etc-pool',
environment: environment,
@ -27,6 +27,7 @@ module.exports = function(environment) {
// The ETC network
Unit: 'ETC',
Currency: 'USD',
// Fee and payout details
PoolFee: '1%',
@ -66,5 +67,5 @@ module.exports = function(environment) {
}
return ENV;
};
};

Loading…
Cancel
Save