Inspiration
Paying with bitcoin usually means selling it: you lose the exposure and, in the US, trigger capital gains tax. Borrowing against it avoids both, but today that is a loan you manage by hand. You pick a lender, watch your margin and repay before you are liquidated. On Arc, Circle's Borrow Kit lends USDC against cirBTC through Morpho only, and leaves liquidation to Morpho. Yet the same collateral borrowed cheaper on Aave V4: 3.10% against 4.04% on Arc mainnet on 2026-11-17. We wanted bitcoin to work like a payment account whose loan manages itself and defends itself.
What it does
Ardoise turns a cirBTC position on Arc into a payment account with a defense agent. There is no AI in it: the agent follows a mandate, and the contracts enforce that mandate.
- Pay from your bitcoin. Enter an amount, a payee and their chain (Arc or Base). Ardoise borrows exactly that amount on the venue you pick, Aave V4 or Morpho, and delivers it. Payments to Base go through Circle's CCTP. The app recommends the cheapest venue the guard allows, and shows your margin before and after you sign.
- One statement. Every payment is one debt line: lender, rate, payee, memo and interest so far.
- A mandate the contracts enforce. It sets a cap per payment and per day, a minimum margin (health factor 1.25), and pays only from your own position. The keeper can only repay.
- Defense from your other chains. When bitcoin falls, the guard refuses risky payments. The keeper then repays from the account, or brings your USDC reserve from Base through Circle Gateway standing orders. On Arc mainnet, with a simulated 55% bitcoin drop announced as such, it repaid 17 seconds after it first saw the drop.
- A cross-chain alarm.
DefenseAlarmon Arc sends a Circle-attested CCTP message.DefenseExecutoron Base can then spend only what the owner pre-authorized (USDC first, then WETH swapped to USDC) to repay on Arc. It ran on mainnet with the keeper alone relaying it: 15 seconds from the alarm to the repayment. - Stress test. Run any bitcoin and ether drop against your real position and reserve. You see the health factor with and without Ardoise, the reserve drawn in order, and the liquidation penalty avoided, computed with Aave V4's liquidation parameters read on Arc.
- Passkeys. Sign in with Face ID or Touch ID instead of a browser wallet, through a Circle smart account. Activation is one signature, and so is each payment. A native iOS app (SwiftUI, in TestFlight) uses the same passkey.
How we built it
- Contracts (Solidity, Foundry), on Arc mainnet.
ArdoiseFactorycreates oneArdoiseAccountper owner.pay()andpayVia()check the caps, then askMarginGuardwhether the margin stays above the minimum.- They borrow through an adapter that can only borrow for that owner and never withdraw collateral (
AaveV4Adapter,MorphoAdapter). - Then they transfer on Arc, or burn with CCTP V2 so Circle's forwarder mints to the payee on Base.
sweep()is public and only repays: it serves the venue closest to liquidation first.- The contracts have nearly 300 Foundry tests, plus fork tests against Arc mainnet.
- Circle.
- USDC and cirBTC on Arc, with gas paid in USDC.
- CCTP V2 for payments to Base (Fast Transfer and the forwarder) and for the alarm's generic messages.
- Gateway for the reserve on Base: standing orders are signed burn intents that can only pay the owner's own account.
- Modular Wallets for passkey smart accounts, which sign Gateway orders through ERC-1271.
- Keeper (Node.js). It watches every account, calls
sweep(), submits Gateway standing orders when a position is under the minimum, raises the alarm and relays Circle's attestation to Base. - Web app (Next.js, viem, on Vercel). Live rates and positions from Arc mainnet, the pay screen, the statement, the protection panel and the stress test.
- iOS app (SwiftUI) on Circle's Modular Wallets iOS SDK.
Challenges we ran into
- Arc is new, so we integrated Aave V4 and Morpho on Arc mainnet directly, with real but small amounts. Every flow was proven there rather than on a testnet.
- Making "impossible, not just forbidden" true meant adapters that can only borrow for their owner. It also meant a keeper that can only repay, and Gateway orders that can only pay the owner's own account.
- Cross-chain defense needs the reserve on Base to move without the owner online. That is why we used Gateway standing orders and a CCTP-attested alarm, so the relayer decides nothing.
- Passkey smart accounts pay their own gas in USDC on Arc, since there is no paymaster there, and must sign Gateway intents through ERC-1271.
Accomplishments that we're proud of
- Real payments on Arc mainnet. A payment to Base was borrowed on Aave V4 and minted to the payee 4 seconds later. Payments also went through both Aave V4 and Morpho.
- The defense in 17 seconds on mainnet, pulling USDC from Base through Gateway. Then the CCTP alarm, relayed by the keeper alone, in 15 seconds.
- Every claim has an explorer link in the README.
What we learned
- Per-payment borrowing changes how a bitcoin loan feels: every expense has its own lender, rate and line in the statement.
- Circle's building blocks compose well for defense, not only for transfers: Gateway holds the reserve, and CCTP carries both the money and the alarm.
What's next for Ardoise
- A market for protection, where third parties back other positions' reserves for a fee.
- A reserve held in USYC instead of idle USDC.
- Payments in EURC and other currencies with StableFX.
- ETH and real-world-asset collateral.
- Private positions with Arc's confidentiality features.
- An audit before raising the caps.
Risks we accept, said up front: the contracts are not audited, so the caps are low. The factory admin is trusted: they set the guard and the lending venues for every account, which is the limit of "impossible". One keeper runs today, but sweep() is public. The bitcoin drops in the demo are simulated and labelled as such.