avatar

Brock

Brock

Chief Architect @ Nascent
Subscribe to Brock
Receive the latest updates directly to your inbox.
Card Header

Using Foundry to give yourself $1bn

Publisher
Brock
February 09
Okay, okay, so you won’t technically become a billionaire from this method (sorry for the clickbait). You will be a pretend billionaire though. And hopefully, this post helps you develop a sick DeFi app that takes the world by storm that takes you a step closer to actually become one. This post outlines how to use forge-std to improve your experience using mainnet forks and existing protocols & tokens. Using forge-std, we can remove the need of performing a swap or impersonating an account to obtain arbitrary tokens - in just 3 lines of code. Even if you never write mainnet fork tests, you will find value in this post as writing token balances is just one application of the tools in the stdlib.