settlekit/apps/refund-protocol
caelum0x 3444ce3890 feat(apps): SettleKit branding + integration pass; adopt vendor contracts/skills
Workflow integration pass (5 of 10 apps; rest hit session limit):
- Branded root metadata to '<Purpose> · SettleKit' for arc-commerce, arc-escrow,
  arc-fintech, arc-multichain-wallet, arc-nanopayments, arc-p2p-payments.
- arc-commerce: fix inverted destination-address warning (showed during load,
  never on failure).
- arc-p2p-payments: add explicit @circle-fin/developer-controlled-wallets + axios deps.

Adopt remaining vendor projects (moved out of vendor/, now first-class):
- apps/circle-cctp-fulfiller-repayment (-> @settlekit/cctp-fulfiller-repayment,
  workspace member; CCTP repayment prototype + Foundry contract).
- apps/{chainmail,recibo,refund-protocol} (Foundry/contract samples; no package.json).
- apps/skills (Circle agent-skills reference).

Lockfile regenerated + frozen-validated (139 workspace projects).
2026-06-21 22:42:30 +03:00
..

Refund Protocol

A protocol for handling refunds and chargebacks in a non-custodial manner. This protocol introduces an arbiter system that can mediate disputes between payment senders and receivers, providing a better user experience to stablecoin payments while still allowing receivers to retain control over their funds.

Security Notice

We have discovered an issue resulting from the early witdrawal function that allows an arbiter to drain other user's payments. A fix is in development.

Setup

Prerequisites

  1. Install Foundry:
curl -L https://foundry.paradigm.xyz | bash
foundryup
  1. Initialize submodules:
git submodule update --init --recursive

Development

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details. It has not been audited, comes with no guarantees, and is provided as is. Use at your own risk.