OlympusDAO / olympus-subgraph

MIT License
45 stars 129 forks source link

DailyBond.value bug #8

Open zaqk opened 2 years ago

zaqk commented 2 years ago

Hey looks like theres a bug in calculating the DailyBond entity value field. Happy to submit a PR to fix.

Heres the line with the bug: https://github.com/OlympusDAO/olympus-subgraph/blob/main/src/utils/DailyBond.ts#L24

Here's the current code:

dailyBond.value = dailyBond.amount.plus(value)

And here's what it should be:

dailyBond.value = dailyBond.value.plus(value)