[INFO] cloning repository https://github.com/guxc20/mcp-defi-agent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guxc20/mcp-defi-agent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguxc20%2Fmcp-defi-agent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguxc20%2Fmcp-defi-agent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 32f43d8982903421c84b659c1228526957fb5ba0
[INFO] testing guxc20/mcp-defi-agent against 1.95.0 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguxc20%2Fmcp-defi-agent" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/guxc20/mcp-defi-agent
[INFO] finished tweaking git repo https://github.com/guxc20/mcp-defi-agent
[INFO] tweaked toml for git repo https://github.com/guxc20/mcp-defi-agent written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/guxc20/mcp-defi-agent on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/guxc20/mcp-defi-agent already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded camino v1.2.1
[INFO] [stderr]   Downloaded schemars_derive v1.1.0
[INFO] [stderr]   Downloaded rmcp-macros v0.8.5
[INFO] [stderr]   Downloaded rmcp v0.8.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cae70912c984fe5557f04d056ff337507c839f473af0a342a1c0ba6f8c23a189
[INFO] running `Command { std: "docker" "start" "-a" "cae70912c984fe5557f04d056ff337507c839f473af0a342a1c0ba6f8c23a189", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cae70912c984fe5557f04d056ff337507c839f473af0a342a1c0ba6f8c23a189", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cae70912c984fe5557f04d056ff337507c839f473af0a342a1c0ba6f8c23a189", kill_on_drop: false }`
[INFO] [stdout] cae70912c984fe5557f04d056ff337507c839f473af0a342a1c0ba6f8c23a189
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2c1823900db65cebbbaa83f4fb411290b7bf190dee04afc98d6a47160f83d92a
[INFO] running `Command { std: "docker" "start" "-a" "2c1823900db65cebbbaa83f4fb411290b7bf190dee04afc98d6a47160f83d92a", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling unicode-ident v1.0.22
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling hashbrown v0.16.0
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling generic-array v0.14.9
[INFO] [stderr]    Compiling winnow v0.7.13
[INFO] [stderr]    Compiling zerocopy v0.8.27
[INFO] [stderr]    Compiling toml_datetime v0.7.3
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling unicode-xid v0.2.6
[INFO] [stderr]    Compiling parity-scale-codec v3.7.5
[INFO] [stderr]    Compiling rustc-hex v2.1.0
[INFO] [stderr]    Compiling byte-slice-cast v1.2.3
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]    Compiling static_assertions v1.1.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling base16ct v0.2.0
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling find-msvc-tools v0.1.4
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling cc v1.2.45
[INFO] [stderr]    Compiling camino v1.2.1
[INFO] [stderr]    Compiling ff v0.13.1
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling indexmap v2.12.0
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]    Compiling group v0.13.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-bigint v0.5.5
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling syn v2.0.110
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling sha3 v0.10.8
[INFO] [stderr]    Compiling const_format_proc_macros v0.2.34
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling linux-raw-sys v0.11.0
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling sec1 v0.7.3
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling rfc6979 v0.4.0
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling signal-hook-registry v1.4.6
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling log v0.4.28
[INFO] [stderr]    Compiling uint v0.9.5
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling const_format v0.2.35
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.105
[INFO] [stderr]    Compiling const-hex v1.17.0
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling toml_parser v1.0.4
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling elliptic-curve v0.13.8
[INFO] [stderr]    Compiling ecdsa v0.16.9
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling toml_edit v0.23.7
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling k256 v0.13.4
[INFO] [stderr]    Compiling semver v1.0.27
[INFO] [stderr]    Compiling bumpalo v3.19.0
[INFO] [stderr]    Compiling rlp-derive v0.1.0
[INFO] [stderr]    Compiling tempfile v3.23.0
[INFO] [stderr]    Compiling proc-macro-crate v3.4.0
[INFO] [stderr]    Compiling fixed-hash v0.8.0
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling wasm-bindgen v0.2.105
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling eyre v0.6.12
[INFO] [stderr]    Compiling deranged v0.5.5
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling webpki-roots v0.25.4
[INFO] [stderr]    Compiling indenter v0.3.4
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling bs58 v0.5.1
[INFO] [stderr]    Compiling ripemd v0.1.3
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling time v0.3.44
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.105
[INFO] [stderr]    Compiling data-encoding v2.9.0
[INFO] [stderr]    Compiling untrusted v0.7.1
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling bech32 v0.9.1
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling pem v1.1.1
[INFO] [stderr]    Compiling salsa20 v0.10.2
[INFO] [stderr]    Compiling pbkdf2 v0.11.0
[INFO] [stderr]    Compiling send_wrapper v0.4.0
[INFO] [stderr]    Compiling darling_core v0.21.3
[INFO] [stderr]    Compiling scrypt v0.10.0
[INFO] [stderr]    Compiling hashers v1.0.1
[INFO] [stderr]    Compiling Inflector v0.11.4
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling pbkdf2 v0.12.2
[INFO] [stderr]    Compiling instant v0.1.13
[INFO] [stderr]    Compiling serde_derive_internals v0.29.1
[INFO] [stderr]    Compiling futures-locks v0.7.1
[INFO] [stderr]    Compiling dyn-clone v1.0.20
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling nu-ansi-term v0.50.3
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling impl-trait-for-tuples v0.2.3
[INFO] [stderr]    Compiling parity-scale-codec-derive v3.7.5
[INFO] [stderr]    Compiling derive_more-impl v1.0.0
[INFO] [stderr]    Compiling scale-info-derive v2.11.6
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling derive_more v1.0.0
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling auto_impl v1.3.0
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling strum_macros v0.26.4
[INFO] [stderr]    Compiling num_enum_derive v0.7.5
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.105
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling ref-cast-impl v1.0.25
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling js-sys v0.3.82
[INFO] [stderr]    Compiling darling_macro v0.21.3
[INFO] [stderr]    Compiling num_enum v0.7.5
[INFO] [stderr]    Compiling schemars_derive v1.1.0
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling ref-cast v1.0.25
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling darling v0.21.3
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling rmcp-macros v0.8.5
[INFO] [stderr]    Compiling simple_asn1 v0.6.3
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling strum v0.26.3
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling impl-serde v0.4.0
[INFO] [stderr]    Compiling toml_datetime v0.6.11
[INFO] [stderr]    Compiling serde_spanned v0.6.9
[INFO] [stderr]    Compiling cargo-platform v0.1.9
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling cargo_metadata v0.18.1
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]    Compiling coins-core v0.8.7
[INFO] [stderr]    Compiling jsonwebtoken v8.3.0
[INFO] [stderr]    Compiling uuid v0.8.2
[INFO] [stderr]    Compiling rlp v0.5.2
[INFO] [stderr]    Compiling coins-bip32 v0.8.7
[INFO] [stderr]    Compiling open-fastrlp-derive v0.1.1
[INFO] [stderr]    Compiling scale-info v2.11.6
[INFO] [stderr]    Compiling impl-codec v0.6.0
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling impl-rlp v0.3.0
[INFO] [stderr]    Compiling enr v0.10.0
[INFO] [stderr]    Compiling coins-bip39 v0.8.7
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling eth-keystore v0.5.0
[INFO] [stderr]    Compiling ethbloom v0.13.0
[INFO] [stderr]    Compiling primitive-types v0.12.2
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling schemars v1.1.0
[INFO] [stderr]    Compiling tracing-serde v0.2.0
[INFO] [stderr]    Compiling gloo-timers v0.2.6
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling futures-timer v3.0.3
[INFO] [stderr]    Compiling tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling rust_decimal v1.39.0
[INFO] [stderr]    Compiling toml v0.8.23
[INFO] [stderr]    Compiling ethereum-types v0.14.1
[INFO] [stderr]    Compiling tungstenite v0.20.1
[INFO] [stderr]    Compiling ethabi v18.0.0
[INFO] [stderr]    Compiling open-fastrlp v0.1.4
[INFO] [stderr]    Compiling ethers-core v2.0.14
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling tokio-tungstenite v0.20.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling rmcp v0.8.5
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling ethers-contract-abigen v2.0.14
[INFO] [stderr]    Compiling ethers-signers v2.0.14
[INFO] [stderr]    Compiling ethers-addressbook v2.0.14
[INFO] [stderr]    Compiling hyper-rustls v0.24.2
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling ethers-contract-derive v2.0.14
[INFO] [stderr]    Compiling ethers-providers v2.0.14
[INFO] [stderr]    Compiling ethers-etherscan v2.0.14
[INFO] [stderr]    Compiling ethers-contract v2.0.14
[INFO] [stderr]    Compiling ethers-middleware v2.0.14
[INFO] [stderr]    Compiling ethers v2.0.14
[INFO] [stderr]    Compiling mcp-defi-agent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub struct UniswapFactory {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stdout] 91 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:119:5
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct UniswapRouter {
[INFO] [stdout]     |            ------------- field in this struct
[INFO] [stdout] 118 |     contract: UniswapV2Router<Provider<Http>>,
[INFO] [stdout] 119 |     address: Address,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `schemars`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     schemars, tool, tool_handler, tool_router, ServerHandler, ServiceExt,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Deserialize`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use serde::Deserialize;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_token_address_parsed`
[INFO] [stdout]    --> src/main.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let base_token_address_parsed: ethers::types::Address = base_token_address
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_token_address_parsed`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `from_name`
[INFO] [stdout]    --> src/main.rs:410:13
[INFO] [stdout]     |
[INFO] [stdout] 410 |         let from_name = self.eth_client.get_token_name(&from_token).await.ok().unwrap_or_default();
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `to_name`
[INFO] [stdout]    --> src/main.rs:432:13
[INFO] [stdout]     |
[INFO] [stdout] 432 |         let to_name = self.eth_client.get_token_name(&to_token).await.ok().unwrap_or_default();
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `price_impact`
[INFO] [stdout]    --> src/main.rs:472:13
[INFO] [stdout]     |
[INFO] [stdout] 472 |         let price_impact = if amount_out > U256::zero() {
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_impact`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `simulation_error`
[INFO] [stdout]    --> src/main.rs:497:49
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let (simulation_success, estimated_gas, simulation_error) = self.eth_client
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulation_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/error.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum DeFiError {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout]  8 |     ConfigError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     InvalidAmount(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     InsufficientLiquidity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     SlippageTooHigh(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |     InsufficientBalance {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     TokenNotFound(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     SignatureError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DeFiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `chain_id` is never read
[INFO] [stdout]   --> src/ethereum/client.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct EthereumClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 15 |     chain_id: u64,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EthereumClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `chain_id`, `provider`, and `get_allowance` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:268:12
[INFO] [stdout]     |
[INFO] [stdout]  18 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 268 |     pub fn chain_id(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 273 |     pub fn provider(&self) -> &Provider<Http> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 532 |     pub async fn get_allowance(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/erc20.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct ERC20 {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 29 |     contract: ERC20Contract<Provider<Http>>,
[INFO] [stdout] 30 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `total_supply`, `allowance`, and `address` are never used
[INFO] [stdout]   --> src/ethereum/contracts/erc20.rs:65:18
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl ERC20 {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub async fn total_supply(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub async fn allowance(
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn address(&self) -> Address {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct UniswapPair {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 53 |     contract: UniswapV2Pair<Provider<Http>>,
[INFO] [stdout] 54 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `address` is never used
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl UniswapPair {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn address(&self) -> Address {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub struct UniswapFactory {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stdout] 91 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `all_pairs_length` is never used
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  94 | impl UniswapFactory {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn all_pairs_length(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UniswapRouter` is never constructed
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct UniswapRouter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `factory`, `weth`, `get_amounts_out`, `get_amounts_in`, and `quote` are never used
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:124:12
[INFO] [stdout]     |
[INFO] [stdout] 122 | impl UniswapRouter {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 123 |     /// 创建新的 Uniswap Router 实例
[INFO] [stdout] 124 |     pub fn new(address: Address, provider: Arc<Provider<Http>>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     pub async fn factory(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub async fn weth(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub async fn get_amounts_out(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 153 |     pub async fn get_amounts_in(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub async fn quote(
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 10s
[INFO] running `Command { std: "docker" "inspect" "2c1823900db65cebbbaa83f4fb411290b7bf190dee04afc98d6a47160f83d92a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2c1823900db65cebbbaa83f4fb411290b7bf190dee04afc98d6a47160f83d92a", kill_on_drop: false }`
[INFO] [stdout] 2c1823900db65cebbbaa83f4fb411290b7bf190dee04afc98d6a47160f83d92a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 706d6cf315efdbea8fbe64127479dd9888a81691bb40f2fc9f47e3cc211e2372
[INFO] running `Command { std: "docker" "start" "-a" "706d6cf315efdbea8fbe64127479dd9888a81691bb40f2fc9f47e3cc211e2372", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tokio-tungstenite v0.20.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling rmcp v0.8.5
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-rustls v0.24.2
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling ethers-providers v2.0.14
[INFO] [stderr]    Compiling ethers-etherscan v2.0.14
[INFO] [stderr]    Compiling ethers-contract v2.0.14
[INFO] [stderr]    Compiling ethers-middleware v2.0.14
[INFO] [stderr]    Compiling ethers v2.0.14
[INFO] [stderr]    Compiling mcp-defi-agent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/ethereum/contracts/erc20.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub struct UniswapFactory {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stdout] 91 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:119:5
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct UniswapRouter {
[INFO] [stdout]     |            ------------- field in this struct
[INFO] [stdout] 118 |     contract: UniswapV2Router<Provider<Http>>,
[INFO] [stdout] 119 |     address: Address,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub struct UniswapFactory {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stdout] 91 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:119:5
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct UniswapRouter {
[INFO] [stdout]     |            ------------- field in this struct
[INFO] [stdout] 118 |     contract: UniswapV2Router<Provider<Http>>,
[INFO] [stdout] 119 |     address: Address,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/ethereum/contracts/erc20.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `schemars`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     schemars, tool, tool_handler, tool_router, ServerHandler, ServiceExt,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Deserialize`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use serde::Deserialize;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/main.rs:667:9
[INFO] [stdout]     |
[INFO] [stdout] 667 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `schemars`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     schemars, tool, tool_handler, tool_router, ServerHandler, ServiceExt,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Deserialize`
[INFO] [stdout]   --> src/main.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use serde::Deserialize;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_token_address_parsed`
[INFO] [stdout]    --> src/main.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let base_token_address_parsed: ethers::types::Address = base_token_address
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_token_address_parsed`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `from_name`
[INFO] [stdout]    --> src/main.rs:410:13
[INFO] [stdout]     |
[INFO] [stdout] 410 |         let from_name = self.eth_client.get_token_name(&from_token).await.ok().unwrap_or_default();
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `to_name`
[INFO] [stdout]    --> src/main.rs:432:13
[INFO] [stdout]     |
[INFO] [stdout] 432 |         let to_name = self.eth_client.get_token_name(&to_token).await.ok().unwrap_or_default();
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `price_impact`
[INFO] [stdout]    --> src/main.rs:472:13
[INFO] [stdout]     |
[INFO] [stdout] 472 |         let price_impact = if amount_out > U256::zero() {
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_impact`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `simulation_error`
[INFO] [stdout]    --> src/main.rs:497:49
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let (simulation_success, estimated_gas, simulation_error) = self.eth_client
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulation_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/error.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum DeFiError {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout]  8 |     ConfigError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     InvalidAmount(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     InsufficientLiquidity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     SlippageTooHigh(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |     InsufficientBalance {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     TokenNotFound(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     SignatureError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DeFiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `chain_id` is never read
[INFO] [stdout]   --> src/ethereum/client.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct EthereumClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 15 |     chain_id: u64,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EthereumClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `chain_id`, `provider`, and `get_allowance` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:268:12
[INFO] [stdout]     |
[INFO] [stdout]  18 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 268 |     pub fn chain_id(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 273 |     pub fn provider(&self) -> &Provider<Http> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 532 |     pub async fn get_allowance(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/erc20.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct ERC20 {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 29 |     contract: ERC20Contract<Provider<Http>>,
[INFO] [stdout] 30 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `total_supply`, `allowance`, and `address` are never used
[INFO] [stdout]   --> src/ethereum/contracts/erc20.rs:65:18
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl ERC20 {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub async fn total_supply(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub async fn allowance(
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn address(&self) -> Address {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct UniswapPair {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 53 |     contract: UniswapV2Pair<Provider<Http>>,
[INFO] [stdout] 54 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `address` is never used
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl UniswapPair {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn address(&self) -> Address {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub struct UniswapFactory {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stdout] 91 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `all_pairs_length` is never used
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  94 | impl UniswapFactory {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn all_pairs_length(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `contract` and `address` are never read
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:118:5
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct UniswapRouter {
[INFO] [stdout]     |            ------------- fields in this struct
[INFO] [stdout] 118 |     contract: UniswapV2Router<Provider<Http>>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 119 |     address: Address,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `factory`, `weth`, `get_amounts_out`, `get_amounts_in`, and `quote` are never used
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:130:18
[INFO] [stdout]     |
[INFO] [stdout] 122 | impl UniswapRouter {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 130 |     pub async fn factory(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub async fn weth(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub async fn get_amounts_out(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 153 |     pub async fn get_amounts_in(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub async fn quote(
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_token_address_parsed`
[INFO] [stdout]    --> src/main.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let base_token_address_parsed: ethers::types::Address = base_token_address
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_token_address_parsed`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `from_name`
[INFO] [stdout]    --> src/main.rs:410:13
[INFO] [stdout]     |
[INFO] [stdout] 410 |         let from_name = self.eth_client.get_token_name(&from_token).await.ok().unwrap_or_default();
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `to_name`
[INFO] [stdout]    --> src/main.rs:432:13
[INFO] [stdout]     |
[INFO] [stdout] 432 |         let to_name = self.eth_client.get_token_name(&to_token).await.ok().unwrap_or_default();
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `price_impact`
[INFO] [stdout]    --> src/main.rs:472:13
[INFO] [stdout]     |
[INFO] [stdout] 472 |         let price_impact = if amount_out > U256::zero() {
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_impact`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `simulation_error`
[INFO] [stdout]    --> src/main.rs:497:49
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let (simulation_success, estimated_gas, simulation_error) = self.eth_client
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulation_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/error.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum DeFiError {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout]  8 |     ConfigError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     InvalidAmount(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     InsufficientLiquidity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     SlippageTooHigh(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |     InsufficientBalance {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     TokenNotFound(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     SignatureError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DeFiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `chain_id` is never read
[INFO] [stdout]   --> src/ethereum/client.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct EthereumClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 15 |     chain_id: u64,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EthereumClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `chain_id`, `provider`, and `get_allowance` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:268:12
[INFO] [stdout]     |
[INFO] [stdout]  18 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 268 |     pub fn chain_id(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 273 |     pub fn provider(&self) -> &Provider<Http> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 532 |     pub async fn get_allowance(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/erc20.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct ERC20 {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 29 |     contract: ERC20Contract<Provider<Http>>,
[INFO] [stdout] 30 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `total_supply`, `allowance`, and `address` are never used
[INFO] [stdout]   --> src/ethereum/contracts/erc20.rs:65:18
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl ERC20 {
[INFO] [stdout]    | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub async fn total_supply(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub async fn allowance(
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn address(&self) -> Address {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct UniswapPair {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 53 |     contract: UniswapV2Pair<Provider<Http>>,
[INFO] [stdout] 54 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `address` is never used
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 57 | impl UniswapPair {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn address(&self) -> Address {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub struct UniswapFactory {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stdout] 91 |     address: Address,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `all_pairs_length` is never used
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  94 | impl UniswapFactory {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn all_pairs_length(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UniswapRouter` is never constructed
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct UniswapRouter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `factory`, `weth`, `get_amounts_out`, `get_amounts_in`, and `quote` are never used
[INFO] [stdout]    --> src/ethereum/contracts/uniswap.rs:124:12
[INFO] [stdout]     |
[INFO] [stdout] 122 | impl UniswapRouter {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 123 |     /// 创建新的 Uniswap Router 实例
[INFO] [stdout] 124 |     pub fn new(address: Address, provider: Arc<Provider<Http>>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     pub async fn factory(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub async fn weth(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub async fn get_amounts_out(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 153 |     pub async fn get_amounts_in(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub async fn quote(
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 16s
[INFO] running `Command { std: "docker" "inspect" "706d6cf315efdbea8fbe64127479dd9888a81691bb40f2fc9f47e3cc211e2372", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "706d6cf315efdbea8fbe64127479dd9888a81691bb40f2fc9f47e3cc211e2372", kill_on_drop: false }`
[INFO] [stdout] 706d6cf315efdbea8fbe64127479dd9888a81691bb40f2fc9f47e3cc211e2372
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 10f0090728afaee2419c6ab830d7c489595f47a86deb1f74510df0893aed77c5
[INFO] running `Command { std: "docker" "start" "-a" "10f0090728afaee2419c6ab830d7c489595f47a86deb1f74510df0893aed77c5", kill_on_drop: false }`
[INFO] [stderr] warning: field `address` is never read
[INFO] [stderr]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stderr]    |
[INFO] [stderr] 89 | pub struct UniswapFactory {
[INFO] [stderr]    |            -------------- field in this struct
[INFO] [stderr] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stderr] 91 |     address: Address,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `address` is never read
[INFO] [stderr]    --> src/ethereum/contracts/uniswap.rs:119:5
[INFO] [stderr]     |
[INFO] [stderr] 117 | pub struct UniswapRouter {
[INFO] [stderr]     |            ------------- field in this struct
[INFO] [stderr] 118 |     contract: UniswapV2Router<Provider<Http>>,
[INFO] [stderr] 119 |     address: Address,
[INFO] [stderr]     |     ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `super::*`
[INFO] [stderr]    --> src/ethereum/contracts/erc20.rs:100:9
[INFO] [stderr]     |
[INFO] [stderr] 100 |     use super::*;
[INFO] [stderr]     |         ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `mcp-defi-agent` (lib) generated 2 warnings
[INFO] [stderr] warning: `mcp-defi-agent` (lib test) generated 3 warnings (2 duplicates) (run `cargo fix --lib -p mcp-defi-agent --tests` to apply 1 suggestion)
[INFO] [stderr] warning: unused import: `schemars`
[INFO] [stderr]   --> src/main.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 12 |     schemars, tool, tool_handler, tool_router, ServerHandler, ServiceExt,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `serde::Deserialize`
[INFO] [stderr]   --> src/main.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 15 | use serde::Deserialize;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `super::*`
[INFO] [stderr]    --> src/main.rs:667:9
[INFO] [stderr]     |
[INFO] [stderr] 667 |     use super::*;
[INFO] [stderr]     |         ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `base_token_address_parsed`
[INFO] [stderr]    --> src/main.rs:262:13
[INFO] [stderr]     |
[INFO] [stderr] 262 |         let base_token_address_parsed: ethers::types::Address = base_token_address
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_token_address_parsed`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `from_name`
[INFO] [stderr]    --> src/main.rs:410:13
[INFO] [stderr]     |
[INFO] [stderr] 410 |         let from_name = self.eth_client.get_token_name(&from_token).await.ok().unwrap_or_default();
[INFO] [stderr]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_name`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `to_name`
[INFO] [stderr]    --> src/main.rs:432:13
[INFO] [stderr]     |
[INFO] [stderr] 432 |         let to_name = self.eth_client.get_token_name(&to_token).await.ok().unwrap_or_default();
[INFO] [stderr]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_name`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `price_impact`
[INFO] [stderr]    --> src/main.rs:472:13
[INFO] [stderr]     |
[INFO] [stderr] 472 |         let price_impact = if amount_out > U256::zero() {
[INFO] [stderr]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_impact`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `simulation_error`
[INFO] [stderr]    --> src/main.rs:497:49
[INFO] [stderr]     |
[INFO] [stderr] 497 |         let (simulation_success, estimated_gas, simulation_error) = self.eth_client
[INFO] [stderr]     |                                                 ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulation_error`
[INFO] [stderr] 
[INFO] [stderr] warning: multiple variants are never constructed
[INFO] [stderr]   --> src/error.rs:8:5
[INFO] [stderr]    |
[INFO] [stderr]  5 | pub enum DeFiError {
[INFO] [stderr]    |          --------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr]  8 |     ConfigError(String),
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 20 |     InvalidAmount(String),
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 28 |     InsufficientLiquidity,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 32 |     SlippageTooHigh(String),
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 36 |     InsufficientBalance {
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 43 |     TokenNotFound(String),
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 55 |     SignatureError(String),
[INFO] [stderr]    |     ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `DeFiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `chain_id` is never read
[INFO] [stderr]   --> src/ethereum/client.rs:15:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct EthereumClient {
[INFO] [stderr]    |            -------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 15 |     chain_id: u64,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `EthereumClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `chain_id`, `provider`, and `get_allowance` are never used
[INFO] [stderr]    --> src/ethereum/client.rs:268:12
[INFO] [stderr]     |
[INFO] [stderr]  18 | impl EthereumClient {
[INFO] [stderr]     | ------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 268 |     pub fn chain_id(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 273 |     pub fn provider(&self) -> &Provider<Http> {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 532 |     pub async fn get_allowance(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `address` is never read
[INFO] [stderr]   --> src/ethereum/contracts/erc20.rs:30:5
[INFO] [stderr]    |
[INFO] [stderr] 28 | pub struct ERC20 {
[INFO] [stderr]    |            ----- field in this struct
[INFO] [stderr] 29 |     contract: ERC20Contract<Provider<Http>>,
[INFO] [stderr] 30 |     address: Address,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `total_supply`, `allowance`, and `address` are never used
[INFO] [stderr]   --> src/ethereum/contracts/erc20.rs:65:18
[INFO] [stderr]    |
[INFO] [stderr] 33 | impl ERC20 {
[INFO] [stderr]    | ---------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 65 |     pub async fn total_supply(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stderr]    |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 84 |     pub async fn allowance(
[INFO] [stderr]    |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 93 |     pub fn address(&self) -> Address {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `address` is never read
[INFO] [stderr]   --> src/ethereum/contracts/uniswap.rs:54:5
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub struct UniswapPair {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] 53 |     contract: UniswapV2Pair<Provider<Http>>,
[INFO] [stderr] 54 |     address: Address,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `address` is never used
[INFO] [stderr]   --> src/ethereum/contracts/uniswap.rs:83:12
[INFO] [stderr]    |
[INFO] [stderr] 57 | impl UniswapPair {
[INFO] [stderr]    | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 83 |     pub fn address(&self) -> Address {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `address` is never read
[INFO] [stderr]   --> src/ethereum/contracts/uniswap.rs:91:5
[INFO] [stderr]    |
[INFO] [stderr] 89 | pub struct UniswapFactory {
[INFO] [stderr]    |            -------------- field in this struct
[INFO] [stderr] 90 |     contract: UniswapV2Factory<Provider<Http>>,
[INFO] [stderr] 91 |     address: Address,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `all_pairs_length` is never used
[INFO] [stderr]    --> src/ethereum/contracts/uniswap.rs:111:18
[INFO] [stderr]     |
[INFO] [stderr]  94 | impl UniswapFactory {
[INFO] [stderr]     | ------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 111 |     pub async fn all_pairs_length(&self) -> Result<U256, ContractError<Provider<Http>>> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `contract` and `address` are never read
[INFO] [stderr]    --> src/ethereum/contracts/uniswap.rs:118:5
[INFO] [stderr]     |
[INFO] [stderr] 117 | pub struct UniswapRouter {
[INFO] [stderr]     |            ------------- fields in this struct
[INFO] [stderr] 118 |     contract: UniswapV2Router<Provider<Http>>,
[INFO] [stderr]     |     ^^^^^^^^
[INFO] [stderr] 119 |     address: Address,
[INFO] [stderr]     |     ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `factory`, `weth`, `get_amounts_out`, `get_amounts_in`, and `quote` are never used
[INFO] [stderr]    --> src/ethereum/contracts/uniswap.rs:130:18
[INFO] [stderr]     |
[INFO] [stderr] 122 | impl UniswapRouter {
[INFO] [stderr]     | ------------------ methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 130 |     pub async fn factory(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stderr]     |                  ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 135 |     pub async fn weth(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stderr]     |                  ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 142 |     pub async fn get_amounts_out(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 153 |     pub async fn get_amounts_in(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 164 |     pub async fn quote(
[INFO] [stderr]     |                  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `schemars`
[INFO] [stderr]   --> src/main.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 12 |     schemars, tool, tool_handler, tool_router, ServerHandler, ServiceExt,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `UniswapRouter` is never constructed
[INFO] [stderr]    --> src/ethereum/contracts/uniswap.rs:117:12
[INFO] [stderr]     |
[INFO] [stderr] 117 | pub struct UniswapRouter {
[INFO] [stderr]     |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `factory`, `weth`, `get_amounts_out`, `get_amounts_in`, and `quote` are never used
[INFO] [stderr]    --> src/ethereum/contracts/uniswap.rs:124:12
[INFO] [stderr]     |
[INFO] [stderr] 122 | impl UniswapRouter {
[INFO] [stderr]     | ------------------ associated items in this implementation
[INFO] [stderr] 123 |     /// 创建新的 Uniswap Router 实例
[INFO] [stderr] 124 |     pub fn new(address: Address, provider: Arc<Provider<Http>>) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 130 |     pub async fn factory(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stderr]     |                  ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 135 |     pub async fn weth(&self) -> Result<Address, ContractError<Provider<Http>>> {
[INFO] [stderr]     |                  ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 142 |     pub async fn get_amounts_out(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 153 |     pub async fn get_amounts_in(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 164 |     pub async fn quote(
[INFO] [stderr]     |                  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `mcp-defi-agent` (bin "mcp-defi-agent" test) generated 20 warnings (1 duplicate) (run `cargo fix --bin "mcp-defi-agent" -p mcp-defi-agent --tests` to apply 8 suggestions)
[INFO] [stderr] warning: `mcp-defi-agent` (bin "mcp-defi-agent") generated 18 warnings (15 duplicates) (run `cargo fix --bin "mcp-defi-agent" -p mcp-defi-agent` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mcp_defi_agent-cc58ba2fdd8e3996)
[INFO] [stdout] 
[INFO] [stdout] running 20 tests
[INFO] [stdout] test ethereum::client::tests::test_create_client ... ignored
[INFO] [stdout] test ethereum::contracts::erc20::tests::test_erc20_creation ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_get_token_address ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_is_valid_address ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_common_tokens ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price_different_decimals ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price_large_numbers ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_input_custom_slippage ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_input_default_slippage ... ok
[INFO] [stdout] test config::tests::test_validate_config ... ok
[INFO] [stdout] test ethereum::contracts::uniswap::tests::test_uniswap_router_creation ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_eth_to_weth_conversion ... ok
[INFO] [stdout] test tools::balance::tests::test_format_balance ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_input_serialization ... ok
[INFO] [stdout] test ethereum::contracts::uniswap::tests::test_uniswap_factory_creation ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_resolve_token_address ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price_zero_reserve ... ok
[INFO] [stdout] test ethereum::contracts::uniswap::tests::test_uniswap_pair_creation ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_output_serialization ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 19 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.23s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mcp_defi_agent-63f302aa94b088e6)
[INFO] [stdout] 
[INFO] [stdout] running 23 tests
[INFO] [stdout] test ethereum::client::tests::test_create_client ... ignored
[INFO] [stdout] test config::tests::test_validate_config ... ok
[INFO] [stdout] test ethereum::contracts::erc20::tests::test_erc20_creation ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_resolve_token_address ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_get_token_address ... ok
[INFO] [stdout] test tools::balance::tests::test_format_balance ... ok
[INFO] [stdout] test tests::test_parse_human_amount_invalid ... ok
[INFO] [stdout] test ethereum::contracts::uniswap::tests::test_uniswap_pair_creation ... ok
[INFO] [stdout] test ethereum::contracts::uniswap::tests::test_uniswap_factory_creation ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_common_tokens ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_eth_to_weth_conversion ... ok
[INFO] [stdout] test tests::test_parse_human_amount_usdc ... ok
[INFO] [stdout] test tests::test_parse_human_amount_uni ... ok
[INFO] [stdout] test ethereum::token_registry::tests::test_is_valid_address ... ok
[INFO] [stdout] test ethereum::contracts::uniswap::tests::test_uniswap_router_creation ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price_different_decimals ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price_zero_reserve ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_input_default_slippage ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_input_custom_slippage ... ok
[INFO] [stdout] test tools::price::tests::test_calculate_price_large_numbers ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_input_serialization ... ok
[INFO] [stdout] test tools::swap::tests::test_swap_tokens_output_serialization ... ok
[INFO] [stderr]      Running tests/integration_test.rs (/opt/rustwide/target/debug/deps/integration_test-7e2db5174f219d8d)
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 22 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.32s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test test_get_balance_erc20 ... ignored
[INFO] [stdout] test test_get_balance_eth ... ignored
[INFO] [stdout] test test_get_token_price ... ignored
[INFO] [stdout] test test_swap_tokens ... ignored
[INFO] [stdout] test test_basic_functionality ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests mcp_defi_agent
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/ethereum/client.rs - ethereum::client::EthereumClient::new (line 28) - compile ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "10f0090728afaee2419c6ab830d7c489595f47a86deb1f74510df0893aed77c5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "10f0090728afaee2419c6ab830d7c489595f47a86deb1f74510df0893aed77c5", kill_on_drop: false }`
[INFO] [stdout] 10f0090728afaee2419c6ab830d7c489595f47a86deb1f74510df0893aed77c5
