Skip to content

Commit

Permalink
Prettify stats_verification.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
barakman committed Jan 13, 2021
1 parent 8fce516 commit 524b7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solidity/utils/stats_verification.js
Expand Up @@ -37,7 +37,7 @@ function setState(state, keys, value) {

function sumValues(state, key) {
return Object.entries(state)
.filter(entry => entry[0].startsWith(key))
.filter((entry) => entry[0].startsWith(key))
.reduce((sum, entry) => sum.add(Web3.utils.toBN(entry[1])), Web3.utils.toBN(0))
.toString();
}
Expand Down Expand Up @@ -103,7 +103,7 @@ async function readAmounts(state, func) {
async function readStoreAmounts(state, store) {
return {
poolAmounts: await readAmounts(state.poolAmounts, store.methods.totalProtectedPoolAmount),
reserveAmounts: await readAmounts(state.reserveAmounts, store.methods.totalProtectedReserveAmount),
reserveAmounts: await readAmounts(state.reserveAmounts, store.methods.totalProtectedReserveAmount)
};
}

Expand Down

0 comments on commit 524b7e4

Please sign in to comment.