9

Building Smart Contracts for Staking and Farming

Staking is a type of incentive mechanism for users to gain extra tokens as a reward. As we discussed in the Overview of DeFi applications section in Chapter 1, Introduction to DeFi staking is a generic team that covers all mechanisms that can generate passive income, whereas yield farming is a specific type of staking whose staked tokens are liquidity pool (LP tokens). It encourages liquidity pool growth and stabilizes the price impact for DEX trading. For some DeFi projects, staking has reduced its scope, whose staked tokens are non-LP tokens. By leveraging staking and yield farming, a crypto project can encourage people to buy the token for staking or provide liquidity for it, which will help ...

Get Building Full Stack DeFi Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.