Sipher liquidity mining utilizes the following smart contracts
AbstractRewards.sol is a generic contract for distributing pro-rata rewards amongst an arbitrary number of "shareholders", where the inheriting contract defines what a shareholder is and how many shares they have. This contract is a fork with minor modifications of the Indexed Finance contract.
BasePool.sol is a generic ERC20 compatible contract which inherits from the ERC20Votes contract from OpenZeppelin and the
AbstractRewards.sol contract and adds external functions for distributing and claiming rewards. Additionally it hooks into the internal
mint hooks to properly track rewards when account balances are changing.
TokenSaver.sol is a contract which allows a whitelisted address to transfer out any token out of a contract inheriting from it in case of emergencies or misplaced tokens.
TimeLockPool.sol Inherits from
TokenSaver.sol. Adds external functions to deposit tokens and in return receive
TimeLockPool shares. The bonus for longer locking durations is configurable.
TimeLockNonTransferablePool.sol inherits from
TimeLockPool.sol and removes transferability of the pool shares.
StakingManager.sol manages the distribution to staking pools. It exposes external functions which allow pools to be added and removed. It also allows the distribution per second to be set and the share each pool will receive of those rewards.