← All Recipes
Bazantic // Recipe

Mandate 1inch Route Assurance

By Febri Nirwana

mandate-1inch-route-assurance

Gets a live 1inch Classic Swap route, then independently proves whether its decoded calldata satisfies one immutable Mandate policy. Returns PASS, FAIL, or UNKNOWN with two hashed evidence bindings.

Recipe inputs
Complete fields before a run.
Exact input amount in token base units.
1inch slippage percent, greater than 0 and at most 50.
strategy
strategy *
protocols
protocols *
Mandate app that must be both 1inch caller and recipient.
Agent output floor in token base units.
Unix timestamp not later than strategy.validUntil.
Output example
Representative published output.
"Here is the exact Mandate assessment JSON returned by the assessor:\n\n```json\n{\n  \"version\": 1,\n  \"result\": \"PASS\",\n  \"reasons\": [],\n  \"chainId\": \"1\",\n  \"strategyHash\": \"0x64b1cf19842a0ae005496463a55eb0efb65fa391057d9cbd4bb126a5b491fdd4\",\n  \"assessedAt\": \"2026-09-10T05:29:07.778Z\",\n  \"request\": {\n    \"mandateApp\": \"0x478cd5c6c2aa46d8e246e0b06bb971a855c443ee\",\n    \"amountIn\": \"100000000000000000\",\n    \"agentMinOut\": \"1\",\n    \"executionDeadline\": \"1789018408\"\n  },\n  \"route\": {\n    \"provider\": \"1inch-classic-swap-v6.1\",\n    \"requestId\": \"ca48ca6d-476a-4e2c-b9c4-28922963a2f7\",\n    \"target\": \"0x111111125421ca6dc452d289314280a0f8842a65\",\n    \"selector\": \"0x07ed2379\",\n    \"executor\": \"0x111116053f09d34a7eae8102887004445176ca11\",\n    \"caller\": \"0x478cd5c6c2aa46d8e246e0b06bb971a855c443ee\",\n    \"recipient\": \"0x478cd5c6c2aa46d8e246e0b06bb971a855c443ee\",\n    \"tokenIn\": \"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\",\n    \"tokenOut\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\n    \"amountIn\": \"100000000000000000\",\n    \"quotedAmountOut\": \"247309699\",\n    \"routeMinimumOut\": \"244836602\",\n    \"nativeValue\": \"0\",\n    \"allowPartialFill\": false,\n    \"protocols\": [\"UNISWAP_V3\"]\n  },\n  \"checks\": [\n    { \"code\": \"PROVIDER_RESPONSE\",  \"result\": \"PASS\" },\n    { \"code\": \"ROUTE_BINDINGS\",     \"result\": \"PASS\" },\n    { \"code\": \"POLICY_TARGET\",      \"result\": \"PASS\" },\n    { \"code\": \"POLICY_SELECTOR\",    \"result\": \"PASS\" },\n    { \"code\": \"PER_CALL_CAP\",       \"result\": \"PASS\" },\n    { \"code\": \"RATE_FLOOR\",         \"result\": \"PASS\" },\n    { \"code\": \"ROUTE_MINIMUM\",      \"result\": \"PASS\" },\n    { \"code\": \"EXECUTION_WINDOW\",   \"result\": \"PASS\" }\n  ],\n  \"evidence\": [\n    {\n      \"provider\": \"1inch-classic-swap-v6.1\",\n      \"responseHash\": \"0x83ff1c34ddee2ed6ea02d0deb266d93da895952f7b89e505328dd3ba18b7c288\"\n    },\n    {\n      \"provider\": \"mandate-strategy\",\n      \"responseHash\": \"0x64b1cf19842a0ae005496463a55eb0efb65fa391057d9cbd4bb126a5b491fdd4\"\n    }\n  ]\n}\n```\n\nAll 8 checks passed. This is the verbatim response from the assessor — no inference or modification has been applied."