This is the canonical staking contract designed for Forbitswap V2.
Note that the v1.0.0 release is susceptible to a high-difficulty, never-exploited vulnerability. For this reason, please use the v1.0.2 release, deployed and verified on Etherscan on all networks at the address:
Development and Testing
$ yarn $ yarn test
# if gas snapshots need to be updated $ UPDATE_SNAPSHOT=1 yarn test
$ yarn size-contracts