尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Peer-to-peer sports betting exchange on Arbitrum — non-custodial vaults, ERC-4626 LP funds, stablecoin only.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Peer-to-peer sports betting exchange on Arbitrum — no bookmaker, no native token, stablecoin only.
Bettazoo lets anyone act as the bank. Placers lock collateral on-chain and publish odds; bettors see every offer in a public order book and take the best prices, matched across many offers in a single transaction. Funds sit in an escrow contract, never with the platform, and winners are paid automatically in the same transaction that settles the event.查看完整 README ↗Peer-to-peer sports betting exchange on Arbitrum — no bookmaker, no native token, stablecoin only.
Bettazoo lets anyone act as the bank. Placers lock collateral on-chain and publish odds; bettors see every offer in a public order book and take the best prices, matched across many offers in a single transaction. Funds sit in an escrow contract, never with the platform, and winners are paid automatically in the same transaction that settles the event.
On top of the exchange, Bettazoo adds infrastructure for autonomous banks and creators: non-custodial on-chain vaults run by a keeper that quotes markets automatically, an ERC-4626 fund vault that lets third-party LPs back a placer, and a streaming/OBS overlay toolkit for creators who run a book live.
Status: public testnet on Arbitrum Sepolia. All balances are MockUSDT with no real value. Contracts have not been externally audited yet.
| App | https://bettazoo-project.vercel.app |
| Website | https://bettazoo.com |
| Network | Arbitrum Sepolia (chain id 421614) |
Placer / Vault Bettor
│ createOffer(event, outcome, │ acceptOffers([ids], stake)
│ odds, liability) │ multi-match across offers
▼ ▼
┌──────────────────────────────────────────────┐
│ BettazooEscrow (Arbitrum) │
│ collateral locked · matched · settled │
└──────────────────────────────────────────────┘
▲ resolveEvent(event, winner) │ payout + platform fee
│ ▼ in the same tx
Oracle Winners / Treasury
Exchange
Placer Vaults (autonomous banks)
PlacerVault: one EIP-1167 clone per owner. Only the owner can withdraw, and withdraw takes no recipient argument, so the keeper can never move funds outpause) and per-vault platform fee overrideFund Vaults (third-party capital)
PlacerFundVault: ERC-4626 vault where approved LPs deposit alongside a placerCompliance & creator tooling
| Layer | Path | Stack |
|---|---|---|
| Smart contracts | web3/ | Solidity 0.8.24, Hardhat, OpenZeppelin v5 (incl. upgradeable ERC-4626), EVM cancun |
| Backend | backend/ | Node.js, Express, MongoDB/Mongoose, ethers v6, Socket.io |
| Frontend | frontend/ | Next.js 16 (App Router), React 19, Tailwind v4, wagmi + viem, next-intl |
The backend indexes contract events into MongoDB (order book, matches, vault state), runs the keeper and the odds feed, and pushes realtime updates over Socket.io. The chain is always the source of truth: balances, pause state and caps are read on-chain by the frontend.
| Contract | Purpose |
|---|---|
BettazooEscrow.sol | Offers, multi-matching, settlement, platform fee with per-placer override |
PlacerVault.sol / PlacerVaultFactory.sol | Single-owner, keeper-operated, non-custodial vaults |
PlacerFundVault.sol / PlacerFundVaultFactory.sol | ERC-4626 vaults for third-party LP capital |
MockUSDT.sol | 6-decimal test stablecoin |
| Contract | Address |
|---|---|
| BettazooEscrow | 0xD01D7Af6eB42968DdE249cD56ab382F2eF7fF04D |
| PlacerVaultFactory | 0xEB8FD349f3C6377a367151cD9624a5802949623e |
| PlacerFundVaultFactory | 0x62a26E2A3FbeFE8714e9492ce084dA6e79632d65 |
| MockUSDT | 0x29fA91A7288A2b3De899F4ed1679e288018f69a0 |
Full deployment records are in web3/deployments/.
Requirements: Node.js 20+ and a MongoDB instance (local or Atlas).
# 1. Contracts — compile and test
cd web3
npm install
npx hardhat test
# 2. Backend — copy backend/.env.example to backend/.env and fill it in
cd ../backend
npm install
npm test
npm run dev
# 3. Frontend — set NEXT_PUBLIC_API_URL and contract addresses in frontend/.env.local
cd ../frontend
npm install
npm run dev
All supported environment variables are documented in backend/.env.example and web3/.env.example. Optional integrations (odds feed, Sentry, admin gate) stay disabled when their variables are unset.