SWOOP Dex is an automated liquidity protocol built on the Harmony blockchain, offering decentralized, censorship-resistant, and secure trading experiences. As a fork from Uniswap, SWOOP brings familiar DeFi functionality with Harmony-specific optimizations.
How SWOOP Works
SWOOP operates as an automated liquidity protocol powered by:
- Constant product formula (
x * y = k) - Non-upgradeable smart contracts on Harmony
- 0.30% trading fee added to liquidity pools
Key features include:
- Decentralized liquidity pools for any HRC-20 token pair
- Permissionless participation - anyone can become a liquidity provider
- Arbitrage opportunities maintain price alignment with external markets
๐ Discover how SWOOP compares to other DEXs
Technical Architecture
Smart Contract Modifications
SWOOP's core contracts were adapted from Uniswap V2 with minimal changes:
| Contract | Main Changes |
|---|---|
| UniswapV2ERC20 | Token name/symbol updated to SWOOP/SWP |
| UniswapV2Library | Updated init code hash and package references |
| UniswapV2Router02 | Updated package imports |
Additional Components
Four new repositories were created specifically for SWOOP:
- swoop-utils - Wallet connectors and harmony-js/core wrappers
- swoop-cli - Contract testing interface
- swoop-deployment - Deployment scripts and guides
- swoop-default-token-list - Harmony-native token list
UI/UX Adaptations
The interface required significant modifications:
- Replaced ethers.js with harmony-js/core
- Implemented custom wallet connectors for OneWallet & MathWallet
- Updated token references and chain IDs
- Modified interaction flows for Harmony compatibility
Cross-Chain Bridges on Harmony
Harmony supports multiple bridge solutions:
| Bridge | Type | Key Feature |
|---|---|---|
| Binance Chain | Trustless | Supports 100+ BNB assets |
| Iris | Permissionless | For all ERC20 tokens |
| BTC | SPV-based | Supports Bitcoin-like blockchains |
๐ Learn more about Harmony's cross-chain capabilities
Developer Resources
- SDK: github.com/harmony-one/swoop-sdk
- Documentation: Notion page
- Community: Telegram group
FAQ
Q: How does SWOOP differ from Uniswap?
A: While functionally similar, SWOOP is optimized for Harmony's blockchain with faster finality and lower fees, plus Harmony-specific wallet support.
Q: What tokens can I trade on SWOOP?
A: Any HRC-20 tokens, plus cross-chain assets via Harmony's bridge systems.
Q: Is SWOOP safe to use?
A: As with any DeFi protocol, users should exercise caution, but SWOOP uses audited, non-upgradeable contracts based on Uniswap's battle-tested code.
Q: How do I become a liquidity provider?
A: Simply deposit equivalent values of two tokens into a pool to receive LP tokens representing your share.
Q: What wallets support SWOOP?
A: Currently OneWallet and MathWallet, with more integrations planned.