Medium Blockchain Developer questions
126 questions · 10 points each for a correct first answer.
- 1.Spot the reentrancy bugsecurity, reentrancymedium
- 2.Using tx.origin for authsecurity, access-controlmedium
- 3.Packing storage variablesgas, soliditymedium
- 4.Custom errorssolidity, gasmedium
- 5.Upgrading a proxy safelyupgradeability, securitymedium
- 6.Front-running a swapmev, defimedium
- 7.Fuzz tests in Foundrytesting, foundrymedium
- 8.Overflow in Solidity 0.8solidity, securitymedium
- 9.Base fee and priority feeevm-fundamentals, gas-optimisationmedium
- 10.Predicting a CREATE2 addressevm-fundamentalsmedium
- 11.Refunding outbid bidderssmart-contract-security, soliditymedium
- 12.Safer ownership transfersmart-contract-security, openzeppelinmedium
- 13.Tokens that return nothingtoken-standards, openzeppelinmedium
- 14.Fee-on-transfer token depositstoken-standards, smart-contract-securitymedium
- 15.EIP-712 domain separatorcryptography, smart-contract-securitymedium
- 16.Approving with a signaturetoken-standards, cryptographymedium
- 17.Unchecked ecrecovercryptography, smart-contract-securitymedium
- 18.expectRevert in the wrong placetesting-and-fuzzing, foundrymedium
- 19.Testing against real protocolstesting-and-fuzzing, foundrymedium
- 20.Invariant teststesting-and-fuzzing, foundrymedium
- 21.What Slither is good forsmart-contract-security, slithermedium
- 22.Transient storage locksgas-optimisation, evm-fundamentalsmedium
- 23.Blobs and rollup feeslayer-2, evm-fundamentalsmedium
- 24.Reading vs writing with viemdapp-frontend, viemmedium
- 25.When to show "payment received"dapp-frontend, blockchain-fundamentalsmedium
- 26.Showing a user's historydapp-frontend, the-graphmedium
- 27.Chain ID in transactionscryptography, blockchain-fundamentalsmedium
- 28.Reset that does not resetsoliditymedium
- 29.UUPS vs transparent proxyupgradeability, openzeppelinmedium
- 30.Constructors behind a proxyupgradeability, openzeppelinmedium
- 31.Unlimited token approvalstoken-standards, smart-contract-securitymedium
- 32.Random winners on chainsmart-contract-securitymedium
- 33.SELFDESTRUCT after Dencunevm-fundamentalsmedium
- 34.Roles instead of one ownersmart-contract-security, openzeppelinmedium
- 35.Working out a transfer feeblockchain-fundamentals, gasmedium
- 36.Sending 1.5 USDC in base unitsblockchain-fundamentals, erc20medium
- 37.Choosing slippage toleranceblockchain-fundamentals, defi, mevmedium
- 38.Computing a health factorblockchain-fundamentals, defi, lendingmedium
- 39.Multiple browser wallets fightingblockchain-fundamentals, dapp-frontend, walletsmedium
- 40.What an L2 sequencer doesblockchain-fundamentals, layer-2medium
- 41.How an upgradeable proxy worksblockchain-fundamentals, smart-contractsmedium
- 42.Speeding up a stuck transactionblockchain-fundamentals, transactionsmedium
- 43.Later transactions all stuckblockchain-fundamentals, transactionsmedium
- 44.Shares minted by an ERC-4626 vaultblockchain-fundamentals, defimedium
- 45.Loading 40 token balances fastblockchain-fundamentals, dapp-frontendmedium
- 46.Showing an ENS name safelyblockchain-fundamentals, dapp-frontendmedium
- 47.When the RPC provider goes downblockchain-fundamentals, dapp-frontendmedium
- 48.Market cap vs fully diluted valueblockchain-fundamentals, tokenomicsmedium
- 49.APR vs APYblockchain-fundamentals, defimedium
- 50.A positive funding rateblockchain-fundamentals, defimedium
- 51.How far a 10x position can fallblockchain-fundamentals, defimedium
- 52.Using a pull-based oracleblockchain-fundamentals, oraclesmedium
- 53.Same seed, different addressblockchain-fundamentals, walletsmedium
- 54.Losing precision with Numberblockchain-fundamentals, dapp-frontendmedium
- 55.Tokens vested after 18 monthsblockchain-fundamentals, tokenomicsmedium
- 56.Fee earned on a swapblockchain-fundamentals, defimedium
- 57.Why algorithmic stablecoins can collapseblockchain-fundamentals, stablecoinsmedium
- 58."Cannot estimate gas" before sendingblockchain-fundamentals, dapp-frontend, gasmedium
- 59.Filtering events by userblockchain-fundamentals, smart-contractsmedium
- 60.Querying a protocol's historyblockchain-fundamentals, dapp-frontendmedium
- 61.Asking the wallet to switch networkblockchain-fundamentals, dapp-frontend, walletsmedium
- 62.Effective gas price with a fee capblockchain-fundamentals, gasmedium
- 63.Where Solana keeps program stateblockchain-fundamentals, solanamedium
- 64.Validium vs rollupblockchain-fundamentals, layer-2medium
- 65.The extra risk of restakingblockchain-fundamentals, stakingmedium
- 66.Blind signing on a hardware walletblockchain-fundamentals, wallets, securitymedium
- 67.stETH vs wstETHblockchain-fundamentals, staking, defimedium
- 68.Why governance uses a timelockblockchain-fundamentals, governancemedium
- 69.A transaction that was replacedblockchain-fundamentals, dapp-frontend, transactionsmedium
- 70.Building Sign-In with Ethereumblockchain-fundamentals, wallets, securitymedium
- 71.Balance not updating after a swapblockchain-fundamentals, dapp-frontendmedium
- 72.Reading a balance from last yearblockchain-fundamentals, dapp-frontendmedium
- 73.A transfer fee in rupeesblockchain-fundamentals, gasmedium
- 74.An implementation nobody initialisedsmart-contract-security, proxies, upgradeabilitymedium
- 75.Reordering variables in an upgradesmart-contract-security, proxies, upgradeabilitymedium
- 76.A signed voucher used twicesmart-contract-security, signaturesmedium
- 77.Lowering an allowance Bob can seesmart-contract-security, erc20, mevmedium
- 78.A swap with no minimum outputsmart-contract-security, mev, defimedium
- 79.A swap that executes much latersmart-contract-security, defi, mevmedium
- 80.USDC payout loop revertssmart-contract-security, tokens, denial-of-servicemedium
- 81.Rebasing tokens in a vaultsmart-contract-security, tokensmedium
- 82.Assuming 18 decimalssmart-contract-security, tokens, arithmeticmedium
- 83.Casting uint256 to uint96smart-contract-security, arithmeticmedium
- 84.An unchecked subtractionsmart-contract-security, arithmeticmedium
- 85.Hiding a trade from botssmart-contract-security, mevmedium
- 86.Mixing oracle and token decimalssmart-contract-security, oracles, arithmeticmedium
- 87.approve reverts for USDTsmart-contract-security, tokens, erc20medium
- 88.Adding a variable to a base contractsmart-contract-security, upgradeabilitymedium
- 89.Two arrays of different lengthssmart-contract-security, input-validationmedium
- 90.Hiding a 4-digit code with a hashsmart-contract-security, cryptographymedium
- 91.A signature that leaves out a fieldsmart-contract-security, signaturesmedium
- 92.How much to trust block.timestampsmart-contract-security, timemedium
- 93.Finding out about an attacksmart-contract-security, incident-response, monitoringmedium
- 94.An initialize function without a guardsmart-contract-security, upgradeability, access-controlmedium
- 95.Signatures from smart walletssmart-contract-security, signatures, account-abstractionmedium
- 96.What formal verification provessmart-contract-security, testing, formal-verificationmedium
- 97.An exploit is happening nowsmart-contract-security, incident-responsemedium
- 98.Anyone can grow a listsmart-contract-security, denial-of-servicemedium
- 99.A signed order with no expirysmart-contract-security, signaturesmedium
- 100.Who holds DEFAULT_ADMIN_ROLEsmart-contract-security, access-controlmedium
- 101.Checking an upgrade before it shipssmart-contract-security, upgradeability, toolingmedium
- 102.Casting a negative pricesmart-contract-security, oracles, arithmeticmedium
- 103.A token you can buy but not sellsmart-contract-security, centralization-risk, tokensmedium
- 104.Address poisoningsmart-contract-security, phishing, walletsmedium
- 105.An NFT stuck in a contractsmart-contract-security, nftmedium
- 106.A deposit of a token that does not existsmart-contract-security, tokens, input-validationmedium
- 107.A burn function with a from parametersmart-contract-security, access-controlmedium
- 108.What unchecked doessolidity, gas, arithmeticmedium
- 109.transfer() fails for a smart walletsolidity, eth-transfersmedium
- 110.Ignoring a low-level call resultsolidity, eth-transfersmedium
- 111.Minimum gas for a transactionsolidity, gasmedium
- 112.Reading the same slot twicesolidity, gasmedium
- 113.Cost of a new storage valuesolidity, gas, storagemedium
- 114.Contract too large to deploysolidity, deploymentmedium
- 115.msg.sender inside delegatecallsolidity, delegatecallmedium
- 116.Relying on the contract balancesolidity, eth-transfers, securitymedium
- 117.What try/catch can wrapsolidity, error-handlingmedium
- 118.An update that does not sticksolidity, storagemedium
- 119.Storing history cheaplysolidity, gas, eventsmedium
- 120.Computing a fee in basis pointssolidity, arithmetic, tokensmedium
- 121.Removing an item from an arraysolidity, data-structures, gasmedium
- 122.Length of a rupee stringsolidity, typesmedium
- 123.Testing a 7-day locksolidity, foundry, testingmedium
- 124.Catching gas regressionssolidity, foundry, gasmedium
- 125.Address of a contract made with newsolidity, deploymentmedium
- 126.Indexed event parameterssolidity, eventsmedium