# FLIP-GOV-2: Enable Automatic Staking Rewards

**URL:** <https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438>\
**Category:** FLIPs\
**Created:** [July 18, 2022, 9:20pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438 "2022-07-18T21:20:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![okjose](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@okjose](https://forum.flow.com/u/okjose)\
**Post date:** [July 18, 2022, 9:20pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/1 "2022-07-18T21:20:34Z")

</div>

| Key | Value |
| --- | --- |
| Status | Draft |
| Flip | GOV-2 |
| Editor | @okjose |
| Author | @pgpg |
| FLIP Document | [https://github.com/onflow/flips/blob/main/governance/20220718-enable-automatic-rewards.md](https://github.com/onflow/flips/blob/main/governance/20220718-enable-automatic-rewards.md) |

# Abstract

Enable core contract feature to automatically calculate and payout rewards during system transaction at end of each epoch.

---

<div class="post-metadata">

**Author:** ![pgpg](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pgpg](https://forum.flow.com/u/pgpg)\
**Post date:** [July 18, 2022, 9:23pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/2 "2022-07-18T21:23:16Z")

</div>

Thanks @okjose!

I wanted to get this proposal out in the wild ASAP because enabling automatic payouts helps to reduce the dependence on weekly service account transactions.

Looking forward to the response!

---

<div class="post-metadata">

**Author:** ![Redallica](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/redallica/32/982_2.png) [@Redallica](https://forum.flow.com/u/Redallica)\
**Post date:** [July 19, 2022, 10:06am UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/3 "2022-07-19T10:06:06Z")

</div>

I don’t see how we could be against this proposal

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [July 19, 2022, 5:49pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/4 "2022-07-19T17:49:32Z")

</div>

I am definitely on board! The logic has been there for a while now and it mostly seems to be working fine on testnet(besides an issue because the increase rate was wrong. 😬), so lets do it!

---

<div class="post-metadata">

**Author:** ![pgpg](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pgpg](https://forum.flow.com/u/pgpg)\
**Post date:** [July 19, 2022, 8:20pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/5 "2022-07-19T20:20:23Z")

</div>

I wouldn’t expect anyone to be against this proposal, but I do want to make sure there’s space for feedback if there’s something which is important to someone in the community.

---

<div class="post-metadata">

**Author:** ![pgpg](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pgpg](https://forum.flow.com/u/pgpg)\
**Post date:** [July 20, 2022, 11:04pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/6 "2022-07-20T23:04:23Z")

</div>

Today’s service account signing party included the transaction to set the per-epoch reward rate!

I’ll submit a PR with that update and keep this marked as proposed since the later steps are more important for us to align on.

Update: [https://github.com/onflow/flips/pull/6](https://github.com/onflow/flips/pull/6)

---

<div class="post-metadata">

**Author:** ![pgpg](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pgpg](https://forum.flow.com/u/pgpg)\
**Post date:** [July 27, 2022, 6:41pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/8 "2022-07-27T18:41:52Z")

</div>

Change to Automatic Rewards Payouts rollout:While putting together the process for manually testing automatic rewards payouts we came to the conclusion that the path we had sketched out will not work. This is because of how the code is written to assume that payment calculations & payouts occur at the same time.Because of this we believe the appropriate action is to modify the testing strategy as follows:

- Perform normal wednesday rewards payouts.
- Testnet will be updated on wendesday via a Spork, giving us the ability to watch the automatic rewards payments.
- We can then use the same code as the contract to **calculate** the rewards payouts, and compare them to the existing process.
- Assuming all these items correspond and there are no issues, we can enable automatic rewards payouts to begin on August 10th.

I’ll update the FLIP to reflect this!

---

<div class="post-metadata">

**Author:** ![pgpg](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pgpg](https://forum.flow.com/u/pgpg)\
**Post date:** [August 1, 2022, 6:30pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/9 "2022-08-01T18:30:22Z")

</div>

Last week during the automatic rewards enablement on Mainnet, some bugs were discovered relating to the calculation of the total reward amount being emitted in a subsequent Epoch.

Due to this, we suggest waiting until the following week of august to enable rewards on mainnet. This will allow the smart contract team to integrate and test the bug fix.

---

<div class="post-metadata">

**Author:** ![dryrunner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/dryrunner/32/641_2.png) [@dryrunner](https://forum.flow.com/u/dryrunner)\
**Post date:** [December 15, 2022, 10:13am UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/10 "2022-12-15T10:13:27Z")

</div>

Can we get any precised estimation when this gonna happen?

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [February 14, 2023, 2:14pm UTC](https://forum.flow.com/t/flip-gov-2-enable-automatic-staking-rewards/3438/11 "2023-02-14T14:14:19Z")

</div>

We are working on this this week actually and will likely enable it soon assuming we don’t find any issues
