Browse Source

Update account.js

Calculation price token /usd
master
jeje0106 2 years ago committed by GitHub
parent
commit
aeefb9be0c
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