A comprehensive DeFi project featuring a 4-token AMM and trading bots.
quadriswap/
├── quadriswap-contract/ # 4-token AMM smart contracts
├── trading-bots/ # Python arbitrage bots
└── README.md # This file
This project consists of two main components:
A 4-token Automated Market Maker that maintains the invariant k^4 = A × B × C × D.
Key Features:
- 4-token constant product formula
- Equilibrium-based fee structure (0%, 0.2%, or 0.5%)
- Dynamic reward/penalty system
- Batch swapping through token paths
Bots that monitor QuadriSwap pools and execute profitable arbitrage opportunities across different networks or in the same pool.
Bot Types:
- Noise makers
- Rebalancers
- Intra-pool arbitrageurs (within the same pool)
- Cross-network arbitrageurs
The following tables list the deployed contract addresses on Sepolia and Base Sepolia testnets, as well as the bot addresses that interact with these contracts:
| Contract | Sepolia | Base Sepolia |
|---|---|---|
| QuadriSwap | 0x1a832A7AbB39a1cc5fd5256301902257016bD569 | 0x968CfE76c78F2b0157e2874de59db7fA54124783 |
| TokenA | 0xD884830b39a54af8B5Fe51C6FC522EBD1d08A1aa | 0x160a30590FfdEF53BFFe30873B28CbD4e269FEc3 |
| TokenB | 0x56C56075681a4B7DF36516A225eC309415eAFA21 | 0x890b08dc4Aae7bB778fC63738021C62D900f860A |
| TokenC | 0x1DaD64F7a6ED6e6C01457e9e5Dd3aFE8710019D1 | 0xe7c1a74fA129A13871A363d72bD59D3d2fAFe4dD |
| TokenD | 0x305297741dD40a353CF59A117e43CFF9D3A68bb4 | 0x9a93916fFE2cB76ff564eE801E7a90AfD0d4Db21 |
| RewardToken | 0xbEE197186B68AA10901bB551165874E99Fb798E6 | 0xB9Ef15F9EF12B99F0b804BCb96417447eb42f5eC |
| Bot | Address |
|---|---|
| Arbitrageur | 0x482C7959Fd27Dd6680011CB479c8e4CADB76E48D |
| Rebalancer | 0x3e2011ED9fbba7FF19F4d1188f6cf990AA5E1241 |
| Noise Maker 1 | 0x4f05aFE51c40C75FBD39Fb5E91Dd57D867d4A9B3 |
| Noise Maker 2 | 0x1Fb74FaFdEcad643843Ba42911fa7Dd8511E6e7A |
| Noise Maker 3 | 0x8D99A8a5f3D4Ca430155D0E9553a7Dd081497878 |
| Noise Maker 4 | 0xB73161BE1c33D53c738025e3531a70bB3Ab8bE09 |
| Noise Maker 5 | 0x4aFa92E059dD7acb71bf04adAA35be1DF1946e73 |