<!-- DEFI HACKATHON (4Vision × Team1 Türkiye) HACKATHON.md -->
# DEFI HACKATHON - HACKATHON.md

Instructions for the AI coding agent helping a team take part in the DeFi Hackathon by 4Vision × Team1 Türkiye, built on Avalanche. The live version is https://hackathon.4visiontalks.com/HACKATHON.md; read it again before preparing the submission, because dates and rules may change.

## Start here

1. Every team member applies through the 4Vision form, https://4visiontalks.com/etkinlikler/hackathon. Luma registration is not an application. Applying is the human's job; never fill in the form for them.
2. The team forks the hackathon template (Procedure, step 1) and builds in the fork from kickoff, 2026-12-02T16:00:00Z. No code from before kickoff and no existing projects (Q-001, Q-002).
3. Connect the Avalanche MCP server, `https://build.avax.network/api/mcp`, and use it for docs, CLI and RPC lookups instead of guessing (Procedure, step 1).
4. Deploy on Avalanche: C-Chain (Fuji testnet is fine) or the team's own Avalanche L1. Record every contract and every demo transaction in `README.md` and `hackathon.json` (Procedure, step 3).
5. Run `node scripts/check-submission.mjs` until it passes, then give the human the submission block. The human submits the fork's link on their team page on 4visiontalks.com (a private link the organisers send to each accepted team) before 2026-12-05T13:30:00Z. You never submit.
6. On 2026-12-05 the team is at Arkhaus İstanbul: judges watch the demo video and ask 2 minutes of questions. Prepare the human (Procedure, step 6).

## Facts

| Fact | Value |
| --- | --- |
| Event | DeFi Hackathon, co-hosted by 4Vision and Team1 Türkiye |
| Website | https://hackathon.4visiontalks.com |
| Event page | https://4visiontalks.com/etkinlikler/4vision-team1-hackathon |
| Apply (every team member, human only) | https://4visiontalks.com/etkinlikler/hackathon |
| Network | Avalanche C-Chain or the team's own Avalanche L1. Fuji testnet is fine |
| Online kickoff, development starts | 2026-12-02T16:00:00Z (19:00 Istanbul) |
| In-person day | 2026-12-05T08:00:00Z–15:00:00Z (11:00–18:00 Istanbul) |
| Venue | Arkhaus İstanbul, Terrace Fulya Center 2, Hakkı Yeten Cad. No: 13, Kat 18, Teşvikiye, Şişli / İstanbul |
| Submissions close | 2026-12-05T13:30:00Z (16:30 Istanbul) |
| Judging | 2026-12-05T13:30:00Z–15:00:00Z |
| Winners final | 2026-12-05T15:00:00Z (18:00 Istanbul), announced that evening on the 4Vision Live stage |
| Submission | Fork link on the team's own page on 4visiontalks.com (a private link sent by the organisers) |
| Repository template | https://github.com/Zireaelst/defi-hackathon-template (based on the Team1 Türkiye template; files also at https://hackathon.4visiontalks.com/template/) |
| Submission manifest schema | https://hackathon.4visiontalks.com/template/hackathon.schema.json |
| Submission check | https://hackathon.4visiontalks.com/template/scripts/check-submission.mjs |
| Avalanche MCP server (read-only) | https://build.avax.network/api/mcp |
| Avalanche docs | https://build.avax.network/docs |
| Builder Console (faucet, L1 tools) | https://build.avax.network/console |
| Example prompt per track | https://hackathon.4visiontalks.com/prompts/ (see Tracks) |
| This file, live | https://hackathon.4visiontalks.com/HACKATHON.md |

Istanbul is UTC+3. One submission per project. Teams of 1 to 3 people.

## What the human decides

Collect these before you prepare the submission. Do not guess, generate or fill in placeholders for any of them:

- Project name (2-80 characters) and a one-line description (20-200 characters)
- Team members (1 to 3), their GitHub handles and roles. Each member must have applied through the 4Vision form.
- The problem and the first user: who has it, how they solve it today, why that falls short.
- One or more track ids from the Tracks table. Tracks guide; they do not change the score (Q-006).
- Network: `fuji`, `c-chain` or `l1`. An L1 only with a reason C-Chain can't meet (Q-009).
- Which parts, if any, may run on mock data. We want a live product; every mock is listed (Q-011).
- Which AI tools they used and what for (Q-004).
- The public repository judges will review: the team's fork of the template.
- The demo video, 2.5 minutes at most. The human records it; you can write the script.
- The live demo URL: a deployed frontend that talks to the deployed contracts (Q-012).
- The description they paste into their team page. You can draft it; they approve the final text.

