3 changed files with 98 additions and 65 deletions
@ -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); |
||||||
@ -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); |
||||||
@ -1,70 +1,71 @@ |
|||||||
/* jshint node: true */ |
/* jshint node: true */ |
||||||
|
|
||||||
module.exports = function(environment) { |
module.exports = function (environment) { |
||||||
var ENV = { |
var ENV = { |
||||||
modulePrefix: 'open-etc-pool', |
modulePrefix: 'open-etc-pool', |
||||||
environment: environment, |
environment: environment, |
||||||
rootURL: '/', |
rootURL: '/', |
||||||
locationType: 'hash', |
locationType: 'hash', |
||||||
EmberENV: { |
EmberENV: { |
||||||
FEATURES: { |
FEATURES: { |
||||||
// Here you can enable experimental features on an ember canary build
|
// Here you can enable experimental features on an ember canary build
|
||||||
// e.g. 'with-controller': true
|
// e.g. 'with-controller': true
|
||||||
} |
|
||||||
}, |
|
||||||
|
|
||||||
APP: { |
|
||||||
// API host and port
|
|
||||||
ApiUrl: '//192.168.178.27/', |
|
||||||
|
|
||||||
// HTTP mining endpoint
|
|
||||||
HttpHost: 'http://192.168.178.27', |
|
||||||
HttpPort: 8888, |
|
||||||
|
|
||||||
// Stratum mining endpoint
|
|
||||||
StratumHost: 'example.net', |
|
||||||
StratumPort: 8008, |
|
||||||
|
|
||||||
// The ETC network
|
|
||||||
Unit: 'ETC', |
|
||||||
|
|
||||||
// Fee and payout details
|
|
||||||
PoolFee: '1%', |
|
||||||
PayoutThreshold: '0.5 ETC', |
|
||||||
BlockReward: 2.56, |
|
||||||
|
|
||||||
// For network hashrate (change for your favourite fork)
|
|
||||||
BlockTime: 13.2 |
|
||||||
} |
} |
||||||
}; |
}, |
||||||
|
|
||||||
if (environment === 'development') { |
APP: { |
||||||
/* Override ApiUrl just for development, while you are customizing |
// API host and port
|
||||||
frontend markup and css theme on your workstation. |
ApiUrl: '//192.168.178.27/', |
||||||
*/ |
|
||||||
ENV.APP.ApiUrl = 'http://localhost:8080/' |
// HTTP mining endpoint
|
||||||
// ENV.APP.LOG_RESOLVER = true;
|
HttpHost: 'http://192.168.178.27', |
||||||
// ENV.APP.LOG_ACTIVE_GENERATION = true;
|
HttpPort: 8888, |
||||||
// ENV.APP.LOG_TRANSITIONS = true;
|
|
||||||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
// Stratum mining endpoint
|
||||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
StratumHost: 'example.net', |
||||||
} |
StratumPort: 8008, |
||||||
|
|
||||||
if (environment === 'test') { |
// The ETC network
|
||||||
// Testem prefers this...
|
Unit: 'ETC', |
||||||
ENV.locationType = 'none'; |
Currency: 'USD', |
||||||
|
|
||||||
// keep test console output quieter
|
// Fee and payout details
|
||||||
ENV.APP.LOG_ACTIVE_GENERATION = false; |
PoolFee: '1%', |
||||||
ENV.APP.LOG_VIEW_LOOKUPS = false; |
PayoutThreshold: '0.5 ETC', |
||||||
|
BlockReward: 2.56, |
||||||
ENV.APP.rootElement = '#ember-testing'; |
|
||||||
} |
// For network hashrate (change for your favourite fork)
|
||||||
|
BlockTime: 13.2 |
||||||
if (environment === 'production') { |
|
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
return ENV; |
|
||||||
}; |
}; |
||||||
|
|
||||||
|
if (environment === 'development') { |
||||||
|
/* Override ApiUrl just for development, while you are customizing |
||||||
|
frontend markup and css theme on your workstation. |
||||||
|
*/ |
||||||
|
ENV.APP.ApiUrl = 'http://localhost:8080/' |
||||||
|
// ENV.APP.LOG_RESOLVER = true;
|
||||||
|
// ENV.APP.LOG_ACTIVE_GENERATION = true;
|
||||||
|
// ENV.APP.LOG_TRANSITIONS = true;
|
||||||
|
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||||
|
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||||
|
} |
||||||
|
|
||||||
|
if (environment === 'test') { |
||||||
|
// Testem prefers this...
|
||||||
|
ENV.locationType = 'none'; |
||||||
|
|
||||||
|
// keep test console output quieter
|
||||||
|
ENV.APP.LOG_ACTIVE_GENERATION = false; |
||||||
|
ENV.APP.LOG_VIEW_LOOKUPS = false; |
||||||
|
|
||||||
|
ENV.APP.rootElement = '#ember-testing'; |
||||||
|
} |
||||||
|
|
||||||
|
if (environment === 'production') { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
return ENV; |
||||||
|
}; |
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue