For Builders & AI Agents
Build on LiquidClaw
LiquidClaw is designed to be composable, permissionless, and agent-friendly. Whether you're building a trading bot, a liquidity management agent, or an entirely new DeFi strategy — our contracts are ready for you.
No API keys. No registration. No rate limits. Just open smart contracts on Base.
Integration Guide by Use Case
Trading Agents
1. Get a quote: Router.getAmountsOut(amountIn, routes[])
2. Execute the swap: Router.swapExactTokensForTokens(amountIn, amountOutMin, routes[], to, deadline)
| Function | Description |
|---|
swapExactTokensForTokens() | Standard token → token swap |
swapExactETHForTokens() | Native ETH → any token |
swapExactTokensForETH() | Any token → native ETH |
getAmountsOut() | Get a quote before executing |
Liquidity Management Agents
1. Preview: Router.quoteAddLiquidity(tokenA, tokenB, stable, amountA, amountB)
2. Deposit: Router.addLiquidity(tokenA, tokenB, stable, amountADesired, amountBDesired, ...)
3. Stake: Gauge.deposit(lpAmount)
4. Monitor: Pool.getReserves() — watch for rebalancing signals
5. Withdraw: Router.removeLiquidity(...)
Voting Agents
1. Lock: VotingEscrow.createLock(amount, lockDuration)
2. Vote: Voter.vote(tokenId, pools[], weights[])
3. Claim: Voter.claimBribes() + Voter.claimFees()
4. Reset: Voter.reset(tokenId)
5. Repeat each epoch for optimal allocation
AI Vault Operators
1. Register: AIStrategyRegistry.registerStrategy(name, description, operator)
2. Be appointed as operator on an AIVault instance
3. Each epoch:
a. Analyze all pool volumes, fees, and bribes
b. Calculate optimal vote allocation
c. Call AIVault.voteBatch(tokenIds[], pools[], weights[])
d. Call claimBribes() + claimFees() to distribute rewards
Bribe Agents
1. Deposit bribe tokens to BribeVotingReward contract for your target pool
2. veLCLAW voters see the bribe offer and are incentivized to vote for your pool
3. More votes → more emissions → more LP rewards → deeper liquidity
Technical Specifications
| Parameter | Value |
|---|
| Chain | Base (Coinbase L2) |
| Chain ID | 8453 (mainnet) / 84532 (testnet) |
| Token Standard | LCLAW: ERC-20 + ERC-2612 Permit |
| veNFT Standard | veLCLAW: ERC-721 |
| Solidity Version | 0.8.19 |
| Pool Architecture | Minimal Proxy (EIP-1167 clones) |
| Fee Range | 0.01% — 0.50% (configurable per pool) |
| Meta-transactions | ERC-2771 (gasless tx support) |
| Oracle | Built-in TWAP oracle per pool |
| Epoch Duration | 1 week (604,800 seconds) |
| Max Lock | 2 years |
Contract Addresses (Base Sepolia — Live)
| Contract | Address |
|---|
| LCLAW Token | 0x8D4DeBA522eB9FaB5Edb7DF61398C450FF6898c3 |
| Router | 0xc64eD8215CA17Ba02551ED721C0F4ecEd566D51B |
| PoolFactory | 0x3BcFcca5b86eD04a00D975BC7d9ceC408d5f299B |
| VotingEscrow | 0xE905259865327516096561FEE8E0832A311BC0c9 |
| Voter | 0x5259EC22e51A734506cB2f4a810E92Ad0F2C0927 |
| Minter | 0xB5aFF886cF06699438b77Fe898966858ea78c928 |
| RewardsDistributor | 0x347D178b332C0E3DF68FEccA733780335D1D2B1a |
| AIVault | 0x5249dbb911aE1057a049cbFf131B5b0FA58d39b2 |
| AIStrategyRegistry | 0x4eBa60705742A56A1734cD35Ce4f88fC2e976905 |
| LCLAW/WETH Pool | 0x82C3342f2c22F05Ed7c29B846c24522CD7DCC49C |
| Gauge | 0x4ed315e71b55f925492d35dfdebf7879d6051cd5 |
Architecture Overview
┌─────────────────────────────────────────────────┐
│ USER / AI AGENT │
└──────┬──────────┬──────────┬───────────────────┘
│ │ │
┌────▼───┐ ┌───▼────┐ ┌──▼──────────┐
│ Router │ │ Voter │ │ AI Vault │
└────┬───┘ └───┬────┘ └──┬──────────┘
│ │ │
┌────▼──────┐ ┌▼────────┐│ ┌──────────────────┐
│ Pools │ │ Gauges ││ │AIStrategyRegistry │
│(vol/stbl) │ │(rewards)││ └──────────────────┘
└───────────┘ └────┬────┘│
┌────▼────┐│
│ Minter │◄┘
└────┬────┘
┌────▼──────────┐
│VotingEscrow │
│(veLCLAW NFTs) │
└───────────────┘
Best Practices
- Batch where possible. Use
voteBatch() instead of individual vote() calls to save gas. - Check reserves before large operations. Call
Pool.getReserves() to understand liquidity depth. - Set reasonable deadlines. All swap and liquidity functions accept a deadline parameter.
- Monitor epoch boundaries. Voting resets each epoch. Vote early to lock in rewards.
- Leverage ERC-2771. If you want to sponsor gas for your users, the protocol supports meta-transactions out of the box.