Add a chain
The checklist for supporting another Aave v3 chain. One registry entry, no contract change.
Backstop protects an Aave v3 loan on any EVM chain that Aave v3, NEAR Intents 1Click and Chain
Signatures all support. The policy contract needs no change: it already takes the chain id, Aave
Pool, USDC and 1Click destination asset when it is created. Everything chain-specific lives in
LOAN_CHAINS in packages/config/src/registry.ts.
Steps
- Aave addresses. Add the chain's entry from
@bgd-labs/aave-address-book(never hardcode). Use the native Circle USDC market. On Arbitrum that isUSDCn; Aave's plainUSDCthere is the old bridged USDC.e, which 1Click does not deliver. - 1Click asset id. Read it from
GET https://1click.chaindefuser.com/v0/tokens(symbolUSDC, same contract address as step 1, 6 decimals). Add it toONE_CLICKand to the entry. - Chain entry. Add
{ chainId, key, name, explorer, rpcUrls, rpcEnvVar, aave, usdcAssetId, oneClickChain }toLOAN_CHAINS, and therpcEnvVarname to theLoanChaintype and.env.example. - viem chain. Add it to the chain map in
packages/chains/src/evm.tsand the web's wagmi config. - Tests. The registry test already checks every entry (native USDC matches the 1Click asset id).
Run
pnpm check. - Rehearse. Create a policy with
deploy-policy --chain <key> ..., fund it, run one rescue, and record the transaction links indocs/JUDGES.md.
Not covered by this checklist: protocols other than Aave v3 (new calldata builders and contract code) and non-EVM chains.