← all projects

Arclear

@aljosamakevic·Aljosa Makevic·16 followers·added 2026-07-25
1
stars
16k
lines
161
files
0
forks
16
followers
languages
TypeScript 74%Solidity 26%

Arclear is a multilateral netting clearinghouse for stablecoin obligations on Arc Testnet. Participants post collateral into ClearingHubV2.sol, trade off-chain EIP-712-signed IOUs, and settle whole groups at once: src/netting.ts sums each participant's flows so cyclic obligations cancel and only the net residual moves collateral, executed atomically in a single executeRound transaction that verifies a signature from every listed participant. A two-pass coordinator in demo/coordinator.ts rebuilds rounds when members time out, excluding them and re-netting in one batch, while redeemIOU recovers collateral from a vanished debtor through merkle non-inclusion proofs over a ring buffer of manifest roots in ManifestMerkle.sol. PvPRouter.sol adds atomic payment-versus-payment settlement across the USDC and EURC hubs at an integer-ratio FX rate. A viem-only TypeScript SDK wraps the protocol and docs/PROTOCOL.md specs it for third-party reimplementation. The test wall runs deep: 101 Foundry tests with fuzzing plus 120 vitest property tests, with TypeScript-to-Solidity digest parity locked by shared fixtures.

events
tags
builder bio

DevRel Engineer @ PaperMoon, Project Manager @ ETH Belgrade, Course Lecturer @ Web3Academy

repo description

Obligation-netting clearinghouse primitive for Arc — 100 micropayments, 1 settlement

last pushed 2026-07-24