|
|
|
|
@ -402,5 +402,36 @@ export default Ember.Controller.extend({
|
|
|
|
|
}; |
|
|
|
|
return a; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}), |
|
|
|
|
earnPerHour: Ember.computed('model', { |
|
|
|
|
get() { |
|
|
|
|
return 1 * 60 * 60 / this.get('config').BlockTime * this.get('config').BlockReward * |
|
|
|
|
this.getWithDefault('model.hashrate') / this.get('hashrate'); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
earnPerHour12: Ember.computed('model', { |
|
|
|
|
get() { |
|
|
|
|
return 12 * 60 * 60 / this.get('config').BlockTime * this.get('config').BlockReward * |
|
|
|
|
this.getWithDefault('model.hashrate') / this.get('hashrate'); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
earnPerDay: Ember.computed('model', { |
|
|
|
|
get() { |
|
|
|
|
return 24 * 60 * 60 / this.get('config').BlockTime * this.get('config').BlockReward * |
|
|
|
|
this.getWithDefault('model.hashrate') / this.get('hashrate'); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
earnPerWeek: Ember.computed('model', { |
|
|
|
|
get() { |
|
|
|
|
return 168 * 60 * 60 / this.get('config').BlockTime * this.get('config').BlockReward * |
|
|
|
|
this.getWithDefault('model.hashrate') / this.get('hashrate'); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
earnPerMonth: Ember.computed('model', { |
|
|
|
|
get() { |
|
|
|
|
return 672 * 60 * 60 / this.get('config').BlockTime * this.get('config').BlockReward * |
|
|
|
|
this.getWithDefault('model.hashrate') / this.get('hashrate'); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
});
|