Farming Smart Contract
Generic farming smart contract.
Stake one ESDT and earn another (or the same) based on a constant yield (amount of rewards per seconds, shared among all stakers).
Greatly inspired by Solidity by Example
Source: https://solidity-by-example.org/defi/staking-rewards/ Source: https://github.com/Synthetixio/synthetix/blob/develop/contracts/StakingRewards.sol