19 lines
462 B
JavaScript
19 lines
462 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Route.extend({
|
|
|
|
kredits: Ember.inject.service(),
|
|
|
|
model() {
|
|
let kredits = this.get('kredits');
|
|
|
|
return Ember.RSVP.hash({
|
|
contributors: kredits.getContributors(),
|
|
totalSupply: kredits.getValueFromContract('tokenContract', 'totalSupply'),
|
|
contributorsCount: kredits.getValueFromContract('kreditsContract', 'contributorsCount'),
|
|
proposals: kredits.getProposals()
|
|
});
|
|
}
|
|
|
|
});
|