fix(pancakeswap-v3-plugin): sync to okx v1.0.5 + biz-type/strategy attribution (v1.0.6)#82
Conversation
…tribution (v1.0.6)
Brings mig-pre/main from v1.0.4 to v1.0.6 — sync of v1.0.4 → v1.0.5
already on okx/main, plus biz-type/strategy attribution layered on top.
== New in v1.0.6 ==
Add `--biz-type dapp --strategy pancakeswap-v3-plugin` to every
onchainos `wallet contract-call` invocation. Strategy reads from
Cargo.toml via `env!("CARGO_PKG_NAME")` — no name drift.
EVM-012 sweep deferred to a follow-up PR; this PR's scope is attribution.
Version bump: mig-pre v1.0.4 → v1.0.6 (PATCH).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔨 Phase 2: Build Verification — ✅ PASSED
Build succeeded. Compiled artifact uploaded as workflow artifact. Source integrity: commit SHA `` is the content fingerprint. |
📋 Phase 3: AI Code Review Report — Score: 88/100
1. Plugin Overview
Summary: A Rust-based plugin for swapping tokens and managing concentrated liquidity positions on PancakeSwap V3 across Ethereum, BNB Chain, Base, Arbitrum, and Linea. Provides quote, swap, pools, positions, add/remove liquidity, and quickstart commands. All transaction signing/broadcasting is delegated to the onchainos CLI (TEE-based wallet). Target Users: DeFi users wanting to interact with PancakeSwap V3 via AI agent commands without leaving the conversation. 2. Architecture AnalysisComponents: Skill (SKILL.md, SUMMARY.md) + Rust binary (src/*.rs) Skill Structure: SKILL.md includes pre-flight (auto-injected), 7 commands (quote, swap, pools, positions, add-liquidity, remove-liquidity, quickstart), contract addresses table, common token addresses for 5 chains, changelog. References cli-reference internally. Data Flow:
Dependencies:
3. Auto-Detected Permissionsonchainos Commands Used
Wallet Operations
External APIs / URLs
Chains Operated OnEthereum (1), BNB Chain (56), Base (8453), Arbitrum One (42161), Linea (59144) Overall Permission SummaryThe plugin reads token balances, pool state, and LP positions via public RPC, and executes ERC-20 approvals + PancakeSwap V3 swap/mint/decrease/collect via the onchainos TEE wallet. All write operations require 4. onchainos API ComplianceDoes this plugin use onchainos CLI for all on-chain write operations?Yes — all signing and broadcasting is delegated to On-Chain Write Operations (MUST use onchainos)
Data Queries (allowed to use external sources)
External APIs / Libraries DetectedPublic RPC endpoints (publicnode.com), TheGraph subgraphs. All declared in plugin.yaml Verdict: ✅ Fully Compliant5. Security AssessmentStatic Rule Scan (C01-C09, H01-H09, M01-M08, L01-L02)
LLM Judge Analysis (L-PINJ, L-MALI, L-MEMA, L-IINJ, L-AEXE, L-FINA, L-FISO)
Toxic Flow Detection (TF001-TF006)No toxic flows detected. H05 (financial) + M07 boundary-present means TF006 does not trigger. Prompt Injection ScanNo injection patterns. Token symbols are looked up via Result: ✅ Clean Dangerous Operations CheckPlugin executes DEX swaps, approvals, and LP mint/burn. All write commands require Result: ✅ Safe Data Exfiltration RiskNo exfiltration. Only POSTs are JSON-RPC calls and TheGraph queries to declared endpoints. No environment variable reads beyond standard CARGO_PKG_NAME. Result: ✅ No Risk Overall Security Rating: 🟢 Low Risk6. Source Code SecurityLanguage & Build ConfigRust, entry: Dependency Analysis
No suspicious or unmaintained dependencies. Code Safety Audit
Does SKILL.md accurately describe what the source code does?Yes — commands, parameters, contract addresses, fee tiers, slippage handling all match implementation. Verdict: ✅ Source Safe7. Code ReviewQuality Score: 88/100
Strengths
Issues Found
8. Language Check
9. SUMMARY.md Review
11. Recommendations
12. Reviewer SummaryOne-line verdict: Well-engineered PancakeSwap V3 plugin with strong security practices, fully delegating signing to onchainos TEE; safe to merge. Merge recommendation: ✅ Ready to merge Blockers (if any): No blockers found. Non-blocking improvements: Update changelog to include v1.0.6 entry; consider validating user-provided token addresses against an allowlist when symbol resolution fails. Generated by Claude AI via Anthropic API — review the full report before approving. |
✅ Phase 4: Publish CompletePlugins:
Published by Plugin Store CI |
Brings mig-pre v1.0.4 → v1.0.6. Sync of v1.0.4 → v1.0.5 already on okx/main + biz-type/strategy attribution. EVM-012 sweep deferred.