Skip to content

v3.0.0: Certik recommendations round 3 (#8)

Choose a tag to compare

@animocabrands animocabrands released this 03 Jul 03:35
· 312 commits to master since this release
58445ee

New features

  • Added addRewardsForPeriods() function, which initializes or adds reward amounts for the specified period range. This will perform a transfer operation to fund the contract with the added rewards amount when called.
  • Added contract interface IWhitelistedNftContract to define the API for the whitelisted contract used for NFT transfer operations when unstaking.

Breaking changes

  • Removed setRewardsForPeriods() function.
  • Funding the contract rewards no longer occurs when calling the start() function. Instead, this happens whenever addRewardsForPeriods() is called.
  • Removed disabled state variable, for representing the contract enabled state, and replaced with enabled.
  • Renamed RewardsScheduled event to RewardsAdded.
  • Renamed totalPrizePool state variable to totalRewardsPool.