Flash-Loan Exploit Simulator & Safe-Harbor Planner
ingravity_simulateDeepExploitAndWhitehatBountySimulates flash-loan drain vectors, oracle slot0/reserve exposure, and live on-chain TVL across five EVM chains for a target protocol (protocolName required; poolAddress defaults to Base Aerodrome address when omitted, tvlUsd defaults to 250000). Strictly read-only: reads live RPC liquidity and optional Solidity code to compute exploitImmunityScore and unsigned EIP-5792/EOA Safe-Harbor rescue calldata (90%-95% to optional ownerTreasury, 5%-10% whitehat bounty on rescue only) without transferring funds. Set tier to FULL ($45.00 USDC, default) for flashLoanSimulation and rescue bundle or ESSENTIAL ($9.50 USDC) for vulnerabilitySeverity and score; unpaid calls return isError: true and CRITICAL/HIGH PoCs stay sealed under Anti-Bypass. Use for live pool exploitability and rescue planning; use ingravity_generateMultiContractProtocolDossier for multi-file codebase audits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"protocolName": "<protocolName>"
},
"name": "ingravity_simulateDeepExploitAndWhitehatBounty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Optional Solidity (.sol) contract source code to include static exploit, honeypot, and slot0 manipulation analysis. | |
| tier | No | Billing & output depth: FULL ($45.00 USDC) returns flashLoanSimulation, liveOnChainPoolForensics, and unsigned Safe-Harbor rescue bundle; ESSENTIAL ($9.50 USDC) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts only. | FULL |
| tvlUsd | No | Declared pool TVL in USD; automatically overridden upward if live on-chain RPC TVL exceeds it. | |
| chainId | No | Target EVM chain ID for live RPC bytecode and TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453). | |
| poolAddress | No | Target 42-char EVM pool or vault contract address (0x...) inspected via live RPC on chainId. | 0x420DD381b31aEf6683db6B902084cB0FFECe40Da |
| protocolName | Yes | Target protocol or pool identifier (non-empty string required). | |
| ownerTreasury | No | Optional protocol owner/multisig recipient (0x...) receiving 90%-95% of assets in the generated unsigned Safe-Harbor calldata. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Service classification identifier ('institutional_whale_bounty'). | |
| action | Yes | Recommended exploit mitigation action. | |
| signal | Yes | Traffic-light severity indicator. | |
| chainId | Yes | Resolved EVM chain ID. | |
| settled | Yes | Whether x402 USDC payment settled cleanly. | |
| summary | Yes | Critical/High severity counts, live TVL, and entitled whitehat bounty summary. | |
| protocol | Yes | Evaluated protocol identifier. | |
| poolAddress | Yes | Target EVM pool or vault address inspected. | |
| auditDetails | No | Detailed static audit findings when code is provided, or RPC summary note (FULL tier only). | |
| tvlAnalyzedUsd | Yes | Effective TVL used for whitehat bounty calculation. | |
| whitehatRescuePlan | No | 90%-95% owner / 5%-10% whitehat split economics and private relay instructions (FULL tier only). | |
| flashLoanSimulation | No | Spot price oracle manipulation and reentrancy vector assessment (FULL tier only). | |
| exploitImmunityScore | Yes | Estimated exploit immunity score from 0 to 100. | |
| verifiedOnChainTvlUsd | Yes | Live on-chain TVL verified via RPC (0 if unavailable or undeployed). | |
| vulnerabilitySeverity | Yes | Overall exploitability tier. | |
| liveOnChainPoolForensics | No | Live RPC bytecode and proxy storage slot forensics for poolAddress (FULL tier only). | |
| capitalSalvageAndSafeHarbor | No | Unsigned EIP-5792/EOA Safe-Harbor execution bundle (FULL tier only). | |
| proportionalRescueCommissionPolicy | No | Anti-Bypass and Safe-Harbor bounty policy metadata (FULL tier only). |