Ignore bounty isProposed in treasury calcs (#6885)

This commit is contained in:
Jaco 2022-01-26 12:05:59 +01:00 committed by GitHub
parent 0f12911710
commit 1334a2de24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,8 +76,8 @@ function useTreasuryImpl (): Result {
bounties &&
setResult((prev) => ({
...prev,
pendingBounties: bounties.reduce((total, { bounty: { value } }) =>
total.iadd(value), new BN(0)
pendingBounties: bounties.reduce((total, { bounty: { status, value } }) =>
total.iadd(status.isProposed ? BN_ZERO : value), new BN(0)
)
}));
}, [bounties]);