Comparing version 1.0.11 to 1.0.12
@@ -7,2 +7,4 @@ var CryptoJS = require('crypto-js') | ||
const fetch = require('node-fetch') | ||
const bwGrowth = 10000000 | ||
const vtGrowth = 360000000 | ||
@@ -403,7 +405,7 @@ function status(response) { | ||
votingPower: (account) => { | ||
return new GrowInt(account.vt, {growth:account.balance/(3600000)}) | ||
return new GrowInt(account.vt, {growth:account.balance/(vtGrowth)}) | ||
.grow(new Date().getTime()).v | ||
}, | ||
bandwidth: (account) => { | ||
return new GrowInt(account.bw, {growth:account.balance/(60000), max:1048576}) | ||
return new GrowInt(account.bw, {growth:account.balance/(bwGrowth), max:1048576}) | ||
.grow(new Date().getTime()).v | ||
@@ -410,0 +412,0 @@ }, |
{ | ||
"name": "javalon", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "javascript api for the avalon blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
20382
473