Learn how to use arrays in Solidity.
Code: https://solidity-by-example.org/array/
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=Vx0AoK7Vauw
Damn Vulnerable DeFi is a CTF challenge illustrating hacks in DeFi. In this video I explain how to beat the 8th challenge - puppet.
0:04 - Setup and challenge
0:31 - Code
1:43 - Solution
#Solidity #SmartContract #Ethereum #CTF #DeFi #スマートコントラクト
CTF
https://www.damnvulnerabledefi.xyz/
https://github.com/Uniswap/v1-contracts/blob/master/contracts/uniswap_exchange.vy
Code with solutions
https://github.com/t4sk/damn-vulnerable-defi
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=2vmFPJ_6E7g
How to calculate impermanent loss on constant product automated market maker like Uniswap V2
0:00 - Intro
1:04 - Definitions
3:05 - Rewrite x and y in terms of L and P
6:44 - Derive formula for impermanent loss
Notes
https://github.com/t4sk/notes
#Solidity #SmartContract #Ethereum #スマートコントラクト
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=jIB4ne9jU04
Identity is an enum for address and contract id in Sway
Code
https://github.com/t4sk/hello-sway
Playground
https://sway-playground.org/
Sway
https://fuellabs.github.io/sway
Fuel
https://www.fuel.network/
Take a course
https://www.smartcontract.engineer/
#Sway #SmartContract #Fuel #スマートコントラクト
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
...
https://www.youtube.com/watch?v=mQVXb8HeYaY
Learn about the data types available in Vyper. I will explain value types, which include boolean, in128, uint128, address, bytes32, bytes array and strings.
#Vyper #DataTypes #ValueTypes #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.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=ohScP4cRqnk
Contract address can be known before the contract is deployed. But the default way the contract address is computed is not easy to use. Create2 is a better way to find out what the contract's address is going to be before the contract is deployed.
Code - 0:56
Contract bytecode 1:52
How to compute contract address for create2 3:05
Deploy with create2 4:46
Remix demo 7:04
https://solidity-by-example.org/app/create2/
https://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed
#Solidity #Create2 #SmartContract #Solidity #Ethereum #スマートコントラクト
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=-XT2YCQGVEQ
Calculate real amounts in concentrated liquidity given liquidity and price ranges
Code
https://github.com/t4sk/clamm
Take a course
https://www.smartcontract.engineer/
#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=CS9hMKaVNLY