accounts = ledger
.accounts()
.map(x => ({
amount: x.allocationHistory
.filter(
y =>
y.credTimestampMs >= new Date("1/1/2021") &&
y.credTimestampMs <= new Date("7/1/2021")
)
.map(y => y.grainReceipt.amount)
.reduce((a, b) => G.add(a, b), G.ZERO),
name: x.identity.name
}))
.filter(x => G.gt(x.amount, G.ZERO))
.filter(x => !["sourcecred", "protocol"].includes(x.name))