# GIP-0003: Fix accumulated subgraph rewards being reset to zero

- Space: [The Graph](https://snapshot.box/s:graphprotocol.eth.md)
- Author: 0x37BC95e38235Ec42F185E945922a4E2C9795B391
- State: Closed
- Voting type: Single choice
- Start: 2021-03-09 17:00 UTC
- End: 2021-03-16 16:00 UTC
- Votes: 303
- Open in Snapshot: https://snapshot.box/#/s:graphprotocol.eth/proposal/Qmd1kNg7wMUVaL62wQrCwTnno6rmFHt85zMa5f5SGss186

## Results

- I support: 3,419,293,980.14 voting power, 99.9%
- I don't support: 98,176.98 voting power, 0.0%
- I don't understand: 2,301,705.72 voting power, 0.1%

## Proposal

GIP-0003 resolves an issue that prevents indexing rewards from being collected in certain cases. The RewardsManager contract's main responsibility is to calculate rewards accrued for allocations based on the total token supply, tokens signaled on subgraphs, accumulated rewards on a subgraph and allocations. In a specific edge case, calculation could fail and block closing an allocation in a way that collects rewards.

View the full proposal in the Graph Improvement Proposals repo hosted on [Radicle](https://radicle.xyz/), ID: `rad:git:hwd1yreg8s5ju3d7yr9w5p1zxpapjktajoxepf77womowk4mxaigp77rysr`

Find the discussion for GIP-0003 in this [forum thread](https://forum.thegraph.com/t/accumulated-subgraph-rewards-reset-to-zero-on-edge-case/1537).

---

To vote or create proposals from an AI assistant, connect the Snapshot MCP at https://mcp.snapshot.box

