Yield Farming Concepts
📖 Scenario: You want to understand how yield farming works by simulating a simple yield farming scenario in Python. Yield farming means you deposit tokens into a pool and earn rewards based on your deposit and a reward rate.
🎯 Goal: Build a small program that calculates the rewards earned by different users based on their deposits and a fixed reward rate.
📋 What You'll Learn
Create a dictionary with user names and their deposited token amounts
Create a variable for the reward rate (percentage)
Calculate the rewards for each user using a dictionary comprehension
Print the rewards dictionary showing each user and their earned rewards
💡 Why This Matters
🌍 Real World
Yield farming is a popular way in blockchain to earn passive income by depositing tokens and earning rewards. This project simulates the basic math behind it.
💼 Career
Understanding yield farming concepts and how to manipulate data structures is useful for blockchain developers and analysts working with decentralized finance (DeFi) applications.
Progress0 / 4 steps