Suidex-V2/suidex-v2-contracts
GitHub: Suidex-V2/suidex-v2-contracts
Stars: 0 | Forks: 0
# SuiDex V2 — AMM Smart Contracts
Constant-product AMM on Sui with yield farming, token locking, and emission controls. Audited by [SpyWolf](https://spywolf.co) and [HackenProof](https://hackenproof.com/audit-programs/suidex-audit-contest).
## Contracts
| Module | Description |
|--------|-------------|
| `factory.move` | Creates and manages trading pairs |
| `pair.move` | AMM pools — swaps, LP mint/burn, fee distribution |
| `router.move` | User-facing interface for swaps and liquidity |
| `library.move` | AMM math utilities (reserves, quotes, amounts) |
| `math_utils.move` | Integer square root for liquidity calculations |
| `suifarm.move` | Yield farming — LP and single-asset staking |
| `victorytoken.move` | VICTORY reward token (6 decimals) |
| `token_locker.move` | Lock VICTORY for enhanced rewards + SUI revenue share |
| `global_emission_controller.move` | 156-week emission schedule with decay |
## Deployed
| | |
|---|---|
| **Package** | `0xbfac5e1c6bf6ef29b12f7723857695fd2f4da9a11a7d88162c15e9124c243a4a` |
| **Network** | Sui Mainnet |
| **Verified** | [Suiscan](https://suiscan.xyz/mainnet/object/0xbfac5e1c6bf6ef29b12f7723857695fd2f4da9a11a7d88162c15e9124c243a4a) |
## Key Features
- **Constant Product AMM** — 0.3% trading fees, multi-hop swaps, slippage protection
- **Fee Distribution** — LP providers, team, locker, and buyback splits
- **Yield Farming** — LP token and single-asset staking with VICTORY rewards
- **Token Locking** — 7d / 90d / 365d / 1095d lock periods with tiered SUI revenue sharing
- **156-Week Emissions** — Bootstrap phase (weeks 1-4), then 1% weekly decay
## Fee Structure
Trading Fees: 0.3% total
LP Providers: 0.15%
Team: 0.06%
Locker: 0.03%
Buyback: 0.03%
## Build
sui move build
sui move test # 186 tests
## Security
- [SpyWolf Audit — SuiDex V2](https://github.com/Suidex-V2/suidex-audits/blob/main/spywolf/suidex-v2-audit.pdf) (August 2025)
- [SpyWolf Audit — SuiDex DEX](https://github.com/Suidex-V2/suidex-audits/blob/main/spywolf/suidex-dex-audit.pdf) (August 2025)
- [HackenProof Audit Contest](https://hackenproof.com/audit-programs/suidex-audit-contest)
- [HackenProof DualDefense Audit](https://hackenproof.com/audit-programs/suidex-sc-dualdefense-audit)
## Related
- [SuiDex V3 CLMM](https://github.com/Suidex-V2/suidex-v3-clmm) — Concentrated liquidity upgrade
- [Security Audits](https://github.com/Suidex-V2/suidex-audits) — All audit reports
- [Website](https://suidex.org)
## License
MIT — see [LICENSE](LICENSE)