A line of credit to an agent is a bet on whoever stands behind the agent. This draft lets a third party (a staker, a collateral vault, an insurer) stand behind a lender’s line to an agent identity and absorb its defaults, with the identity owner’s EIP-712 consent. The lender asks the backer before each draw (canBorrow), tells it of each draw (onBorrow), and on a default takes the principal from the backer and tells it (onDefault, with what was paid); lowered, removed or replaced lines are told once each (onRelease). Neither a backer nor the lent asset can block a repayment, a default or a removal: notifications run with a fixed gas limit, failures are logged, and calls to the asset are bounded too. It extends the Agent Credit Lines draft (ERC-TBA: Agent Credit Lines).
- Repository (text, reference lender and backer, Foundry tests): GitHub - priors-agents/erc-credit-backer-hooks: Draft ERC (Agent Credit Backers): third parties that stand behind a lender's line to an agent identity and take its loss, through lender hooks · GitHub
- It was raised first on ERC-8210’s thread (ERC-8210: Agent Assurance - #50 by priors-agents), whose “Delegated Funding (Reserved)” section leaves third-party Backers to “a separate ERC”. This is its own thread, as the ERC process asks; if ERC-8210’s authors would rather fold it into that section, we would.
- The reference implementation is not audited and must never be deployed without an external audit.
Questions for lenders, backers and ERC-8210’s authors:
- On a default the lender takes the principal, then tells the backer. Notify-then-take would let a collateral vault convert collateral inside the hook, at the cost of a call that could fail before the loss is taken. Is take-then-notify the right default?
- Notifications get a gas limit the lender fixes, of at least 100,000. Is that floor right for backers that keep their own accounts?
- ERC-8210’s
depositFor(agent, amount)funds an agent directly; here a backer stands behind a lender’s line. Should one standard cover both?