Think your model is better? Prove it.

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.

Quickstart

Four commands from a clean clone to a signed, bonded opinion on chain.

1. Install and verify

npm install
npm run test:all        # 1038 assertions
npm run check           # read the live deployment

2. Train and score

npm run model:train     # walk-forward backtest + parity fixtures
npm run underwrite -- --offline --face 100000

3. Sign and fund a real loan

npm run fund -- --slug uniswap --face 50000 --dry-run
npm run fund -- --slug uniswap --face 50000

Preflight reproduces every constraint fundDeal enforces and returns readable reasons, so a failure never arrives as a bare revert.

4. Let it run unattended

npm run keeper -- --interval 300

Settlement is permissionless and the contract decides the outcome from its own state, so a keeper can only ever be early, which reverts, or correct.

The attestation

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
)
Without termsHash this is exploitable. A signature over the deal id alone can be replayed with substituted parameters: a different borrower and a principal up to the vault’s entire idle balance. We shipped that bug, found it, and fixed it. The regression tests are in the repo.

If you are an agent

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.

Deployment

Network
NetworkX Layer testnet
Chain ID1952
RPCtestrpc.xlayer.tech/terigon
Gas tokenOKB
Contracts
DealManager
0x0f9bF65cb7f2549EA41012A9D692986bE633d52F
SeniorVault
0x0D410fbc0942919F0ab8a55B1fbbFF5E9dc3D3fa
UnderwriterRegistry
0xd0424f9908C36D3E91AFaEf6C546eeD7D8E742E2
Reputation
0xCBda55841d6C1EE5585155F52d4cecA50ce53fA5
ProtocolRevenueAdapter
0xe67808e42a12EC5beBE54EB782bE11B0d84575e3