-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liquidity farming contract #3
Comments
We are building Cheddar - a NEAR ecosystem wide farming network. |
The idea to have a bit generic farm contract, that allows for anyone to create a farm for specific pool in Ref (or in other financial contracts with LP tokens) and receive reward from it. Rough interaction:
UI then when adding liquidity, attaches extra action to call |
I think the farming should be handled outside of the exchange contract - and each farming should be an independent contract. It gives more possibilities, and avoids the conflict of interest, letting users to decide as they want without involving a governance. |
Yep, this is an external contract that LP tokens get deposited. Is there a Cheddar design somewhere described timeline? |
Liquidity farm is initialized with some amount of token to release, period of time and set of LP tokens that are supported.
On LP tokens transfer to this contract, it starts to calculate the portion of reward allocated to these holders.
Later the LP tokens can be withdrawn and also the reward can be claimed.
Reference
The text was updated successfully, but these errors were encountered: