Analysing frontend data fetching patterns - MakerDAO dApp.
Frontend engineering is a minefield when it comes to learning about effective patterns. As part of my personal study, I'm reading real open-source codebases to understand the patterns in the wild. Today I've read the codebase for a decentralised finance (DeFi) dApp called MakerDAO.
How bZX got hacked for $330K (cc: flash loans and Kyber)
bZX was 'hacked' recently, and it's quite interesting as a milestone for decentralized finance. Featuring a $1M flash loan, price manipulation, and on-chain price oracles (Kyber). All on the week after "$1 billion dollars in decentralized finance". Let's dig in!
How to design modular smart contracts in Solidity
In this article, I'll describe how you can modularise your smart contracts using something called the target pattern. Using standard Solidity, you will learn how to rewrite your brittle, tighly-coupled calls to clean modules and separation of concerns, using abi.encodeSelector and target.call(data)
Building the first-ever ZKDAO POC at #ETHParis
Two weekends ago in Paris, we built the first POC of a zero knowledge DAO. Since January I had a fascination with the idea, and after meeting Zac from AZTEC at EthCC, a key component of the solution crystalised. In this post, I'll explain the design considerations and potential implications.