Aapsi Khairaaapsi.hashnode.dev·14 hours agoWhat 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·21 hours agoPrevent 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·36 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 12, 2024The Ethernaut CTF Solutions | 31 - StakeThe 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; constr...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
Pierre E.blog.pedrojok.com·Apr 11, 2024Damn Vulnerable DeFi | 1 - UnstoppableDamn Vulnerable DeFi challenges are a bit different from the Ethernaut challenges. They are focused on DeFi, as the name suggests, but they are also a bit more realistic as they involve a lot more contracts and inheritances, while their Ethernaut hom...DiscussDamn Vulnerable DeFiethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 10, 2024The Ethernaut CTF Solutions | 29 - SwitchGoals The Contract This one is a really fun one to finish this series with a super simple goal: Turn the switch on. Unlike the previous Gate Keeper Three, the Switch challenge is far from easy, especially if you are not familiar with calldata and me...DiscussThe Ethernautethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 9, 2024The Ethernaut CTF Solutions | 28 - Gate Keeper ThreeGoals The Contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract SimpleTrick { GatekeeperThree public target; address public trick; uint private password = block.timestamp; constructor(address payable _target) { ...DiscussThe Ethernautethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 8, 2024The Ethernaut CTF Solutions | 27 - Good SamaritanGoals The Contract A really fun challenge, with a simple goal and a pretty recent vulnerability introduced that we will need to be aware of from now on! // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import {Address} from "../helpe...DiscussThe Ethernautethereum smart contracts