SushiSwap SDK

AdvisoryAudited by Static analysis on Apr 30, 2026.

Overview

No suspicious patterns detected.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

Code based on this example can spend wallet funds in an irreversible swap if executed with a funded wallet.

Why it was flagged

The reference shows submitting API-generated calldata as an on-chain transaction. This is purpose-aligned for a swap SDK, but it is a high-impact financial action.

Skill content
const hash = await walletClient.sendTransaction({
    account: privateKeyToAccount(PRIVATE_KEY),
    data: tx.data,
    to: tx.to,
    value: tx.value,
  })
Recommendation

Require explicit user confirmation and verify chain, token addresses, amount, slippage, recipient/router, and simulation results before sending any transaction.

What this means

If the private key is exposed or used by an untrusted process, the wallet's funds could be at risk.

Why it was flagged

The execution example reads a wallet private key from the environment to sign the swap transaction. This is expected for transaction execution, but private keys are highly sensitive.

Skill content
const PRIVATE_KEY = process.env.PRIVATE_KEY as Hex
...
account: privateKeyToAccount(PRIVATE_KEY)
Recommendation

Use a dedicated low-balance wallet or secure signer, avoid exposing PRIVATE_KEY to logs or agent context, and do not execute transactions from a main wallet without review.

What this means

A project may install different package versions over time, and dependency risk depends on the external package registry.

Why it was flagged

The skill instructs users to install external packages without pinned versions. This is normal for SDK setup, but package provenance and resolved versions are outside the supplied artifacts.

Skill content
pnpm add sushi viem
...
npm add sushi viem
...
yarn add sushi viem
...
bun add sushi viem
Recommendation

Install from trusted sources, use a lockfile or pinned versions, and verify that the packages are the intended SushiSwap SDK dependencies.

What this means

Swaps may include fee attribution or revenue sharing for the integrator/referrer.

Why it was flagged

The skill discloses that swap calls require a referrer and that default fees may benefit the integrator. This is not hidden, but users should understand who sets the referrer.

Skill content
The `referrer` parameter must be specified... The agent or integrator must identify themselves... 80% to the integrator (referrer)
Recommendation

Clearly disclose the referrer and fee behavior to end users, and do not let an agent silently choose a monetized referrer.