Skip to content

Commit

Permalink
Merge pull request #1 from shapeshift/chore/readme
Browse files Browse the repository at this point in the history
chore: adds some notes to future selfs
  • Loading branch information
0xApotheosis authored Sep 23, 2024
2 parents 578af88 + 10adfd8 commit 35392f4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
# FOX staking contract (synthetix fork)
# Evergreen 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

> [!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 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.

**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

Expand Down

0 comments on commit 35392f4

Please sign in to comment.