{"slug":"defi-halowerk-com-mev-risk-fb9e15","title":"Takes chain, token pair, input amount and slippage tolerance, finds the pool the","host":"defi.halowerk.com","method":"POST","resource":"https://defi.halowerk.com/mev/risk","category":"market","description":"Takes chain, token pair, input amount and slippage tolerance, finds the pool the trade would most likely use and reads its live state. The maximum the caller can lose is arithmetic and exact: the gap between the quoted output and the minimum output their own tolerance permits. The attacker profit is","price_listed":0.006,"price_asked":0.006,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":1277,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount_in":"1","chain":"base","scan_history":false,"token_in":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","token_out":"0x4200000000000000000000000000000000000006"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"amount_in":{"description":"Input amount in whole token units as a decimal string.","pattern":"^[0-9]+(\\.[0-9]+)?$","type":"string"},"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"route":{"description":"Optional pool address to assess instead of the automatically chosen one.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"scan_history":{"default":true,"description":"Scan past Swap events for actual sandwiches. Costs time; switch off for a faster answer.","type":"boolean"},"slippage_bps":{"default":50,"maximum":5000,"minimum":1,"type":"integer"},"token_in":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"token_out":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"}},"required":["chain","token_in","token_out","amount_in"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":1214,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":1345,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":1340,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":1208,"error":null}],"description_full":"Takes chain, token pair, input amount and slippage tolerance, finds the pool the trade would most likely use and reads its live state. The maximum the caller can lose is arithmetic and exact: the gap between the quoted output and the minimum output their own tolerance permits. The attacker profit is an estimate and labelled as one — the profit-maximising front-run size is searched for inside a constant-liquidity pool model, bounded by the largest front-run the caller own tolerance still permits,","last_updated":"2026-11-24T10:15:10.346Z","schemes":["exact"]}