How to get URL link on X (Twitter) App
1/ There are many ways to attack a smart contract and at some point create a DoS⚡
1/ What delegatecall is? When contract A uses delegatecall to call contract B it means that the contract B code will be executed inside context of the contract A: storage, msg.sender, msg.value, msg.data, etc will be the A’s context.
1/ Let’s see how it works with an example of a simple game 🎲 Players send to the contract 1 token 🪙 the one who deposits the fifth token wins 🏆
1/ An overflow in Solidity occurs when a number is incremented beyond its maximum value. For example, if we have a uint8 with a value of 255 and increment it by 1, it will “reset” and set a value to 0. Remember, the maximum value for uint8 is 255❗
1/ To make it happen, there should be 2 contracts: a vulnerable contract and an attacker’s contract 👺
1/ The Factory will include:
1/ In this example of the Pair smart contract I’ll implement the following methods:
1/ Uniswap smart contract architecture consists of Core and Periphery:
1/ First, upload a collection of images on Pinata, I described it in detail on day 56 of the challenge 🔙
1/ First, prepare the jpeg file and metadata for the NFT. We’ll use Pinata platform for hosting files 🦙 A jpeg is an image we want to deploy as an NFT and a json file is the metadata. So, create an account in pinata.cloud and first upload the image.
1/ Use code from the day 57 of the challenge to create ERC20 tokens 👇
1. Creating an account is simple - you just need to connect your wallet to @zapper_fi
1. @coinbase
1. Software wallet