Both the standalone daemon and vault-solver register this SDK provider through
aave.New(reader). The host supplies the pinned RPC transport; no host implements
Aave sizing. The provider recognizes one authenticated direct pool call
borrow(asset, amount, 2, 0, account). The recipe must read the same pool's
getUserAccountData(account) health word after borrowing and check a committed
floor of at least 1e18, before any further effect. Pool, asset, variable rate,
referral and account are pinned; only the amount binding may vary. Tighter
committed health floors are preserved.
Input 0 supplies borrowing capacity, in raw debt-asset units. The committed
recipe chooses the actual amount with its Min chain and policy debt headroom.
Input 0 must occur once as a direct operand of that chain; other Inputs still
require generic exact recipe sources. Multiple capacity groups, effects between
sizing and borrowing, and unresolved prefix
inputs fail before network I/O. There is no amount or deployment configuration.
The provider replays the authenticated supply prefix in one same-executor
eth_call code override at the pinned block, then probes Aave's resulting state.
Executor identity, account permissions and original instruction order are
preserved. Prefix numerical witnesses are retained for preparation and checked against full
original execution; the final original-code simulation and the on-chain health
floor remain authoritative. No probe contract is deployed or granted permission.
lens/AaveBorrowProbe.sol ports the maxBorrow calculation and borrowing flags
from adapters AaveV3Liquidity.sol
at commit d506348870eb2d379ddae69407bc8b63422291d6 on
codex/bailsec-normalized. That source has SHA-256
140af89383d56e9d5d95b6ed812ce82193641b041aaa50054b0d72cc2b62a547.
The percentage multiplication is checked and floored; full-precision floor
mulDiv follows the adapters vendored OpenZeppelin Math implementation (MIT,
Remco Bloemen/Uniswap Labs). It preserves global debt, effective eMode threshold,
LTV availability, reserve flags, isolation/silo restrictions, borrowable bitmap,
raw/virtual cash, reserve debt cap and one-unit rounding margins. Zero base LTV
collateral is permitted when native effective eMode accounting permits borrowing.
Required getter failures fail preparation; no fallback is used.
Regenerate with python3 sdk/providers/aave/lens/generate.py; make check
checks the artifact against a fresh pinned-compiler build. FixtureAave.sol is an
Anvil test double only. testdata/frontend-lending.json contains the complete
frontend supply/borrow/Midas recipe and its referenced leaves, retaining their
original proofs. Regenerate it from the frontend with
node scripts/export-aave-lending-fixture.mjs /path/to/executor/sdk/providers/aave/testdata/frontend-lending.json.
The host's Anvil regression replays its supply prefix and executes the original
recipe, including the native health floor. This uses modeled topology and local
contracts, without live-chain or deployment evidence.
Canonical receipt checks complete this native execution in the keeper. The provider
only prepares the capacity input and authenticated prefix witnesses.