Skip to content
RED SAGSkills
hardBlockchain Developer interview question

You are designing a new lending protocol. What are the biggest security risks and how do you address them?

What the interviewer wants to hear

  • Oracle manipulation and stale prices
  • Liquidation design and bad debt during fast price moves
  • Reentrancy and unusual token behaviour
  • Access control, upgrade and governance risk
  • Rounding and precision errors
  • Testing, audits, monitoring, caps and pause mechanisms

Model answer

The biggest risk is pricing. I use robust oracles like Chainlink with staleness and deviation checks, never single-pool spot prices, because flash loans make manipulation cheap. Next is solvency: liquidations must work even when prices move fast or gas is high, so I set conservative collateral factors, liquidation bonuses that attract liquidators, and supply and borrow caps per asset, especially for illiquid tokens, to limit bad debt. I follow checks-effects-interactions with reentrancy guards and treat every token as potentially strange: fee-on-transfer, rebasing, callbacks or missing return values, often by allow-listing assets. Rounding always favours the protocol, and I watch for share inflation attacks. Admin and upgrade powers sit behind a multisig and timelock with limited scopes. Testing includes invariant fuzzing, such as total borrows never exceeding deposits, plus multiple audits and a bug bounty. After launch, real-time monitoring and a guardian pause help contain incidents.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Blockchain Developer questions