Y2K-Finance/Earthquake — reverse-engineered prompt

Reverse engineered prompt

Build me a working version of the Y2K Earthquake V2 smart contract project for Arbitrum.

I want the repo to feel complete and usable, with the core contracts for a controller, vault factory, rewards factory, token and treasury, plus whatever wiring is needed so vault based markets and rewards can actually be created and managed. Please include sensible deploy scripts, config files, example environment setup, and tests that run on a mainnet fork so I can validate the V2 flow end to end. It should be easy for someone to clone the repo, fill out the env file, install what is needed, run the tests, and deploy.

There are existing Arbitrum contract addresses in the README, so use those as references where helpful, and follow the Earthquake V2 documentation linked there if you need product details. Keep the project organized and production minded, but also friendly for local development. If anything is missing from the repo, look up the current docs online and fill in the gaps in a reasonable way.

Want more depth? Deep Reverse