Most Solidity contracts pass their "happy path" tests and fail on edge cases. A malformed token, a reverting oracle, a reentrant callback — what looked safe starts losing funds.
I write the Foundry test suite that catches these issues before mainnet.
What you get:
→ Custom Foundry test files (.t.sol) for your contract
→ Tests covering reentrancy, malicious tokens (return-false / fee-on-transfer / USDT-shape / reverting), access control bypass, price-feed manipulation, replay protection, gas griefing
→ Foundry stateful invariants on critical functions (Standard tier+)
→ A short threat-model summary explaining what each test category defends against
→ Everything runs with `forge test` after delivery
What's not included:
✘ Fixing the bugs the tests surface (separate engagement, happy to quote)
✘ Modifying your production contract code
Why I can do this:
I built and maintain a production-grade open-source non-custodial stablecoin payment gateway with 157 passing tests including an 80-test adversarial suite across 9 files and Foundry stateful invariants asserting custody-zero across 128,000 randomized operations. Same patterns I'd write for you, shaped to your contract.
Send your contract or repo and I'll confirm tier fit in 1 hour.