Defi Hack CTF Hints & Local Hardhat Implementation

Toshii
Aug 23, 2022

Defi Hack is a set of solidity smart contract CTF challenges. I’ve decided to implement them using Hardhat+Typescript to make completing the challenges easier for others. Check out the repo here. Hints below for each level if you’re stuck and want a nudge.

Hints

  1. May The Force Be With You: Looks like MiniMeToken doesn’t implement the ERC20 standard.
  2. DiscoLP: Comment says depositToken(..) only accepts JIMBO/JAMBO tokens.
  3. P2PSwapper: What’s the default value for a mapping(x => uint)?
  4. FakerDAO: Looks like price() is a function of token reserves in the pair when it’s called.
  5. Main Khinkal Chef: I’d sure be nice to take control of MainChef.

Reach out on twitter.

--

--