Never store sensitive data in a private state variable. Private state variable are not accessible by other contracts, but since everything on the blockchain is public data, we are available to get that private data. Let's see how.
What is long and short? How do you do it on Compound with Solidity? This video explains it all.
Long 0:24
Short 2:57
Code 5:08
Test 10:45
Ganache 11:45
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=pl6iNIL72kY
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
Part 1 explanation of computeSwapStep in Uniswap V3
0:00 - Intro
0:30 - Inputs and outputs
2:21 - Zero for one
4:51 - Calculate max amount in or max amount out
12:13 - Calculate amount in and amount out
16:47 - Cap amount out
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=52EXNJVm2Yw
Use results data type in Sway to handle errors.
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=yG9EmIzJAYM
How to calculate price of ETH from sqrtPriceX96 in Uniswap V3 USDC / ETH pool.
0:00 - Intro
1:09 - What is P?
1:39 - Example price of USDC in terms of ETH
4:21 - Example price of ETH in terms of USDC
6:28 - Price of ETH from sqrtPriceX96
7:40 - Example price of ETH from sqrtPriceX96
Uniswap USDC / ETH pool
https://etherscan.io/address/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8#readContract
Notes
https://github.com/stakewithus/notes
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
#Solidity #SmartContract #Ethereum #スマートコントラクト
...
https://www.youtube.com/watch?v=hKhdQl126Ys
We will start building a web application, using React and Typescript, that can interact with the multi-sig wallet smart contract written in Solidity. In this video I will show you a demo of the app and then explain how the code is organized.
Demo: https://multi-sig.netlify.app/
Code: https://github.com/t4sk/multi-sig-wallet
Videos that I highly recommend to learn about
React
https://www.youtube.com/playlist?list=PLN3n1USn4xlntqksY83W3997mmQPrUmqM
React Hooks
https://www.youtube.com/playlist?list=PLN3n1USn4xlmyw3ebYuZmGp60mcENitdM
React using Typescript|
https://www.youtube.com/watch?v=Z5iWr6Srsj8
Typescript
https://www.youtube.com/watch?v=rAy_3SIqT-E
Typescript Generics
https://www.youtube.com/watch?v=nViEqpgwxHE
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.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=Tcu6WiD_YC0
In this video I will explain what a mutli-sig wallet is and show you how to write one in Solidity. Some features will be left as an exercise for you to complete.
Exercise: https://smartcontractprogrammer.com/courses/multi-sig-wallet/
Code: https://solidity-by-example.org/0.5/multi-sig-wallet/
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.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=Dh7r6Ze-0Bs