ERC-8460: Agent Credit Lines

Lenders to ERC-8004 agents are appearing, and each has its own ABI, so every wallet, payment client and MCP server integrates every lender separately. This draft is one lender-neutral interface for revolving credit to agent identities: how much an identity can borrow now (availableCredit), what a draw would cost (quote), draw it with a fee cap (borrow), what closes it (amountDue), repay it (anyone may), and mark it defaulted once overdue (anyone may). Three events, Borrowed, Repaid and Defaulted, record every loan, so a credit reader works with any conforming lender through one ABI. Each loan records the identity’s owner at the draw, and a default names that owner.

Differences from what exists: ERC-7565 locks an NFT as collateral and hands it to the lender on default, while here the identity is not collateral and a default marks its owner; EIP-6882 (closed) had one borrowing ABI for collateralized pool debt with no loan ids, terms or defaults; ERC-3156 loans close in the same transaction.

We would especially like a second lender to agents to check the interface against its own contracts. Questions:

  1. Is isController (owner or an accepted delegate) the right hook for wallets and agent runtimes?
  2. Should the owner’s consent to a line (an EIP-712 message naming who backs it and the most it may charge) be part of the core, or a separate extension as drafted?

For isController, a useful authorization hook needs narrow, explicit semantics: it should answer who may act for the identity, not imply authority to bind the owner to debt. Keep signed line consent separate from core, but standardize its typed data, including lender, cap, expiry, nonce, and chain/contract domain to prevent replay and wallet ambiguity.

@xiqagaba Thanks.

In the draft, isController answers one question: who may call borrow for an identity at the lender that answers it. It gives no authority over the identity anywhere else. Within that lender it does bind the owner, since each loan records the owner at the draw and a default names that owner. That is why the owner should be the one who names a delegate. In the reference lender only the owner can call setDelegate, and the key lapses once anyone else holds the identity, which the text requires of every lender. The text itself is looser than the reference: it lets a lender accept delegates without saying the owner named them. I’ll make it say a delegate is always a key the owner named.

On consent, agreed, it stays out of the core. It now has its own draft, ERC-8467 Agent Credit Backers (ERC-8467: Agent Credit Backers), and its typed data has the fields you list: BackerConsent(address lender, uint256 agentId, address backer, uint256 line, uint256 nonce, uint256 deadline), where the line is the cap. It is signed under a domain whose chainId is the chain’s and whose verifyingContract is the lender. The nonce goes up each time a consent is used, when a backer is removed, and when the owner calls revokeConsents. So a consent works once, and the owner can cancel every one it has not used. An owner that is a contract signs through ERC-1271.