Created
August 31, 2020 09:25
-
-
Save corbifex/48e2bdb91b85475a273241b9ac7deef5 to your computer and use it in GitHub Desktop.
vote weight no calculation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const voteWeightNo = votes | |
.filter(v => v.vote === 0) | |
.map(v => v.stake) | |
.reduce((accumulator, currentValue) => accumulator + currentValue); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment