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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response