Coding task · Blockchain and Web3 course · Module 10: DeFi & Staking

Staking Rewards

Calculate the rewards from staking LP tokens

Task

Complete the calculateRewards function: