primitivefinance / rmm-examples

GNU General Public License v3.0
10 stars 0 forks source link

Create a MasterChef for liquidity tokens (ERC1155) #2

Open clemlak opened 2 years ago

clemlak commented 2 years ago

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.

clemlak commented 2 years ago

Done in https://github.com/primitivefinance/rmm-examples/pull/4, tests are missing though.

clemlak commented 2 years ago

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