Open
Conversation
🟡 Heimdall Review Status
|
Add Uniswap V4 swap functionality with the following features: - get_v4_quote: Get price quotes for token swaps - swap_exact_input: Execute swaps with exact input amount - swap_exact_output: Execute swaps with exact output amount Supports Base and Base Sepolia networks using Universal Router architecture. Includes automatic ERC20 approvals, slippage protection, and native ETH support. Co-authored-by: guglxni <your-email@example.com>
- Add quoteExactOutputSingle to QUOTER_ABI for accurate input estimation - Implement proper balance checks before swapExactOutput execution - Fix infinite approval bug - now only approves maxInputAmount with slippage - Add slippage validation (0.01% to 50%) in schemas - Add EIP-55 checksum address validation using viem's getAddress - Add comprehensive security-focused unit tests - Fixes FINDING-001, FINDING-002, FINDING-003, FINDING-005, FINDING-010 All 41 tests passing
- Fix network ID from 'base' to 'base-mainnet' per agentkit convention - Update all contract addresses to verified values from Uniswap V4 docs - Fix sqrtPriceLimitX96 from 0n to proper MIN/MAX_SQRT_RATIO limits - Add MIN_SQRT_RATIO and MAX_SQRT_RATIO constants - Fix prettier/eslint formatting issues - Update test mock network IDs and assertions - Add Uniswap V4 provider listing to main README - Update provider README with correct addresses and network IDs
0b6c7d5 to
3bc6054
Compare
This was referenced Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #952
Summary
Summary
Add a new action provider enabling AI agents to interact with Uniswap V4's singleton PoolManager architecture.
Motivation
Uniswap V4 is the latest version of the Uniswap protocol, featuring:
AgentKit currently has no Uniswap integration, and V4 is the production version deployed on Base Mainnet.
Proposed Actions
get_v4_quoteswap_exact_inputswap_exact_outputSupported Networks
base-mainnet)base-sepolia)Implementation
Additional Context
All contract addresses sourced from https://docs.uniswap.org/contracts/v4/deployments