Aapsi Khairaaapsi.hashnode.dev·Apr 25, 2024What is Address(0) or Null Address in Solidity?Introduction In the exciting realm of Ethereum and smart contracts, the concept of Address(0) stands as a fascinating enigma, often referred to as the “null address” or “zero address.” But what exactly is Address(0), and why does it hold such a uniqu...DiscussSolidity
Zealynx Securityzealynx.hashnode.dev·Apr 25, 2024Prevent Front-Running on ERC20 Smart ContractsWhat will you find here? This article explores the critical issue of front-running vulnerabilities in ERC20 tokens on the Ethereum blockchain, focusing on how these security gaps can be exploited through the token allowance mechanism. We provide a de...Discuss·107 readsSmart Contracts
Victoria Adedayovictoriaadedayo.hashnode.dev·Apr 23, 2024Multicall: The Key to Gas OptimizationA multicall contract 📞 is a smart contract that accepts multiple function calls as inputs and executes them together. A developer can use the multicall contract as a proxy to call functions in other contracts. A proxy in this case, refers to the mu...DiscussSmart Contracts
zarazyanazarazyana.hashnode.dev·Apr 16, 2024How Does Arbitrum Improve Transaction Throughput on Ethereum?In recent years, the Ethereum network has faced scalability challenges due to its limited transaction throughput. As the demand for decentralized applications (dApps) and smart contracts continues to grow, addressing these scalability issues becomes ...Discussethereumlaye2
Pierre E.blog.pedrojok.com·Apr 15, 2024Damn Vulnerable DeFi | 5 - The RewarderGoals In the The Rewarder challenge, we have to claim all the rewards from the next distribution round, despite having no DVT tokens. A hint points us at a new flashloan pool... See the contracts The Contracts // SPDX-License-Identifier: MIT pragma ...DiscussDamn Vulnerable DeFiethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 14, 2024Damn Vulnerable DeFi | 4 - Side EntranceGoals In the Side Entrance challenge, we have to steal all the ETH from the pool. Flashloans are free, and we start with 1 ETH. See the contracts The Contracts // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "solady/src/utils/SafeTra...DiscussDamn Vulnerable DeFiethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 13, 2024Damn Vulnerable DeFi | 3 - TrusterGoals In the Truster challenge, we have to drain 1 million DVT tokens from the flash loan pool. So pretty high stakes! Let's see how to achieve that. See the contracts The Contracts // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@o...DiscussDamn Vulnerable DeFiethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 12, 2024Damn Vulnerable DeFi | 2 - Naive ReceiverGoals In the Naive Receiver challenge, we have to drain the user's contract (the receiver address in hardhat) in a single transaction. Note that we do not need to drain the pool, just the 10 ether from the receiver. See the contracts The Contracts /...DiscussDamn Vulnerable DeFiethereum security
Pierre E.blog.pedrojok.com·Apr 12, 2024The Ethernaut CTF Solutions | 31 - StakeGoals The Contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Stake { uint256 public totalStaked; mapping(address => uint256) public UserStake; mapping(address => bool) public Stakers; address public WETH; ...DiscussThe Ethernautethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 11, 2024The Ethernaut CTF Solutions | 30 - Higher OrderGoals The Contract pragma solidity 0.6.12; contract HigherOrder { address public commander; uint256 public treasury; function registerTreasury(uint8) public { assembly { sstore(treasury_slot, calldataload(4)) ...DiscussThe Ethernautethereum smart contracts