Sign in

DeFi - Test

01.

ERC-4626 exposes both deposit(assets, receiver) and mint(shares, receiver). They ultimately do the same kind of thing, move assets in, mint shares out. Why have both?

02.

Why is it safe for Aave to lend $100M of USDC to anyone, with zero collateral, via flash loans?

03.

Uniswap V3 uses the formula price(tick) = 1.0001 ^ tick to map ticks to prices. The team could have chosen any base. Why 1.0001 specifically and not, say, 1.001 or 1.05 or even arithmetic spacing like price = tick × 0.01?

04.

ETH is at $3,500. You provide V3 liquidity in the range [$2,000, $3,000]. What tokens do you have to deposit?

05.

Suppose two LPs deposit the same amount into the same Uniswap V3 ETH/USDC 0.3% pool with the exact same range [$3,000, $4,000]. Why are their positions still represented as separate NFTs rather than one fungible token?

06.

ERC-2612 permit keeps a separate nonces[owner] mapping in the token contract. Every account already has an Ethereum transaction nonce maintained by the protocol. Why not reuse that?

07.

A developer's permit-based deposit works flawlessly in their Hardhat tests. They deploy to mainnet, and every permit call now fails with the contract's "InvalidSigner" revert. Their frontend builds the EIP-712 domain with chainId: 31337 hardcoded (a value left over from local testing). What's the cleanest fix?