DeFi users deposit their crypto assets earning a high rate of return. DeFi yield farming compounds returns by utilizing leverage to gain additional exposure to various crypto assets collateralized with stablecoins.

Julien Klepatch shared a small Solidity tutorial on how to get started, in his Youtube channel Eat the Blocks.

You can check the source code in the Github repository.

Latest commits show that Julien is already working on the next step, adding Flash Loans.