Synthetix Staking Rewards Contract Explained - Part 3 - Code | DeFi
Channel: Smart Contract Programmer
Date: 2021-09-19

This video show how to code a minimal staking rewards contract. Code is a stripped down version of the famous staking rewards contract by Synthetix.

1:31 - stake, withdraw, getRewards
2:54 - updateReward
3:35 - rewardPerToken
4:18 - earned

https://solidity-by-example.org/defi/staking-rewards/
https://github.com/Synthetixio/synthetix/blob/develop/contracts/StakingRewards.sol
https://www.paradigm.xyz/2021/05/liquidity-mining-on-uniswap-v3/

#DeFi #Synthetix #StakingRewards #SmartContract #Solidity #Ethereum  #スマートコントラクト

New to Solidity and Vyper? Take a course
https://www.smartcontract.engineer/

Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Forum https://jiruto.com/SmartContractProgrammer/Smart-Contract-Programmer/discussion
Website: https://smartcontractprogrammer.com