This commit is contained in:
2019-04-19 14:54:18 +02:00
parent 6f4afaf84a
commit 562a8d159b
2 changed files with 2 additions and 10 deletions
+1 -9
View File
@@ -1,14 +1,6 @@
import { computed } from '@ember/object';
import ethers from 'npm:ethers';
//import formatKredits from 'kredits-web/utils/format-kredits.js';
function formatKredits(value, options) {
let etherValue = ethers.utils.formatEther(value);
if (!options.decimals) {
etherValue = parseInt(etherValue).toString();
}
return etherValue;
}
import formatKredits from 'kredits-web/utils/format-kredits';
export default function(dependentKey, options = {}) {
return computed(dependentKey, {