Pact Swap
Technical architectureSmart Contract Framework

Smart Contract Framework

Smart Contract Framework


At the core of PACT SWAP are WASM-based reactive smart contracts. These contracts operate in Coinweb's execution environment, which sits on top of multiple Layer 1 blockchains. Coinweb doesn't replace consensus — it builds on it. Each connected chain (e.g. Bitcoin, Ethereum, BNB Chain) retains its native consensus, while Coinweb provides a deterministic logic layer that ensures consistency across them.

These smart contracts are designed to:

Monitor L1 Events

Monitor events happening on multiple L1s

Trigger Actions

Trigger actions when specific conditions are met

Manage Collateral

Lock, release, or slash collateral based on swap outcomes

Cross-chain Transactions

Emit new cross-chain transactions with full data visibility

Every swap is driven by a PACT — a contract that defines the terms of a trade, enforces settlement, and adjudicates outcomes.

Coinweb

Reactive Smart Contracts

PACT is a Coinweb smart contract that defines the terms of a trade, enforces settlement, and adjudicates outcomes.


Learn more about Coinweb's reactive smart contracts.

Was this documentation helpful? Any suggestions?

Last updated on