This video explains how code a Solidity smart contract that will lend ERC20 token to Compound and earn interest.
Code 0:50
Test 6:41
Demo on Ganache 8:59
https://github.com/t4sk/defi-by-example
https://compound.finance/docs
#DeFi #Compound #SmartContract #Solidity #Ethereum #スマートコントラクト
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
...
https://www.youtube.com/watch?v=dHKLcbqFzvE
Explanation of how the Tornado cash governance contract was hacked recently and how to deploy the same contract at the same address
0:00 - Intro
2:00 - How to deploy different contracts at the same address
3:27 - How contract address is computed
5:52 - How to reset contract nonce
Notes
https://github.com/stakewithus/notes
Code
https://solidity-by-example.org/hacks/deploy-different-contracts-same-address/
Take a course
https://www.smartcontract.engineer/
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
https://remix.ethereum.org
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=whjRc4H-rAc
Example of how mappings are stored in EVM storage
Code
https://solidity-by-example.org/evm/storage/
Take a course
https://www.smartcontract.engineer/
Remix
https://remix.ethereum.org
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=Ha0HE-uwp0M
This video explains how to code a Solidity contract capable of deploying any contract.
0:57 - Function deploy
4:52 - Function execute
5:16 - Helper contract to get contract bytecode
6:26 - Deploy Proxy and Helper
6:36 - Deploy TestContract1
7:57 - Execute TestContract1.setOwner
9:31 - Deploy TestContrac2
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
https://remix.ethereum.org
Code
https://solidity-by-example.org/app/deploy-any-contract/
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=YbRGTF1OGdM
Examples of how to fuzz timestamps and caller in Echidna
#Solidity #SmartContract #Ethereum #スマートコントラクト
https://solidity-by-example.org/tests/echidna
https://github.com/crytic/echidna
https://github.com/crytic/echidna/blob/master/examples/solidity/basic/default.yaml
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=dpK9a4WRXtA
Let's learn about DeFi. This video explains how to trade an ERC20 token for another using a decentralized exchange called Uniswap.
Overview 0:20
Solidity code 1:18
Test 4:46
Run test using Ganache 7:25
#DeFi #Uniswap #SmartContract #Ethereum
Code: https://github.com/t4sk/defi-by-example
# References
Uniswap https://app.uniswap.org/
Etherscan https://etherscan.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=qB2Ulx201wY
Declare function as payable to enable the function to receive ETH.
Declare an address as payable to enable the address to send ETH.
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
https://remix.ethereum.org
Code
https://solidity-by-example.org/payable/
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=A4VMhRIWSs0