swap-integration
Pass
Audited by Gen Agent Trust Hub on Mar 24, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [EXTERNAL_DOWNLOADS]: Fetches Node.js packages from the official npm registry.
- Official vendor packages: @pancakeswap/smart-router, @pancakeswap/sdk, @pancakeswap/v3-sdk, @pancakeswap/universal-router-sdk.
- Well-known community libraries: viem, wagmi, @tanstack/react-query.
- [EXTERNAL_DOWNLOADS]: Recommends installing system utilities for blockchain interaction.
- Tools include curl, jq, and the foundry toolkit.
- [COMMAND_EXECUTION]: Uses curl to fetch swap quotes from the official PancakeSwap Routing API (https://router.pancakeswap.finance/v0/quote).
- [CREDENTIALS_UNSAFE]: Code examples reference process.env.PRIVATE_KEY for account initialization and transaction signing, which is a standard practice for managing secrets in environment variables during development.
Audit Metadata