From e3ed6143e0866f3ceecae3130a978ef2267345d7 Mon Sep 17 00:00:00 2001 From: 0xean <0xean.eth@gmail.com> Date: Mon, 23 Sep 2024 14:40:11 -0400 Subject: [PATCH 1/2] chore: adds some notes to future selfs --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 59e9eb9..de7001f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,29 @@ # FOX staking contract (synthetix fork) +## Mainnet deployment + +- [StakingRewards]https://etherscan.io/address/0xe7e16e2b05440c2e484c5c41ac3e5a4d15da2744) + +### Notes for operation of rewards periods (Attention: multisig signers) + +#### Initial set-up + +*** executing these transactions in sequence is critical *** + +1. Call `setRewardsDistribution` setting the DAO multisig address as the rewards distribution address. +2. Call `setRewardsDuration` with the correct duration for the rewards period in seconds. +3. Transfer FOX to the StakingRewards contract. (NOTE: this step can be done tested with a smaller amount of FOX if desired) +4. Call 'notifyRewardAmount' with the amount of FOX to be distributed over the rewards period duration. This will start the rewards period immediately. + +#### Ongoing operation + +**Starting a new rewards period** - Prior to adding more fox for a new period, be sure that the the previous period has expired AND the correct duration is set. + +**Modifying Rewards Amount** - The amount of rewards can be increased at any time during an active period by sending FOX to the contract and then calling `notifyRewardAmount`. However, be aware that this resets the program period countdown all over again. + +**Changing program duration** - The duration of a rewards period can not be changed during an active rewards period. To modify the duration, the current period must expire and then the duration can be set before starting the next period. + + ## Getting started `nvm use` From 10adfd8fc42645d7a642f34cf3e9a42f90c6c315 Mon Sep 17 00:00:00 2001 From: Apotheosis <97164662+0xApotheosis@users.noreply.github.com> Date: Tue, 24 Sep 2024 06:49:00 +1000 Subject: [PATCH 2/2] chore: readme tweaks --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index de7001f..59f3840 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,28 @@ -# FOX staking contract (synthetix fork) +# Evergreen FOX staking contract (synthetix fork) ## Mainnet deployment -- [StakingRewards]https://etherscan.io/address/0xe7e16e2b05440c2e484c5c41ac3e5a4d15da2744) +- [StakingRewards](https://etherscan.io/address/0xe7e16e2b05440c2e484c5c41ac3e5a4d15da2744) ### Notes for operation of rewards periods (Attention: multisig signers) #### Initial set-up -*** executing these transactions in sequence is critical *** +> [!CAUTION] +> Executing these transactions in sequence is critical. 1. Call `setRewardsDistribution` setting the DAO multisig address as the rewards distribution address. -2. Call `setRewardsDuration` with the correct duration for the rewards period in seconds. -3. Transfer FOX to the StakingRewards contract. (NOTE: this step can be done tested with a smaller amount of FOX if desired) -4. Call 'notifyRewardAmount' with the amount of FOX to be distributed over the rewards period duration. This will start the rewards period immediately. +2. Call `setRewardsDuration` with the correct duration for the rewards period in seconds. +3. Transfer FOX to the StakingRewards contract. (NOTE: this step can be done and tested with a smaller amount of FOX if desired) +4. Call `notifyRewardAmount` with the amount of FOX to be distributed over the rewards period duration. This will start the rewards period immediately. #### Ongoing operation -**Starting a new rewards period** - Prior to adding more fox for a new period, be sure that the the previous period has expired AND the correct duration is set. +**Starting a new rewards period** - Prior to adding more FOX for a new period, be sure that the the previous period has expired AND the correct duration is set. **Modifying Rewards Amount** - The amount of rewards can be increased at any time during an active period by sending FOX to the contract and then calling `notifyRewardAmount`. However, be aware that this resets the program period countdown all over again. -**Changing program duration** - The duration of a rewards period can not be changed during an active rewards period. To modify the duration, the current period must expire and then the duration can be set before starting the next period. - +**Changing program duration** - The duration of a rewards period can not be changed during an active rewards period. To modify the duration, the current period must expire and then the duration can be set before starting the next period. ## Getting started