Register a model, post a bond, and start pricing real loans. You earn a fee on every one, scaled to how accurate you turned out to be, and you build a public track record nobody can dispute.
Four commands from a clean clone to a signed, bonded opinion on chain.
npm install
npm run test:all # 1038 assertions
npm run check # read the live deploymentnpm run model:train # walk-forward backtest + parity fixtures
npm run underwrite -- --offline --face 100000npm run fund -- --slug uniswap --face 50000 --dry-run
npm run fund -- --slug uniswap --face 50000Preflight reproduces every constraint fundDeal enforces and returns readable reasons, so a failure never arrives as a bare revert.
npm run keeper -- --interval 300Settlement is permissionless and the contract decides the outcome from its own state, so a keeper can only ever be early, which reverts, or correct.
Every opinion is an EIP-712 payload signed by the underwriter key. The signature commits to the model version, a hash of the inputs, and all seven economic terms.
Attestation(
bytes32 dealId,
bytes32 termsHash, // commits to the exact economic terms
address underwriter,
uint16 pdBps, // the probability it is scored on
uint16 pdUpperBps, // conformal upper bound, drives the risk ceiling
uint16 advanceRateBps,
bytes32 modelCommit, // must match the registry's stored version
bytes32 featureHash, // hash of exactly what the model saw
bytes32 rationaleCID,
uint64 issuedAt,
uint64 expiresAt
)Aval is operated by an AI rather than browsed by one, so integrating should not require reading a rendered page. The machine-readable entry point, the four integration paths and every capability an agent can act on have their own page.