EVM marketplace with EIP-712 signed orders, smart contract settlement, constant-product AMM, and Layer 2 support across Base, Arbitrum, and Optimism.
The EVM marketplace supports Ethereum L1 and all major Layer 2 networks through a suite of smart contracts with EIP-712 typed signature verification, a constant-product AMM, and external DEX integration.
The core marketplace contract handles order settlement with multiple layers of protection:
contract DecenterlizeMarketV1 {
// EIP-712 domain separator for typed signature verification
bytes32 public DOMAIN_SEPARATOR;
// Fee configuration (200 bps = 2%)
uint256 public constant MARKETPLACE_FEE_BPS = 200;
// Execute a signed order
function executeOrder(
Order calldata order,
bytes calldata sellerSignature,
address feeRecipient
) external payable nonReentrant {
// 1. Verify EIP-712 typed signature
// 2. Check order hasn't expired or been cancelled
// 3. Transfer NFT (ERC-721 or ERC-1155)
// 4. Split fees (50% foundation, 50% reward pool)
// 5. Pay seller
}
function cancelOrder(Order calldata order) external;
function cancelAllOrders() external;
}Key features:
interface EvmSale {
seller: string; // Seller address
contractAddress: string; // NFT contract
tokenId: string; // Token ID
tokenStandard: "ERC721" | "ERC1155";
amount: number; // 1 for ERC-721, N for ERC-1155
priceWei: string; // Price in wei
salt: string; // Unique salt for replay protection
expiry: number; // Expiration timestamp
}Constant-product AMM for marketplace token markets:
function swap(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 minAmountOut
) external returns (uint256 amountOut);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountA,
uint256 amountB
) external;
function removeLiquidity(
address tokenA,
address tokenB,
uint256 lpTokens
) external;External DEX integration for real token swaps against deep liquidity:
minAmountOut parameter.The same contract deploys identically across all EVM-compatible chains:
| Network | Status | Notes |
|---|---|---|
| Ethereum L1 | Supported | Full settlement |
| Base | Supported | Primary L2, lowest fees |
| Arbitrum | Supported | Nitro stack |
| Optimism | Supported | OP Stack |
Each L2 deployment uses the same bytecode and the same EIP-712 domain structure (chain ID varies). Cross-L2 listings are possible: a seller on Base can have their order filled by a buyer on Arbitrum through the protocol's cross-chain attestation flow.
Before any EVM purchase executes, the transaction plan goes through quorum verification:
This prevents scenarios where a compromised buyer client submits a malicious transaction that looks valid but interacts with a different contract.
The protocol actively detects nodes that propose or attest to malicious contracts:
Sale Price: 1 ETH
├── Marketplace Fee (2%): 0.02 ETH
│ ├── Foundation (50%): 0.01 ETH
│ └── Reward pool (50%): 0.01 ETH
└── Seller Receives: 0.98 ETHRoyalties (if configured by the collection creator) are deducted before the marketplace fee calculation.
TX_OBSERVED).TX_ATTESTATION event.TX_FINALIZED.