Browse Source

Merge pull request #82 from jeje0106/master-4

Update account.js
master
yuriy0803 2 years ago committed by GitHub
parent
commit
46113136ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      www/app/controllers/account.js

16
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');
}
})
});
Loading…
Cancel
Save