diff --git a/www/app/controllers/account.js b/www/app/controllers/account.js index e40e564..b99bfdf 100644 --- a/www/app/controllers/account.js +++ b/www/app/controllers/account.js @@ -30,11 +30,25 @@ export default Ember.Controller.extend({ } }), - earnPerDay: Ember.computed('model', { + earnPerDayToken: Ember.computed('model', { get() { return 24 * 60 * 60 / this.get('applicationController.blockTime') * this.get('config').BlockReward * this.getWithDefault('model.hashrate') / this.get('hashrate'); } + }), + + earnPerDayUsd: Ember.computed('model', { + get() { + return 24 * 60 * 60 / this.get('applicationController.blockTime') * this.get('config').BlockReward * + this.getWithDefault('model.hashrate') / this.get('hashrate') * this.get ('model.exchangedata.price_usd'); + } + }), + + earnTotalPaid: Ember.computed('model', { + get() { + return 1 * this.get ('model.exchangedata.price_usd') * this.get ('model.stats.paid'); + } }) + -}); \ No newline at end of file +});