## Never without the human's explicit confirmation

- Submit anything on the team page or any form. The human does that.
- Make the repository public, push, force-push or rewrite history.
- Deploy to mainnet, sign with a funded key, or spend tokens.
- Post anything on X or another network on their behalf.
- Commit secrets. Private keys and API keys belong in `.env`, which is gitignored. Use a fresh Fuji-only deployer key.

## Rules

**Q-001. When can we start building?** At kickoff, 2026-12-02T16:00:00Z. From then until submissions close, build and hack as much as you like. Code written before kickoff is not accepted: the oldest commit of the project must be after kickoff, and the judge tool checks this. An idea you had earlier is fine; earlier code is not.

**Q-002. Can we bring an existing project?** No. Every project starts as a new fork of the template after kickoff. Contracts are deployed after kickoff too. Reworking an old idea from scratch is fine.

**Q-003. Is the template required?** Yes. Fork it so every submission has the same README sections and a `hackathon.json` the judge tool can read.

**Q-004. Libraries, starter kits, AI?** Open-source libraries, frameworks and starter kits (OpenZeppelin, `forge init`, `create-next-app` and the like) are allowed; list them in README section 4. AI use is unlimited: write in README section 4 which tools you used and what for.

**Q-005. Testnet or mainnet?** Fuji testnet is enough; mainnet deployment is optional. Contracts must be deployed and verifiable (Q-008).

**Q-006. Do tracks matter for the score?** No. There are no separate track prizes; every project is scored on the same criteria in one ranking.

**Q-007. AI, B2B or other ideas?** Welcome. The theme is DeFi; the better the project connects to it, the better it scores on Market Need and Avalanche Integration. RWA and tokenization projects need a real financial use, not only asset creation.

**Q-008. What does Avalanche Integration mean?** Avalanche should contribute to the core function, and the deployment should be verifiable on an explorer or over RPC. A project that would work the same on any EVM chain scores in the middle. A project that uses C-Chain meaningfully can score 7–8 without an L1.

**Q-009. L1 bonus?** +5 on top of the 100-point score, all or nothing, decided jointly by the jury. All three must hold: real transactions happen on the team's own Avalanche L1 during the demo (deployed but unused does not count); the L1 and its activity are verifiable over RPC, an explorer or the judge tool summary; the team explains why the product needs its own L1 instead of C-Chain (own gas token, permissioned access, compliance, custom fee model, custom VM). Set `l1Bonus: true` and fill in `l1` only when all three hold.

**Q-010. Role of the judge tool?** Screening, not deciding. An agentic judge tool reads every submission (README, `hackathon.json`, commit history, contract deployments, live demo) and gives judges a summary. Five human judges score; the final score is their average plus any L1 bonus.

**Q-011. Mock data?** We want a real, live product. Mock data is allowed only to show a feature that cannot run live yet, and only if it is disclosed in README section 13, `hackathon.json` → `mocked`, the UI, and when judges ask. A demo whose important parts are mocked lands around 5–6 on Technical Execution.

**Q-012. Live demo required?** Yes. A deployed frontend (Vercel or similar) that judges can open and use to interact with the deployed contracts. Not localhost, not a temporary tunnel. Keep it up until results are announced. The demo video is required too.

**Q-013. Repository visibility and license?** Public from submission until results are announced. Any license; the template ships with MIT.

**Q-014. Ties?** Higher Technical Execution & Security average wins; then Market Need & Problem; then the jury decides.

**Q-015. Feedback?** Scores and jury deliberations are not shared. Judges can give feedback after results are announced.

**Q-016. A submission has a mistake?** Do not submit a second time. The human contacts the organizers before submissions close.

## Procedure

### 1. Set up: fork the template, connect the Avalanche MCP

