Open zaqk opened 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)
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:
And here's what it should be: