ZentraFinance/public_contracts

GitHub: ZentraFinance/public_contracts

Zentra Protocol 是一套基于 AAVE V3 的已审计借贷协议智能合约,提供双重质押、收入分成和治理功能,已部署在 Citrea 主网。

Stars: 0 | Forks: 0

# Zentra Protocol — 智能合约 Zentra 的已审计智能合约,这是一个基于 AAVE V3 的借贷协议,具备双重质押 (sZNT / uZNT)、superstaking、协议收入分成和治理功能。已上线 Citrea 主网 (chain ID 4114)。 本仓库是已审计合约源码的公开审查版本。 ## 审计 由 Sherlock 审计 — 比赛 `2026-01-zentra-finance-jan-12th`。所有审计修复的 PR (issue #35–#83 以及审查后的修复) 均已合并到本仓库的源码中。 ## 布局 - `contracts/` — Zentra 协议 (通过根目录的 Hardhat 配置编译): - `governance/` — ZNT 治理代币, Governor, Timelock - `staking/` — sZNT, uZNT, ZentraStakingProtocol, ZentraSuperstaking - `revenue/` — RevenueManager - `rewards/` — ZentraRewardsController + 转账策略 - `security/` — SecurityIntegrationV2, BadDebtManager, DustCollector, EnhancedLiquidator, DynamicCapsController - `oracle/` — ZentraOracle, RedStone 适配器, StaticStablePriceFeed - `token/` — ZentraLiquidityGenerator (CTR LGE,已部署版本) - `treasury/`, `periphery/`, `interfaces/` - `aave-v3-core/` — 已审计的 AAVE V3 核心 **包含 Zentra 的 pool hooks** (`Pool`, `PoolConfigurator`, `IPoolHooks` 和 Z-tokens) 的已部署及链上验证版本。这是借贷核心的源码基准;其 bytecode 已经部署并在 Citrea 上的区块浏览器上完成了验证。 ## 构建 ``` npm ci npx hardhat compile ``` 这会编译 `contracts/`。`aave-v3-core/` 是带有 hook 的 Pool 的已审计且通过链上验证的源码 — 它在发布时已完成构建和部署,并在此处作为源码基准提供。 ## 网络 Citrea 主网 — chain ID 4114。本仓库中的合约 bytecode 已部署并在 Citrea 上的区块浏览器上完成了验证。
标签:AAVE V3, DeFi, Solidity, 借贷协议, 区块链, 去中心化治理, 智能合约, 质押