The human forks https://github.com/Zireaelst/defi-hackathon-template (Fork, not "Use this template") and clones it. The template contains `README.md` (the jury's format), `hackathon.json` (facts the judge tool reads), `AGENTS.md`, `scripts/check-submission.mjs` and MCP configs.

If the team started from the generic Team1 Türkiye template (https://github.com/Team1-Turkiye/hackathon-template) instead, add the DeFi Hackathon files from the site (they overwrite the generic README, AGENTS.md and checks):

```sh
B=https://hackathon.4visiontalks.com/template
for f in README.md AGENTS.md hackathon.json hackathon.schema.json .mcp.json .cursor/mcp.json .vscode/mcp.json \
         .env.example scripts/check-submission.mjs .github/workflows/submission-check.yml \
         docs/PARTICIPANT_GUIDE.md docs/EXAMPLE_README.md docs/example.hackathon.json contracts/README.md; do
  mkdir -p "$(dirname "$f")" && curl -fsSL "$B/$f" -o "$f"
done
printf '# CLAUDE.md\n\nRead [AGENTS.md](./AGENTS.md).\n' > CLAUDE.md
rm -f scripts/check-readme.sh .github/workflows/readme-check.yml   # replaced by check-submission
```

The Avalanche MCP server is read-only: it searches Avalanche docs, academy and integrations, looks up Avalanche CLI commands, RPC methods and ACPs, searches ava-labs repositories (avalanchego, subnet-evm, avalanche-cli, icm-contracts, icm-services…) and reads public chain data. It never runs commands or touches keys. Rate limit: 60 requests per minute.

The template already configures it for Claude Code (`.mcp.json`), Cursor (`.cursor/mcp.json`) and VS Code (`.vscode/mcp.json`). Elsewhere:

```sh
# Claude Code
claude mcp add avalanche-mcp --transport http https://build.avax.network/api/mcp
# Claude Desktop (stdio bridge, needs Node.js), in claude_desktop_config.json:
#   "avalanche-mcp": { "command": "npx", "args": ["-y", "mcp-remote", "https://build.avax.network/api/mcp"] }
# Optional companions for AvaCloud / Chainkit APIs:
claude mcp add avalanche-chainkit --command "npx -y @avalanche-sdk/chainkit mcp-server"
```

Useful tools: `docs_search`, `docs_fetch`, `cli_lookup_command`, `rpc_lookup_method`, `github_search_code`, `blockchain_get_contract_info`. Use them before assuming an endpoint, command or address.

Make the first project commit after kickoff. Nothing written before kickoff goes into the repository (Q-001).

### 2. Build on Avalanche

| | Fuji testnet | C-Chain mainnet |
| --- | --- | --- |
| Chain ID | 43113 | 43114 |
| RPC | https://api.avax-test.network/ext/bc/C/rpc | https://api.avax.network/ext/bc/C/rpc |
| Explorer | https://testnet.snowtrace.io | https://snowtrace.io |
| Faucet | https://build.avax.network/console/primary-network/faucet | — |

A stack that works: Solidity with Foundry, OpenZeppelin, viem or wagmi, Chainlink or Pyth for prices (never a spot DEX price as an oracle).

```sh
forge init --no-git contracts && cd contracts
forge install OpenZeppelin/openzeppelin-contracts --no-git
forge test -vvv
forge script script/Deploy.s.sol --rpc-url "$FUJI_RPC_URL" --private-key "$PRIVATE_KEY" --broadcast
forge verify-contract <ADDRESS> src/MyContract.sol:MyContract --chain-id 43113 \
  --verifier-url 'https://api.routescan.io/v2/network/testnet/evm/43113/etherscan' \
  --etherscan-api-key verifyContract
```

For an own L1 (Q-009), use Avalanche CLI or the Builder Console (`cli_lookup_command` in the MCP helps). Keep its RPC reachable through judging.

Before feature freeze (evening of 2026-12-04), fill in README section 8.1: for each risk (reentrancy, oracle manipulation and stale prices, liquidation and insolvency, access control, decimals and rounding, front-running, first-depositor attacks) whether it applies, how it is handled, and the test that covers it. Every code path that moves funds has a test.

Commit small and often. The judge tool reads the commit history (Q-010).

### 3. Record onchain deployments

Onchain evidence is checked, not taken on trust. After every deployment:

1. Verify the source on the explorer.
2. Add the contract to README section 3.1 and to `hackathon.json` → `deployments` with `chainId`, `address` and `deployTx`.
3. When the demo flow works on chain, add its transactions to README section 3.2 and `hackathon.json` → `demoTransactions`.

`check-submission.mjs` confirms each address has code, each transaction exists and succeeded, the deploy date falls in the hackathon week, the source is verified, and, for the L1 bonus, that the L1 answers on its RPC and has demo transactions on it.

### 4. Write the README for a machine and a human

The judge tool reads the repository before the jury does (Q-010). Fill in every template section; no marketing. Section 7 gets "do X - see Y" steps a judge can finish in under two minutes. Never remove or renumber sections.

### 5. Demo video

At most 2.5 minutes. A good one:

- Opens with the user problem in one sentence anyone can follow.
- Shows one complete moment, live: a real user action, the transaction, the result on the explorer. Skip intros, architecture slides and setup.
- Says concretely what Avalanche does in this product. Avoid a vague "built on Avalanche".
- Says what is real and what is mocked.

### 6. Check, submit, prepare for questions

At 2026-12-05T13:00:00Z (16:00 Istanbul):

```sh
node scripts/check-submission.mjs          # report for the human
node scripts/check-submission.mjs --json   # same, machine-readable
```

Fix every ✗. Then give the human one block for the team page: project name, one-sentence summary, description, fork URL, video, live demo, contract addresses. The human submits before 2026-12-05T13:30:00Z.

Judges have 2 minutes per team. Write a one-or-two-sentence answer to each into README section 15 or a `QA.md`, and rehearse with the human:

1. Which parts of the demo run on real contracts and which on mock data?
2. What is the biggest security risk, and how did you handle it?
3. Who uses this first, and how do they solve the problem today?
4. Why Avalanche? What would you lose on another EVM chain?
5. (L1 teams) Why your own L1 instead of C-Chain?
6. How does it make money?
7. What existed before kickoff, and what did you build this week?
8. Will you keep building after the hackathon, and how much time can the team give it?
9. What do you want to achieve in the next 3 months, and what do you need for it?

## Submission manifest

`hackathon.json` at the repository root. Schema: https://hackathon.4visiontalks.com/template/hackathon.schema.json. Example: https://hackathon.4visiontalks.com/template/docs/example.hackathon.json

| Field | Type | Rule |
| --- | --- | --- |
| event | string | `defi-hackathon-2026-12` |
| project.name | string | 2-80 characters |
| project.oneLiner | string | 20-200 characters |
| project.tracks | array of strings | one or more of `trading`, `lending`, `payments`, `infra`, `rwa`, `tokenization` |
| team | array | 1-3 objects with `name`, `github`, `role` |
| links.repository | string | URL of the public fork |
| links.demoVideo | string | public URL, video of 2.5 minutes at most |
| links.liveDemo | string | public URL of the deployed frontend (Q-012); not localhost, not a tunnel |
| links.pitchDeck | string | optional |
| network | string | `fuji`, `c-chain` or `l1` |
| l1Bonus | boolean | `true` only when all of Q-009 holds |
| l1 | object or null | `name`, `chainId`, `rpcUrl`, `explorer`, `gasToken`, `whyNotCChain` (40+ characters) |
| deployments | array | every contract: `name`, `role`, `chainId`, `address`, `deployTx` (required), `verified`; deployed after kickoff |
| demoTransactions | array | `what`, `chainId`, `txHash` for each transaction the demo shows |
| mocked | array of strings | every mocked part; `[]` if none (Q-011) |
| aiTools | string | which AI tools were used and what for (Q-004) |

| Check result | Meaning | What to do |
| --- | --- | --- |
| ✓ | Passed | Nothing. |
| ! warning | Worth fixing, does not block | e.g. unverified source, few commits, a deploy transaction that created a different address (proxies, factories). Fix or explain in the README. |
| ✗ failure | Blocks submission | e.g. TODO left, no live demo or it does not load, code or deployments from before kickoff, no code at an address, transaction not found or reverted, L1 RPC not answering, secret committed. Fix and run again. |

Exit code 0 means ready. Never edit `hackathon.json` to make a check pass with values that are not true.

## Judging

Each judge scores every criterion 1-10. Criterion points = (score ÷ 10) × weight; the seven add up to 100. The final score is the average of the five judges, plus the L1 bonus (Q-009), so the maximum is 105. Weights are a draft and may change before the event.

| Criterion | Weight | What judges look for |
| --- | --- | --- |
| Technical Execution & Security | 25% | A working MVP; contracts and integrations that work; DeFi risks considered. End to end, deployed, with reentrancy, oracle and liquidation risks handled: 9–10. Mostly mock data: 5–6. |
| Market Need & Problem | 20% | A real problem for a specific user, and why existing solutions fall short. Clear: high. General: middle. Undefined: low. |
| Avalanche Integration | 20% | Avalanche contributes to the core function; the deployment is verifiable (Q-008). |
| Business Plan & Commercial Viability | 10% | Revenue model and target user |
| UI/UX & Branding | 10% | Usable and tidy |
| Pitching & Presentation | 10% | Clear story, a good demo, how the team answers questions |
| Innovation & Originality | 5% | What is different from existing solutions |

Scale: 9–10 exceptional, 7–8 strong, 5–6 adequate, 3–4 weak, 1–2 no work shown.

## Tracks

Put the `id` of every track the project fits in `project.tracks`. It is still one submission and one ranking.

The Hints column is what the organizers hope to see: Avalanche features and themes worth building around. They are hints, not requirements (Q-006). Lean on the ones that fit and name them in README section 2.

The Prompt column links an example prompt for the track. It is a starting point, not a requirement.

| id | Track | Build | Hints: what to lean on | Prompt |
| --- | --- | --- | --- | --- |
| `trading` | Trading & Liquidity | Spot DEXs, perps, RFQ, intent-based execution, liquidity management and trading tools. Prices from an oracle; trades that actually execute on Fuji. | AMM / CLOB, PERPS, CHAINLINK OR PYTH ORACLES | https://hackathon.4visiontalks.com/prompts/trading.md |
| `lending` | Lending & Yield | Money markets, isolated pools, vaults and yield strategies, liquidation tooling. Show what the protocol does when prices drop sharply. | LENDING, VAULTS (ERC-4626), LIQUIDATIONS | https://hackathon.4visiontalks.com/prompts/lending.md |
| `payments` | Payments & Stablecoins | Payroll, invoices, merchant payments, remittances and stablecoin rails. Something a normal company could use tomorrow. | STABLECOINS, ERC-4337 GASLESS UX, x402 | https://hackathon.4visiontalks.com/prompts/payments.md |
| `infra` | DeFi Infrastructure & Risk | Risk dashboards, simulation, monitoring, security and developer tools. Your own Avalanche L1 where it is justified. | RISK, SECURITY, AVALANCHE L1, ICM | https://hackathon.4visiontalks.com/prompts/infra.md |
| `rwa` | Real-World Assets | Vaults, collateral and compliance layers for tokenized bonds, funds, invoices and commodities. A real financial use, not only the asset. | RWA, COLLATERAL, PERMISSIONED L1 | https://hackathon.4visiontalks.com/prompts/rwa.md |
| `tokenization` | Tokenization | What the token does after it is minted: transfer rules, permissioned access, secondary markets, yield distribution. | TOKEN STANDARDS, ALLOWLISTS, ICTT | https://hackathon.4visiontalks.com/prompts/tokenization.md |

## Prizes

$2,000 in cash plus up to $100,000 in credits. One ranking across all tracks.

| Place | Cash | DT Cloud credit | Boundless inference credit |
| --- | --- | --- | --- |
| 1st | $1,000 | $10,000 | $150 |
| 2nd | $600 | $10,000 | $100 |
| 3rd | $400 | $10,000 | $100 |

- ScaleX Build Forward Award: a working session with the ScaleX investment team, an experience-sharing session with a fitting portfolio founder, and a follow-up meeting 30 days later.
- Every participant: a $2,000 DT Cloud discount code.
- Boundless inference credits work with Qwen, GLM, MiniMax and Kimi models; by Boundless's estimate, $100 covers about 260,000 requests on GLM-5.3 Flash. The organizers announce how credits and codes are handed out.

## Ecosystem

Tools and their documentation. Read the docs, or ask the Avalanche MCP server, before integrating anything; verify endpoints, contract addresses and SDK versions instead of assuming them.

| Tool | What it is | Docs | Website | GitHub |
| --- | --- | --- | --- | --- |
| Avalanche MCP server | Read-only docs, CLI, RPC, ACP and code lookups for agents | https://build.avax.network/docs/tooling/ai-llm/mcp-server | https://build.avax.network/api/mcp | https://github.com/ava-labs/builders-hub |
| Avalanche Builder Hub | Docs, academy, console | https://build.avax.network/docs | https://build.avax.network/ | https://github.com/ava-labs |
| Builder Console | Faucet, L1 creation and management | https://build.avax.network/docs | https://build.avax.network/console | |
| Avalanche CLI | Create and run Avalanche L1s | https://build.avax.network/docs/tooling/avalanche-cli | | https://github.com/ava-labs/avalanche-cli |
| ICM (Avalanche Warp Messaging) | Messages between L1s | https://build.avax.network/docs/cross-chain/avalanche-warp-messaging/overview | | https://github.com/ava-labs/icm-contracts |
| ICTT | Token transfers between L1s | https://build.avax.network/docs/cross-chain/interchain-token-transfer/overview | | https://github.com/ava-labs/icm-contracts |
| Core | Avalanche wallet | | https://core.app/ | |
| Snowtrace | Block explorer | | https://snowtrace.io/ | |
| Chainlink Data Feeds | Price oracles on Avalanche | https://docs.chain.link/data-feeds/price-feeds/addresses?network=avalanche | https://chain.link/ | |
| Pyth | Price oracles | https://docs.pyth.network/price-feeds/contract-addresses/evm | https://pyth.network/ | |
| LFJ | DEX (Liquidity Book) | | https://lfj.gg/ | https://github.com/lfj-gg |
| Aave | Lending | https://aave.com/docs | https://aave.com/ | https://github.com/aave-dao/aave-v3-origin |
| BENQI | Lending and liquid staking | https://docs.benqi.fi/ | https://benqi.fi/ | |
| GMX | Perpetuals | https://docs.gmx.io/ | https://gmx.io/ | https://github.com/gmx-io |
| Foundry | Solidity testing and deployment | https://book.getfoundry.sh/ | | https://github.com/foundry-rs/foundry |
| OpenZeppelin Contracts | Audited contract building blocks | https://docs.openzeppelin.com/contracts | | https://github.com/OpenZeppelin/openzeppelin-contracts |
| Slither | Static analysis for Solidity | | | https://github.com/crytic/slither |

### Partner notes

- Avalanche MCP server: read-only and rate-limited to 60 requests per minute per client. Browser requests are only allowed from claude.ai and build.avax.network; CLI and IDE agents are not affected. Usage is logged anonymously (tool names, counts, latency; queries truncated). Report abuse or security issues to security@avalabs.org.
- Composing with live protocols: on Fuji, check which protocols and feeds actually have testnet deployments (`docs_search` or `blockchain_get_contract_info`) before designing around them. If one is mainnet-only, mock it, say so (Q-011), and keep the interface identical so the swap is a config change.
- Own L1: Avalanche CLI and the Builder Console cover an EVM L1 with its own gas token, allowlists and fee settings; ICM/ICTT connect it to C-Chain. Budget a day for it, and only do it for a reason (Q-009).
- DT Cloud and Boundless support the hackathon. Credit details are under Prizes.

## Community

| Channel | Link | What it is for |
| --- | --- | --- |
| Event page | https://4visiontalks.com/etkinlikler/4vision-team1-hackathon | Program, venue, jury, prizes |
| Kickoff | Online, 2026-12-02T16:00:00Z | Rules, how to submit (the team page), questions |
| Mentors | At Arkhaus on 2026-12-05 | Technical help during the build (judges do not give technical guidance) |
| Team1 Türkiye on X | https://x.com/Team1TUR | Hackathon announcements and updates |
| Team1 Türkiye on Telegram | https://t.me/team1turkiye | Questions, finding teammates |
| Team1 Türkiye | https://turkiye.team1.network/ | The co-host's community site |
