AlsoSwap Protocol is an upgradeable AMM DEX for DAO and community ERC20 tokens in Ethereum Sepolia.
It provides a full on-chain stack for token listing, liquidity provisioning, and token exchange with constant-product pricing. Projects can launch pools for governance tokens, LPs can provide liquidity and earn fees, and users can swap tokens through a router with slippage/deadline controls.
This repository contains the core protocol contracts, deployment scripts, upgrade scripts, verification scripts, and high-coverage test suites.
- Built for DAO token ecosystems: easy onboarding of project tokens into AMM pools.
- Real liquidity and market-driven pricing: pool reserves define executable spot price.
- Practical developer stack: routers, oracle, governance, and proxy-based upgrades.
- Testnet-first safety: strong engineering practices without mainnet-level economic assumptions.
- Create pools for any ERC20 pair through
PoolFactory. - Add and remove liquidity with LP share accounting.
- Swap tokens via
Routerand optimizedRouterV2paths. - Swap ETH paths through WETH wrappers.
- Use flash swap mechanics for advanced integrations.
- Query TWAP from
PriceOraclefor safer external pricing usage. - Control protocol parameters with timelocked governance flows.
- A DAO token project creates or reuses a pool for token pairs.
- Liquidity providers deposit both assets and receive LP shares.
- Traders swap through router endpoints.
- Pool output is calculated from constant-product math with fee logic.
- Protocol fee portion is sent to treasury.
- Oracle tracks cumulative prices for TWAP-based quoting.
- Governance can update fee and safety parameters via timelock.
- More advanced route search (multi-hop >2 and liquidity-aware ranking).
- Additional risk controls for flash swap and pool-level limits.
- Better analytics surface for fee and volume dashboards.
- Optional frontend and SDK integration package.
This codebase is designed for developer usage and public testing on Sepolia. It follows strong Solidity engineering practices, but it is not positioned as audited mainnet production infrastructure by default. Always review the latest docs and run your own risk checks before integration.
2026 AlsoSwap Contributors
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
If you did not receive a copy, see: https://www.gnu.org/licenses/
