0x230d31EEC85F4063a405B0F95bdE509C0d0A8b5D
Brock
brocke.eth
EntriesCollection
avatar

Brock

Brock

brocke.eth
Chief Architect @ Nascent
EntriesCollection
Subscribe to Brock
Receive new entries directly to your inbox.
Card Header

Using Foundry to give yourself $1bn

February 9th, 2022
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.
Publisher Avatar Brock
Brock
0x230d