Open clemlak opened 2 years ago
Done in https://github.com/primitivefinance/rmm-examples/pull/4, tests are missing though.
This implementation was mainly based on the MasterChef contract, however, the decision has been taken to rewrite from scratch a new (better) contract. New implementation is currently in progress in https://github.com/primitivefinance/rmm-examples/tree/feat/new-primitivechef
The famous MasterChef contract allows users to stake liquidity tokens to farm a reward token. The incentive here is to reward the users providing liquidity to a protocol.
The original contract only supports ERC20 tokens but it would be interesting to update it to add ERC1155 tokens support. This would make possible the creation of farms using liquidity tokens from our PrimitiveManager contract.