# GIP-12: Compensate users who received fewer GFI rewards due to StakingRewards bug

**URL:** <https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968>\
**Category:** Proposals\
**Created:** [May 25, 2022, 3:04am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968 "2022-05-25T03:04:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilyh](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/emilyh/32/107_2.png) [@emilyh](https://gov.goldfinch.finance/u/emilyh)\
**Post date:** [May 25, 2022, 3:04am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/1 "2022-05-25T03:04:35Z")

</div>

## Summary

To compensate users who received fewer GFI rewards due to an unintentional bug in the `StakingRewards` contract, we propose transferring the equivalent amount of GFI from the Goldfinch Treasury to the affected users.

If approved, ~2923 GFI will be transferred to the affected 23 unique wallet addresses.

## Motivation

We should do our best to honor and uphold the intended design of the protocol. The `StakingRewards` contract behaved in an unexpected way, and users should not be penalized for interacting with the contract.

## Background

Due to a missing modifier on the `unstakeMultiple` function in `StakingRewards`, users received less GFI rewards than they should have when unstaking their positions. The modifier contained logic to checkpoint rewards before unstaking. Omitting the modifier meant that users only received GFI rewards up to the previous checkpoint.

The usage of the erroneous `unstakeMultiple` function has been temporarily removed from the frontend, so the bug is no longer affecting users of the Goldfinch dApp. The proper smart contract fix has been put in place, and will be deployed in the upcoming weeks.

In total, 23 unique wallet addresses lost ~2923 GFI rewards between April 30 to May 13.

### Methodology

To calculate the amount of GFI that should have been disbursed to each affected user, we simulated a `getReward` transaction at the block number in which the original `unstakeMultiple` transaction was executed. The output of the `getReward` transaction represents the exact amount of GFI that should have been claimable when the user unstaked a position at that block number; it accounts for checkpointing and slashing rewards for early unstaking.

### Data

See [this spreadsheet](https://docs.google.com/spreadsheets/d/1E3yQPceXPj2lvmunEorSv-Y4P1jtlhfxe337YvPs4vo/edit#gid=1079401667) for full details.

## Specification & Requirements

To transfer GFI, will execute a multisend transaction from the Goldfinch Council multisig. No smart contract changes will be required for transferring GFI to affected users.

### Benefits

Increase trust between the team, protocol participants, and community members.

### Drawbacks and Risks

No real downsides except usage of the token, but if the proposal passes, then it is assumed the community believes this is a worthwhile use of the token.

### Voting

YES: Transfer GFI to compensate affected users

NO: Do not transfer GFI to compensate affected users

## Resources

- [GIP-12: GFI Airdrop Calculation](https://docs.google.com/spreadsheets/d/1E3yQPceXPj2lvmunEorSv-Y4P1jtlhfxe337YvPs4vo/edit#gid=1079401667)

---

<div class="post-metadata">

**Author:** ![Eloquent](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/eloquent/32/49_2.png) [@Eloquent](https://gov.goldfinch.finance/u/Eloquent)\
**Post date:** [May 25, 2022, 11:21am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/2 "2022-05-25T11:21:16Z")

</div>

I guess that’s a really worthy use of the token, so I support this proposal.

// Yes.

---

<div class="post-metadata">

**Author:** ![Metatron](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/metatron/32/108_2.png) [@Metatron](https://gov.goldfinch.finance/u/Metatron)\
**Post date:** [May 25, 2022, 12:40pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/3 "2022-05-25T12:40:26Z")

</div>

> [@emilyh](#):
>
> Increase trust between the team, protocol participants, and community members.

Agree with benefits. My vote is YES

---

<div class="post-metadata">

**Author:** ![wakiyamap](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/wakiyamap/32/155_2.png) [@wakiyamap](https://gov.goldfinch.finance/u/wakiyamap)\
**Post date:** [May 25, 2022, 2:38pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/4 "2022-05-25T14:38:45Z")

</div>

agree. I think mistakes should be corrected. my vote is yes.

---

<div class="post-metadata">

**Author:** ![nisa](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@nisa](https://gov.goldfinch.finance/u/nisa)\
**Post date:** [May 25, 2022, 5:04pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/5 "2022-05-25T17:04:31Z")

</div>

I support and vote ‘yes’

---

<div class="post-metadata">

**Author:** ![Poloskin](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/poloskin/32/139_2.png) [@Poloskin](https://gov.goldfinch.finance/u/Poloskin)\
**Post date:** [May 25, 2022, 5:55pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/6 "2022-05-25T17:55:21Z")

</div>

I think it’s fair. My vote is yes.

---

<div class="post-metadata">

**Author:** ![steven.thornton](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@steven.thornton](https://gov.goldfinch.finance/u/steven.thornton)\
**Post date:** [May 26, 2022, 2:45pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/7 "2022-05-26T14:45:33Z")

</div>

I agree. My vote is yes.

---

<div class="post-metadata">

**Author:** ![Block0](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@Block0](https://gov.goldfinch.finance/u/Block0)\
**Post date:** [May 26, 2022, 3:21pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/8 "2022-05-26T15:21:49Z")

</div>

Agreed. My vote is yes.

---

<div class="post-metadata">

**Author:** ![jayden](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/jayden/32/174_2.png) [@jayden](https://gov.goldfinch.finance/u/jayden)\
**Post date:** [May 27, 2022, 2:34pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/9 "2022-05-27T14:34:24Z")

</div>

Agree that affected users should be compensated. The team’s honesty and speedy response to rectify the situation will definitely create a positive image for Goldfinch!

---

<div class="post-metadata">

**Author:** ![kykim](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@kykim](https://gov.goldfinch.finance/u/kykim)\
**Post date:** [May 29, 2022, 12:39am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/10 "2022-05-29T00:39:08Z")

</div>

Yes, we need to vote for `yes`. there is no harm for us.

---

<div class="post-metadata">

**Author:** ![cryptoexmachina](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cryptoexmachina](https://gov.goldfinch.finance/u/cryptoexmachina)\
**Post date:** [June 1, 2022, 3:01am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/11 "2022-06-01T03:01:47Z")

</div>

I also support this update, especially to align with the purpose of honest distributed governance. Equally. It’s a “yes” for me!

---

<div class="post-metadata">

**Author:** ![mans9841](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@mans9841](https://gov.goldfinch.finance/u/mans9841)\
**Post date:** [June 7, 2022, 12:20pm UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/12 "2022-06-07T12:20:06Z")

</div>

Update:

Council has approved the proposal.

---

<div class="post-metadata">

**Author:** ![ihorprutian](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@ihorprutian](https://gov.goldfinch.finance/u/ihorprutian)\
**Post date:** [June 9, 2022, 12:47am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/13 "2022-06-09T00:47:54Z")

</div>

Agree with benefits. My vote is YES

---

<div class="post-metadata">

**Author:** ![ivant](https://yyz1.discourse-cdn.com/flex035/user_avatar/gov.goldfinch.finance/ivant/32/122_2.png) [@ivant](https://gov.goldfinch.finance/u/ivant)\
**Post date:** [June 9, 2022, 12:47am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/14 "2022-06-09T00:47:57Z")

</div>

I agree. My vote is yes.

---

<div class="post-metadata">

**Author:** ![kykim](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@kykim](https://gov.goldfinch.finance/u/kykim)\
**Post date:** [June 9, 2022, 11:12am UTC](https://gov.goldfinch.finance/t/gip-12-compensate-users-who-received-fewer-gfi-rewards-due-to-stakingrewards-bug/968/15 "2022-06-09T11:12:21Z")

</div>

Vote for yes! It is right.
