[INFO] cloning repository https://github.com/Legatia/DeFlow [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Legatia/DeFlow" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegatia%2FDeFlow", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegatia%2FDeFlow'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee7ccd4f56394fe6a66a40658c09e9c67337bf1c [INFO] checking Legatia/DeFlow against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegatia%2FDeFlow" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Legatia/DeFlow [INFO] finished tweaking git repo https://github.com/Legatia/DeFlow [INFO] tweaked toml for git repo https://github.com/Legatia/DeFlow written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Legatia/DeFlow on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Legatia/DeFlow 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bb52dd90c33bf7a2eed61849ad5d54ba56ae6e0aaaf80ef74fab284dc97bcef [INFO] running `Command { std: "docker" "start" "-a" "0bb52dd90c33bf7a2eed61849ad5d54ba56ae6e0aaaf80ef74fab284dc97bcef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bb52dd90c33bf7a2eed61849ad5d54ba56ae6e0aaaf80ef74fab284dc97bcef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bb52dd90c33bf7a2eed61849ad5d54ba56ae6e0aaaf80ef74fab284dc97bcef", kill_on_drop: false }` [INFO] [stdout] 0bb52dd90c33bf7a2eed61849ad5d54ba56ae6e0aaaf80ef74fab284dc97bcef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c3a2c28a749689c8b8631df57482809c7fe78a56c76a697642a5b4c23140eee [INFO] running `Command { std: "docker" "start" "-a" "8c3a2c28a749689c8b8631df57482809c7fe78a56c76a697642a5b4c23140eee", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pretty v0.12.4 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling ic-cdk-executor v0.1.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking ic0 v0.23.0 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking ic0 v0.21.1 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling candid_derive v0.10.17 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking ic_principal v0.1.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking serde_bytes v0.11.17 [INFO] [stderr] Checking ic-stable-structures v0.6.9 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Checking candid v0.10.17 [INFO] [stderr] Compiling ic-cdk-macros v0.13.2 [INFO] [stderr] Compiling ic-cdk-macros v0.17.2 [INFO] [stderr] Compiling ic-cdk-macros v0.9.0 [INFO] [stderr] Checking ic-cdk v0.13.6 [INFO] [stderr] Checking ic-cdk v0.17.2 [INFO] [stderr] Checking ic-cdk-timers v0.7.0 [INFO] [stderr] Checking deflow_pool v0.1.0 (/opt/rustwide/workdir/src/DeFlow_pool) [INFO] [stderr] Checking ic-cdk-timers v0.11.0 [INFO] [stderr] Checking DeFlow_backend v0.1.0 (/opt/rustwide/workdir/src/DeFlow_backend) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:687:21 [INFO] [stdout] | [INFO] [stdout] 687 | let mut default_state = Self::default(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:687:21 [INFO] [stdout] | [INFO] [stdout] 687 | let mut default_state = Self::default(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESERVES_MEMORY_ID` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const RESERVES_MEMORY_ID: MemoryId = MemoryId::new(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BUSINESS_MODEL_MEMORY_ID` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const BUSINESS_MODEL_MEMORY_ID: MemoryId = MemoryId::new(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_add_u64` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:472:4 [INFO] [stdout] | [INFO] [stdout] 472 | fn safe_add_u64(a: u64, b: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_sub_u64` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:480:4 [INFO] [stdout] | [INFO] [stdout] 480 | fn safe_sub_u64(a: u64, b: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_sub_f64` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:510:4 [INFO] [stdout] | [INFO] [stdout] 510 | fn safe_sub_f64(a: f64, b: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PremiumAccess` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | pub struct PremiumAccess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StablecoinConfig` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 489 | pub struct StablecoinConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_state_version` is never used [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:702:4 [INFO] [stdout] | [INFO] [stdout] 702 | fn default_state_version() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decimals` is never used [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:724:12 [INFO] [stdout] | [INFO] [stdout] 710 | impl Asset { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 724 | pub fn decimals(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rebalancing_threshold` is never read [INFO] [stdout] --> src/DeFlow_pool/src/pool_manager.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PoolManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub rebalancing_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_pool/src/business_model.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DevTeamBusinessManager { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn add_enterprise_revenue(&mut self, pool_state: &mut PoolState, amount: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_monthly_profit(&self, business_model: &DevTeamBusinessModel) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn get_annual_projection(&self, business_model: &DevTeamBusinessModel) -> AnnualProjection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn assess_business_health(&self, business_model: &DevTeamBusinessModel) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn update_dev_principals(&mut self, _pool_state: &mut PoolState, _dev_1: Principal, _dev_2: Principal) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn update_distribution_settings(&mut self, pool_state: &mut PoolState, threshold: f64, frequency: u64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn update_operating_costs(&mut self, pool_state: &mut PoolState, monthly_costs: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn get_distribution_schedule(&self, business_model: &DevTeamBusinessModel) -> DistributionSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnnualProjection` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/business_model.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub struct AnnualProjection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DistributionSchedule` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/business_model.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub struct DistributionSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_arbitrage_risk_score` is never read [INFO] [stdout] --> src/DeFlow_pool/src/cross_chain.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CrossChainManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub max_arbitrage_risk_score: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `supported_operations`, `avg_confirmation_time`, and `finality_confidence` are never read [INFO] [stdout] --> src/DeFlow_pool/src/cross_chain.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct ChainCapabilities { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 351 | pub native_assets: Vec, [INFO] [stdout] 352 | pub supported_operations: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 353 | pub avg_confirmation_time: u64, // seconds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 354 | pub finality_confidence: f64, // 0.0 to 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainCapabilities` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metrics_retention_days` is never read [INFO] [stdout] --> src/DeFlow_pool/src/analytics.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PoolAnalytics { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | // Analytics configuration [INFO] [stdout] 6 | pub metrics_retention_days: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_chain_fusion_signature` is never used [INFO] [stdout] --> src/DeFlow_pool/src/chain_fusion.rs:507:14 [INFO] [stdout] | [INFO] [stdout] 507 | pub async fn validate_chain_fusion_signature( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:673:17 [INFO] [stdout] | [INFO] [stdout] 673 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ --------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 673 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESERVES_MEMORY_ID` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const RESERVES_MEMORY_ID: MemoryId = MemoryId::new(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BUSINESS_MODEL_MEMORY_ID` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const BUSINESS_MODEL_MEMORY_ID: MemoryId = MemoryId::new(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_add_u64` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:472:4 [INFO] [stdout] | [INFO] [stdout] 472 | fn safe_add_u64(a: u64, b: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_sub_u64` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:480:4 [INFO] [stdout] | [INFO] [stdout] 480 | fn safe_sub_u64(a: u64, b: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_sub_f64` is never used [INFO] [stdout] --> src/DeFlow_pool/src/lib.rs:510:4 [INFO] [stdout] | [INFO] [stdout] 510 | fn safe_sub_f64(a: f64, b: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PremiumAccess` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | pub struct PremiumAccess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StablecoinConfig` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 489 | pub struct StablecoinConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_state_version` is never used [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:702:4 [INFO] [stdout] | [INFO] [stdout] 702 | fn default_state_version() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decimals` is never used [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:724:12 [INFO] [stdout] | [INFO] [stdout] 710 | impl Asset { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 724 | pub fn decimals(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rebalancing_threshold` is never read [INFO] [stdout] --> src/DeFlow_pool/src/pool_manager.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PoolManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub rebalancing_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_pool/src/business_model.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DevTeamBusinessManager { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn add_enterprise_revenue(&mut self, pool_state: &mut PoolState, amount: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn get_monthly_profit(&self, business_model: &DevTeamBusinessModel) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn get_annual_projection(&self, business_model: &DevTeamBusinessModel) -> AnnualProjection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn assess_business_health(&self, business_model: &DevTeamBusinessModel) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn update_dev_principals(&mut self, _pool_state: &mut PoolState, _dev_1: Principal, _dev_2: Principal) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn update_distribution_settings(&mut self, pool_state: &mut PoolState, threshold: f64, frequency: u64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn update_operating_costs(&mut self, pool_state: &mut PoolState, monthly_costs: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn get_distribution_schedule(&self, business_model: &DevTeamBusinessModel) -> DistributionSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnnualProjection` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/business_model.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub struct AnnualProjection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DistributionSchedule` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/business_model.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub struct DistributionSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_arbitrage_risk_score` is never read [INFO] [stdout] --> src/DeFlow_pool/src/cross_chain.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CrossChainManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub max_arbitrage_risk_score: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `supported_operations`, `avg_confirmation_time`, and `finality_confidence` are never read [INFO] [stdout] --> src/DeFlow_pool/src/cross_chain.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct ChainCapabilities { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 351 | pub native_assets: Vec, [INFO] [stdout] 352 | pub supported_operations: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 353 | pub avg_confirmation_time: u64, // seconds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 354 | pub finality_confidence: f64, // 0.0 to 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainCapabilities` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metrics_retention_days` is never read [INFO] [stdout] --> src/DeFlow_pool/src/analytics.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PoolAnalytics { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | // Analytics configuration [INFO] [stdout] 6 | pub metrics_retention_days: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_chain_fusion_signature` is never used [INFO] [stdout] --> src/DeFlow_pool/src/chain_fusion.rs:507:14 [INFO] [stdout] | [INFO] [stdout] 507 | pub async fn validate_chain_fusion_signature( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:673:17 [INFO] [stdout] | [INFO] [stdout] 673 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ --------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 673 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdsaPublicKeyArgument`, `SignWithEcdsaArgument`, `ecdsa_public_key`, and `sign_with_ecdsa` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ecdsa_public_key, sign_with_ecdsa, EcdsaPublicKeyArgument, SignWithEcdsaArgument [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/tokens.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpResponse` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/pure_icp.rs:8:72 [INFO] [stdout] | [INFO] [stdout] 8 | http_request, CanisterHttpRequestArgument, HttpHeader, HttpMethod, HttpResponse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdsaPublicKeyArgument` and `SignWithEcdsaArgument` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | EcdsaKeyId, EcdsaPublicKeyArgument, SignWithEcdsaArgument [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `service::SolanaDeFiService` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use service::SolanaDeFiService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `accounts::SolanaAccountManager` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use accounts::SolanaAccountManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `programs::SolanaProgramManager` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use programs::SolanaProgramManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `icp_solana::IcpSolanaService` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use icp_solana::IcpSolanaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pure_icp::PureIcpSolanaService` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub use pure_icp::PureIcpSolanaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SolanaError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:673:62 [INFO] [stdout] | [INFO] [stdout] 673 | SolanaNetwork, SolanaPortfolio, SolanaTransactionResult, SolanaError [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeFiProtocol` [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use super::yield_farming::{ChainId, DeFiProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldStrategy` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use super::yield_farming::{ChainId, YieldStrategy, DeFiProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArbitrageExecutionResult` and `ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use super::arbitrage::{ArbitrageOpportunity, ArbitrageExecutionResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::*` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::portfolio_manager::*` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::portfolio_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `init` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use ic_cdk::{init, query, update}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArbitrageFrequency`, `PortfolioError`, `PositionMetadata`, `PositionType`, `RebalancingStrategy`, and `RiskTolerance` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:491:56 [INFO] [stdout] | [INFO] [stdout] 491 | AdvancedPortfolioManager, UserPortfolio, Position, PositionType, PositionUpdate, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 492 | PortfolioConfiguration, RiskTolerance, RebalancingStrategy, PortfolioSummary, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 493 | PortfolioError, ArbitrageFrequency, PositionMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlertSeverity`, `AllocationBreakdown`, `NotificationChannel`, `NotificationSystem`, `NotificationType`, `PerformanceMetrics`, `PortfolioAnalyticsEngine`, `PortfolioRiskManager`, `RebalancingActionResult`, `RebalancingAction`, `RebalancingEngine`, `RiskAlertType`, `RiskAlert`, `RiskAssessment`, and `YieldSummary` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | RebalancingEngine, RebalancingRecommendation, RebalancingAction, RebalancingPlan, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 498 | RebalancingActionPlan, RebalancingResult, RebalancingActionResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 499 | PortfolioRiskManager, RiskAssessment, RiskMetrics, StressTestScenario, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 500 | StressTestResult, RiskAlert, AlertSeverity, RiskAlertType, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 501 | PortfolioAnalyticsEngine, PortfolioAnalytics, PortfolioPerformance, PositionAnalytics, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 502 | PerformanceMetrics, EfficiencyMetrics, AllocationBreakdown, YieldSummary, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 503 | NotificationSystem, Notification, NotificationPreferences, NotificationChannel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 504 | NotificationType, AutoCompoundSettings, AutoCompoundResult, WebhookEndpoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeFiProtocol` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::defi::yield_farming::{ChainId, DeFiProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArbitrageExecutionResult` and `ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::defi::arbitrage::{ArbitrageOpportunity, ArbitrageExecutionResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldStrategy` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:6:48 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::defi::yield_farming::{DeFiProtocol, YieldStrategy}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::defi::arbitrage::ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::defi::arbitrage::ArbitrageOpportunity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CrossChainPriceOracle` and `OracleError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::defi::price_oracle::{CrossChainPriceOracle, OracleError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegrationError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:9:68 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::defi::protocol_integrations::{DeFiProtocolIntegrations, IntegrationError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LiveArbitrageOpportunity` and `LiveYieldOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:25:68 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::defi::protocol_integrations::{DeFiProtocolIntegrations, LiveYieldOpportunity, LiveArbitrageOpportunity}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActiveStrategy`, `StrategyError`, and `StrategyOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/strategy_api.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | StrategyError, ActiveStrategy, StrategyOpportunity, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegrationError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/strategy_api.rs:9:85 [INFO] [stdout] | [INFO] [stdout] 9 | RealProtocolIntegrationManager, RealYieldOpportunity, RealArbitrageOpportunity, IntegrationError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/simple_template_api.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldStrategy` [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use super::yield_farming::{DeFiProtocol, YieldStrategy}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::arbitrage::ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use super::arbitrage::ArbitrageOpportunity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OracleError` and `Price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:8:50 [INFO] [stdout] | [INFO] [stdout] 8 | use super::price_oracle::{CrossChainPriceOracle, Price, OracleError}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CandidType`, `Deserialize`, and `Principal` [INFO] [stdout] --> src/DeFlow_backend/src/user_management.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use candid::{CandidType, Deserialize, Principal}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use types::{InternalWorkflowState, SystemHealth as InternalSystemHealth, ExecutionStatus as InternalExecutionStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `InternalWorkflowState` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use types::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use types::{InternalWorkflowState, SystemHealth as InternalSystemHealth, ExecutionStatus as InternalExecutionStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdsaPublicKeyArgument`, `SignWithEcdsaArgument`, `ecdsa_public_key`, and `sign_with_ecdsa` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ecdsa_public_key, sign_with_ecdsa, EcdsaPublicKeyArgument, SignWithEcdsaArgument [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/tokens.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpResponse` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/pure_icp.rs:8:72 [INFO] [stdout] | [INFO] [stdout] 8 | http_request, CanisterHttpRequestArgument, HttpHeader, HttpMethod, HttpResponse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdsaPublicKeyArgument` and `SignWithEcdsaArgument` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | EcdsaKeyId, EcdsaPublicKeyArgument, SignWithEcdsaArgument [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `service::SolanaDeFiService` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use service::SolanaDeFiService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `accounts::SolanaAccountManager` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use accounts::SolanaAccountManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `programs::SolanaProgramManager` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use programs::SolanaProgramManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `icp_solana::IcpSolanaService` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use icp_solana::IcpSolanaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pure_icp::PureIcpSolanaService` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub use pure_icp::PureIcpSolanaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SolanaError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:673:62 [INFO] [stdout] | [INFO] [stdout] 673 | SolanaNetwork, SolanaPortfolio, SolanaTransactionResult, SolanaError [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeFiProtocol` [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use super::yield_farming::{ChainId, DeFiProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldStrategy` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use super::yield_farming::{ChainId, YieldStrategy, DeFiProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArbitrageExecutionResult` and `ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use super::arbitrage::{ArbitrageOpportunity, ArbitrageExecutionResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::*` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use ic_cdk::api::time; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::api::time; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/risk_management.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::api::time; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/analytics.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::api::time; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::api::time; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::portfolio_manager::*` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::portfolio_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `init` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use ic_cdk::{init, query, update}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArbitrageFrequency`, `PortfolioError`, `PositionMetadata`, `PositionType`, `RebalancingStrategy`, and `RiskTolerance` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:491:56 [INFO] [stdout] | [INFO] [stdout] 491 | AdvancedPortfolioManager, UserPortfolio, Position, PositionType, PositionUpdate, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 492 | PortfolioConfiguration, RiskTolerance, RebalancingStrategy, PortfolioSummary, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 493 | PortfolioError, ArbitrageFrequency, PositionMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AlertSeverity`, `AllocationBreakdown`, `NotificationChannel`, `NotificationSystem`, `NotificationType`, `PerformanceMetrics`, `PortfolioAnalyticsEngine`, `PortfolioRiskManager`, `RebalancingActionResult`, `RebalancingAction`, `RebalancingEngine`, `RiskAlertType`, `RiskAlert`, `RiskAssessment`, and `YieldSummary` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_api.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | RebalancingEngine, RebalancingRecommendation, RebalancingAction, RebalancingPlan, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 498 | RebalancingActionPlan, RebalancingResult, RebalancingActionResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 499 | PortfolioRiskManager, RiskAssessment, RiskMetrics, StressTestScenario, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 500 | StressTestResult, RiskAlert, AlertSeverity, RiskAlertType, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 501 | PortfolioAnalyticsEngine, PortfolioAnalytics, PortfolioPerformance, PositionAnalytics, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 502 | PerformanceMetrics, EfficiencyMetrics, AllocationBreakdown, YieldSummary, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 503 | NotificationSystem, Notification, NotificationPreferences, NotificationChannel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 504 | NotificationType, AutoCompoundSettings, AutoCompoundResult, WebhookEndpoint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeFiProtocol` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::defi::yield_farming::{ChainId, DeFiProtocol}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArbitrageExecutionResult` and `ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::defi::arbitrage::{ArbitrageOpportunity, ArbitrageExecutionResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldStrategy` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:6:48 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::defi::yield_farming::{DeFiProtocol, YieldStrategy}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::defi::arbitrage::ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::defi::arbitrage::ArbitrageOpportunity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CrossChainPriceOracle` and `OracleError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::defi::price_oracle::{CrossChainPriceOracle, OracleError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegrationError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:9:68 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::defi::protocol_integrations::{DeFiProtocolIntegrations, IntegrationError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/tests.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UniswapVersion` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/tests.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::defi::yield_farming::{ChainId, DeFiProtocol, UniswapVersion}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DCAConfig`, `LiquidityMiningConfig`, and `StrategyError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/tests.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | LiquidityMiningConfig, DCAConfig, ActiveStrategy, StrategyStatus, StrategyPerformanceMetrics, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | MultiStrategyCoordinator, StrategyError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/tests.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LiveArbitrageOpportunity` and `LiveYieldOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:25:68 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::defi::protocol_integrations::{DeFiProtocolIntegrations, LiveYieldOpportunity, LiveArbitrageOpportunity}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ActiveStrategy`, `StrategyError`, and `StrategyOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/strategy_api.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | StrategyError, ActiveStrategy, StrategyOpportunity, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntegrationError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/strategy_api.rs:9:85 [INFO] [stdout] | [INFO] [stdout] 9 | RealProtocolIntegrationManager, RealYieldOpportunity, RealArbitrageOpportunity, IntegrationError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/defi/simple_template_api.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldStrategy` [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use super::yield_farming::{DeFiProtocol, YieldStrategy}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::arbitrage::ArbitrageOpportunity` [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use super::arbitrage::ArbitrageOpportunity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OracleError` and `Price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:8:50 [INFO] [stdout] | [INFO] [stdout] 8 | use super::price_oracle::{CrossChainPriceOracle, Price, OracleError}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CandidType`, `Deserialize`, and `Principal` [INFO] [stdout] --> src/DeFlow_backend/src/user_management.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use candid::{CandidType, Deserialize, Principal}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use types::{InternalWorkflowState, SystemHealth as InternalSystemHealth, ExecutionStatus as InternalExecutionStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the name `InternalWorkflowState` in the type namespace is supposed to be publicly re-exported here [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use types::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use types::{InternalWorkflowState, SystemHealth as InternalSystemHealth, ExecutionStatus as InternalExecutionStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(hidden_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/DeFlow_backend/src/execution.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | let mut last_error = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/DeFlow_backend/src/execution.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | let mut last_error = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_priority` [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | gas_priority: GasPriority, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_priority` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimize_for_cost` [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | optimize_for_cost: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimize_for_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:216:36 [INFO] [stdout] | [INFO] [stdout] 216 | async fn get_spl_tokens(&self, address: &str) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_lamports` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let fee_lamports = utils::estimate_transaction_fee(1, compute_units); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_lamports` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_priority` [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | gas_priority: GasPriority, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_priority` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimize_for_cost` [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | optimize_for_cost: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimize_for_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/tokens.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let instruction = self.create_spl_transfer_instruction( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:216:36 [INFO] [stdout] | [INFO] [stdout] 216 | async fn get_spl_tokens(&self, address: &str) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:207:44 [INFO] [stdout] | [INFO] [stdout] 207 | async fn get_spl_tokens_via_rpc(&self, address: &str) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_lamports` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let fee_lamports = utils::estimate_transaction_fee(1, compute_units); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_lamports` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/tokens.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let instruction = self.create_spl_transfer_instruction( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_usd` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | let amount_usd = amount_eth * 2000.0; // Approximate ETH price [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_usd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:207:44 [INFO] [stdout] | [INFO] [stdout] 207 | async fn get_spl_tokens_via_rpc(&self, address: &str) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_api.rs:480:29 [INFO] [stdout] | [INFO] [stdout] 480 | if let Some(ref mut engine) = *arb.borrow_mut() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_usd` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | let amount_usd = amount_eth * 2000.0; // Approximate ETH price [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_usd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `actual_return` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut actual_return = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `transactions` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let mut transactions = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `actual_return` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 166 | let mut actual_return = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `actual_gas_cost` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut actual_gas_cost = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | config: &RebalancingConfig, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward_tokens` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | let (apr, reward_tokens, pool_info) = match &opportunity.opportunity_type { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_api.rs:480:29 [INFO] [stdout] | [INFO] [stdout] 480 | if let Some(ref mut engine) = *arb.borrow_mut() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:466:9 [INFO] [stdout] | [INFO] [stdout] 466 | config: &ArbitrageConfig, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let current_time = self.get_current_time(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:628:13 [INFO] [stdout] | [INFO] [stdout] 628 | let current_time = self.get_current_time(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:393:24 [INFO] [stdout] | [INFO] [stdout] 393 | Ok(mut result) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `actual_return` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut actual_return = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `transactions` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let mut transactions = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `actual_return` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 166 | let mut actual_return = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `actual_gas_cost` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut actual_gas_cost = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | config: &RebalancingConfig, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward_tokens` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | let (apr, reward_tokens, pool_info) = match &opportunity.opportunity_type { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:466:9 [INFO] [stdout] | [INFO] [stdout] 466 | config: &ArbitrageConfig, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let current_time = self.get_current_time(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:628:13 [INFO] [stdout] | [INFO] [stdout] 628 | let current_time = self.get_current_time(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:393:24 [INFO] [stdout] | [INFO] [stdout] 393 | Ok(mut result) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `service` [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:325:13 [INFO] [stdout] | [INFO] [stdout] 325 | let service = MinimalIcpEthereumService::new( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | _ => 10.0, // Default estimate [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 208 | ChainId::Ethereum => 80.0, // High gas costs [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 209 | ChainId::Bitcoin => 15.0, // Transaction fees [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 210 | ChainId::Arbitrum => 5.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 211 | ChainId::Optimism => 5.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 216 | _ => 10.0, // Default estimate [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | _ => 120, // 2 minutes default [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 256 | ChainId::Ethereum => 300, // 5 minutes (congestion) [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 257 | ChainId::Bitcoin => 1800, // 30 minutes (confirmations) [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 258 | ChainId::Arbitrum => 60, // 1 minute [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 259 | ChainId::Optimism => 120, // 2 minutes (withdrawal delays) [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 264 | _ => 120, // 2 minutes default [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | _ => 5.0, // Default [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 281 | ChainId::Ethereum => 25.0, // High gas [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 282 | ChainId::Bitcoin => 15.0, // Transaction fees [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 283 | ChainId::Arbitrum => 3.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 284 | ChainId::Optimism => 3.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 289 | _ => 5.0, // Default [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | _ => 10.0, // Default estimate [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 208 | ChainId::Ethereum => 80.0, // High gas costs [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 209 | ChainId::Bitcoin => 15.0, // Transaction fees [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 210 | ChainId::Arbitrum => 5.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 211 | ChainId::Optimism => 5.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 216 | _ => 10.0, // Default estimate [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 264 | _ => 120, // 2 minutes default [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:264:13 [INFO] [stdout] | [INFO] [stdout] 256 | ChainId::Ethereum => 300, // 5 minutes (congestion) [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 257 | ChainId::Bitcoin => 1800, // 30 minutes (confirmations) [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 258 | ChainId::Arbitrum => 60, // 1 minute [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 259 | ChainId::Optimism => 120, // 2 minutes (withdrawal delays) [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 264 | _ => 120, // 2 minutes default [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | _ => 5.0, // Default [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 281 | ChainId::Ethereum => 25.0, // High gas [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 282 | ChainId::Bitcoin => 15.0, // Transaction fees [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 283 | ChainId::Arbitrum => 3.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 284 | ChainId::Optimism => 3.0, // L2 efficiency [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 289 | _ => 5.0, // Default [INFO] [stdout] | ^ ...and 4 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attribution_analysis` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | let attribution_analysis = self.attribution_analyzer.analyze_performance_attribution(&history)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attribution_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `benchmark_comparison` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let benchmark_comparison = self.benchmark_data.compare_to_benchmarks(&history)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_benchmark_comparison` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let current_time = self.get_current_time(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attribution_analysis` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | let attribution_analysis = self.attribution_analyzer.analyze_performance_attribution(&history)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attribution_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `benchmark_comparison` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let benchmark_comparison = self.benchmark_data.compare_to_benchmarks(&history)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_benchmark_comparison` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let current_time = self.get_current_time(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workflow_id` [INFO] [stdout] --> src/DeFlow_backend/src/user_management.rs:139:34 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn record_workflow_execution(workflow_id: String, node_types: Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_workflow_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_workflows` is never used [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn get_user_workflows(user_principal: &str) -> Vec<(String, crate::types::Workflow)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_executions` is never used [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:318:8 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn get_user_executions(user_principal: &str) -> Vec<(String, crate::types::WorkflowExecution)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BitcoinOperationResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/mod.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct BitcoinOperationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_independent_l1` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl EvmChain { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_independent_l1(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EthereumTransactionParams` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct EthereumTransactionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GasEstimate` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct GasEstimate { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `canister_id` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct MinimalIcpEthereumService { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] 23 | pub key_name: String, [INFO] [stdout] 24 | pub canister_id: Principal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MinimalIcpEthereumService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinimalIcpEthereumContext` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct MinimalIcpEthereumContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/minimal_icp.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 228 | impl MinimalIcpEthereumContext { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 229 | pub fn new(key_name: String, canister_id: Principal) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GWEI_PER_ETH` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:256:15 [INFO] [stdout] | [INFO] [stdout] 256 | pub const GWEI_PER_ETH: u64 = 1_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WEI_PER_GWEI` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:259:15 [INFO] [stdout] | [INFO] [stdout] 259 | pub const WEI_PER_GWEI: u64 = 1_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ETH_TRANSFER_GAS_LIMIT` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | pub const ETH_TRANSFER_GAS_LIMIT: u64 = 21_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERC20_TRANSFER_GAS_LIMIT` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:265:15 [INFO] [stdout] | [INFO] [stdout] 265 | pub const ERC20_TRANSFER_GAS_LIMIT: u64 = 65_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_GAS_LIMIT` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:268:15 [INFO] [stdout] | [INFO] [stdout] 268 | pub const MAX_GAS_LIMIT: u64 = 10_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_GAS_PRICE` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:271:15 [INFO] [stdout] | [INFO] [stdout] 271 | pub const MIN_GAS_PRICE: u64 = 1_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_DERIVATION_PATH` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 274 | pub const DEFAULT_DERIVATION_PATH: &str = "m/44'/60'/0'/0"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eth_to_wei` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:289:12 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn eth_to_wei(eth: f64) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gwei_to_wei` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn gwei_to_wei(gwei: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wei_to_gwei` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn wei_to_gwei(wei: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_ethereum_address` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:305:12 [INFO] [stdout] | [INFO] [stdout] 305 | pub fn validate_ethereum_address(address: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_transaction_fee` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 319 | pub fn calculate_transaction_fee(gas_used: u64, gas_price_wei: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_confirmation_time` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/mod.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn estimate_confirmation_time(gas_price_gwei: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rpc_endpoint` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl SolanaNetwork { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 41 | /// Get the RPC endpoint for the network [INFO] [stdout] 42 | pub fn rpc_endpoint(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaTransactionParams` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct SolanaTransactionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaProgramResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct SolanaProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaContext` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct SolanaContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `ecdsa_key_id` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 214 | impl SolanaContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 215 | pub fn new(network: SolanaNetwork, key_name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn ecdsa_key_id(&self) -> EcdsaKeyId { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaDeFiService` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SolanaDeFiService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/service.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl SolanaDeFiService { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 20 | /// Create new Solana DeFi service [INFO] [stdout] 21 | pub fn new(key_name: String, canister_id: Principal, network: SolanaNetwork) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn get_solana_account( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn get_solana_portfolio( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub async fn send_sol( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn call_program( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | async fn get_spl_tokens(&self, address: &str) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | async fn get_balance_via_rpc(&self, address: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | async fn get_recent_blockhash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | async fn estimate_compute_units(&self, _instruction: &SolanaInstruction) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | async fn sign_and_send_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn generate_mock_address(&self, seed: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | fn hash_string(&self, input: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaAccountManager` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/accounts.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SolanaAccountManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/accounts.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl SolanaAccountManager { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 16 | /// Create new account manager [INFO] [stdout] 17 | pub fn new(key_name: String, network: SolanaNetwork) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn create_account( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub async fn get_associated_token_account( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn get_program_derived_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn check_rent_exemption( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub async fn get_multiple_accounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | async fn derive_address(&self, derivation_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | async fn get_account_info(&self, address: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn generate_solana_address(&self, seed: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn hash_string(&self, input: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SolanaAccountType` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/accounts.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | pub enum SolanaAccountType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountInfo` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/accounts.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | struct AccountInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RentExemptionInfo` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/accounts.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub struct RentExemptionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaProgramManager` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SolanaProgramManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl SolanaProgramManager { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 16 | /// Create new program manager [INFO] [stdout] 17 | pub fn new(key_name: String, network: SolanaNetwork) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn swap_tokens( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn add_liquidity( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub async fn stake_tokens( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn lend_tokens( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | async fn execute_program_instruction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | async fn create_swap_instruction_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | async fn create_add_liquidity_instruction_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | async fn create_stake_instruction_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | async fn create_lend_instruction_data(&self, amount: u64) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | async fn get_swap_accounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | async fn get_liquidity_accounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | async fn get_staking_accounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | async fn get_lending_accounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | async fn estimate_compute_units( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | fn hash_string(&self, input: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DexProgram` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:429:10 [INFO] [stdout] | [INFO] [stdout] 429 | pub enum DexProgram { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `program_id` and `name` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:437:12 [INFO] [stdout] | [INFO] [stdout] 436 | impl DexProgram { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 437 | pub fn program_id(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StakingProgram` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:458:10 [INFO] [stdout] | [INFO] [stdout] 458 | pub enum StakingProgram { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `program_id` and `name` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:465:12 [INFO] [stdout] | [INFO] [stdout] 464 | impl StakingProgram { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 465 | pub fn program_id(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LendingProgram` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:484:10 [INFO] [stdout] | [INFO] [stdout] 484 | pub enum LendingProgram { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `program_id` and `name` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/programs.rs:491:12 [INFO] [stdout] | [INFO] [stdout] 490 | impl LendingProgram { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 491 | pub fn program_id(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 499 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_all_token_balances` and `get_popular_tokens` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/tokens.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl SolanaTokenManager { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_all_token_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn get_popular_tokens(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_name`, `canister_id`, and `network` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct IcpSolanaService { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 19 | pub key_name: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | pub canister_id: Principal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | pub network: SolanaNetwork, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IcpSolanaService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl IcpSolanaService { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn get_solana_account( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn get_solana_portfolio( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn send_sol( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | async fn get_solana_address(&self, user: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | async fn get_balance_via_sol_rpc(&self, address: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | async fn get_slot_via_sol_rpc(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | async fn get_block_via_sol_rpc(&self, slot: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | async fn get_spl_tokens_via_rpc(&self, address: &str) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | async fn create_sol_transfer_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | async fn sign_solana_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | async fn send_transaction_via_sol_rpc(&self, _transaction: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | fn build_derivation_path(&self, user: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | fn secp256k1_pubkey_to_solana_address(&self, pubkey: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | fn create_transfer_instruction_data(&self, amount: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | fn serialize_transaction_message(&self, message: &SolanaMessage) -> Result, SolanaError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | fn hash_message(&self, message: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | fn hash_bytes(&self, input: &[u8]) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | fn hash_string(&self, input: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaTransaction` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:370:12 [INFO] [stdout] | [INFO] [stdout] 370 | pub struct SolanaTransaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaMessage` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:377:12 [INFO] [stdout] | [INFO] [stdout] 377 | pub struct SolanaMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaMessageHeader` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 386 | pub struct SolanaMessageHeader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaCompiledInstruction` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:394:12 [INFO] [stdout] | [INFO] [stdout] 394 | pub struct SolanaCompiledInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolanaBlockInfo` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/icp_solana.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | pub struct SolanaBlockInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOL_RPC_CANISTER_ID` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/pure_icp.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const SOL_RPC_CANISTER_ID: Principal = Principal::from_slice(&[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSOCIATED_TOKEN_PROGRAM_ID` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:245:15 [INFO] [stdout] | [INFO] [stdout] 245 | pub const ASSOCIATED_TOKEN_PROGRAM_ID: &str = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_COMPUTE_UNITS` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/solana/mod.rs:248:15 [INFO] [stdout] | [INFO] [stdout] 248 | pub const MAX_COMPUTE_UNITS: u32 = 1_400_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `evm_chain_id`, `is_evm_chain`, and `is_l2` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/types.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 287 | impl ChainId { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 288 | pub fn evm_chain_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn is_evm_chain(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn is_l2(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `risk_adjusted_return` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 160 | impl YieldStrategy { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn risk_adjusted_return(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiskParameters` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub struct RiskParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RebalancingRules` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:274:12 [INFO] [stdout] | [INFO] [stdout] 274 | pub struct RebalancingRules { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RebalanceFrequency` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | pub enum RebalanceFrequency { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RebalanceTrigger` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:292:10 [INFO] [stdout] | [INFO] [stdout] 292 | pub enum RebalanceTrigger { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `YieldOptimizer` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct YieldOptimizer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 311 | impl YieldOptimizer { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 312 | pub fn new(risk_parameters: RiskParameters, rebalancing_rules: RebalancingRules) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 324 | pub fn initialize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | pub fn add_strategy(&mut self, strategy: YieldStrategy) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn remove_strategy(&mut self, strategy_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn get_suitable_strategies(&self, deposit_amount_usd: u64) -> Vec<&YieldStrategy> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | pub fn optimize_allocation(&self, total_capital_usd: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 456 | fn calculate_portfolio_risk_score(&self, allocations: &[StrategyAllocation]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | fn calculate_diversification_score(&self, allocations: &[StrategyAllocation]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | fn estimate_deployment_cost(&self, allocations: &[StrategyAllocation]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyAllocation` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:502:12 [INFO] [stdout] | [INFO] [stdout] 502 | pub struct StrategyAllocation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllocationPlan` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:513:12 [INFO] [stdout] | [INFO] [stdout] 513 | pub struct AllocationPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_chain_allocation_summary` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:526:12 [INFO] [stdout] | [INFO] [stdout] 524 | impl AllocationPlan { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 525 | /// Get allocation summary by chain [INFO] [stdout] 526 | pub fn get_chain_allocation_summary(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChainAllocationSummary` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:566:12 [INFO] [stdout] | [INFO] [stdout] 566 | pub struct ChainAllocationSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `YieldOptimizationError` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_farming.rs:576:10 [INFO] [stdout] | [INFO] [stdout] 576 | pub enum YieldOptimizationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_performance_snapshot` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_engine.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl YieldStrategyEngine { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | fn record_performance_snapshot(&mut self, strategy_id: &str, strategy: &YieldStrategy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asset_prices`, `gas_prices`, and `volatility_data` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/yield_engine.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 467 | pub struct MarketDataCache { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 468 | pub asset_prices: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 469 | pub gas_prices: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 470 | pub volatility_data: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketDataCache` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CrossChainYieldOptimizer { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 14 | pub chain_optimizers: HashMap, [INFO] [stdout] 15 | pub global_allocation: GlobalAllocationStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub cross_chain_bridges: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub gas_optimization: GasOptimizationEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub portfolio_tracker: CrossChainPortfolioTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub rebalancing_engine: CrossChainRebalancingEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub risk_manager: CrossChainRiskManager, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | pub performance_monitor: PerformanceMonitor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub last_optimization: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossChainYieldOptimizer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl CrossChainYieldOptimizer { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_bridge(&mut self, bridge: CrossChainBridge) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn optimize_cross_chain_allocation(&mut self, total_capital_usd: u64) -> Result Result, CrossChainOptimizationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn create_optimal_allocation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | fn calculate_kelly_fraction(&self, opportunity: &YieldOpportunity) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn calculate_bridge_cost(&self, target_chain: &ChainId, amount_usd: u64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | fn estimate_deployment_time(&self, chain: &ChainId) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | async fn optimize_execution_routing(&self, mut plan: CrossChainAllocationPlan) -> Result f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | fn calculate_diversification_metrics(&self, allocations: &[CrossChainAllocation]) -> DiversificationMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | fn calculate_cross_chain_risk_metrics(&self, allocations: &[CrossChainAllocation]) -> CrossChainRiskMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 390 | fn estimate_cross_chain_correlation_risk(&self, allocations: &[CrossChainAllocation]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | fn calculate_max_chain_exposure(&self, allocations: &[CrossChainAllocation]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | fn calculate_liquidity_risk_score(&self, allocations: &[CrossChainAllocation]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | fn create_execution_timeline(&self, allocations: &[CrossChainAllocation]) -> ExecutionTimeline { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | fn check_parallel_execution_feasibility(&self, allocations: &[CrossChainAllocation]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub async fn execute_allocation_plan( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 511 | async fn execute_single_allocation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chain`, `yield_engine`, `gas_tracker`, and `capacity_calculator` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:535:9 [INFO] [stdout] | [INFO] [stdout] 534 | pub struct ChainSpecificOptimizer { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 535 | pub chain: ChainId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 536 | pub yield_engine: YieldStrategyEngine, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 537 | pub gas_tracker: GasTracker, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 538 | pub capacity_calculator: CapacityCalculator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainSpecificOptimizer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_opportunities` and `calculate_total_capacity` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:551:18 [INFO] [stdout] | [INFO] [stdout] 541 | impl ChainSpecificOptimizer { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 551 | pub async fn get_opportunities(&self, max_capital: u64) -> Result, CrossChainOptimizationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 556 | pub fn calculate_total_capacity(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gas_price_tracker` and `historical_gas_data` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 673 | pub struct GasOptimizationEngine { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 674 | pub gas_price_tracker: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 675 | pub historical_gas_data: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasOptimizationEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active_positions` and `historical_performance` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:698:9 [INFO] [stdout] | [INFO] [stdout] 697 | pub struct CrossChainPortfolioTracker { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] 698 | pub active_positions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 699 | pub historical_performance: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossChainPortfolioTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_planned_allocation` and `update_executed_allocation` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:710:12 [INFO] [stdout] | [INFO] [stdout] 702 | impl CrossChainPortfolioTracker { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 710 | pub fn update_planned_allocation(&mut self, _plan: &CrossChainAllocationPlan) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 714 | pub fn update_executed_allocation(&mut self, _allocation: &CrossChainAllocation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rebalancing_rules` and `last_rebalance` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:746:9 [INFO] [stdout] | [INFO] [stdout] 745 | pub struct CrossChainRebalancingEngine { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] 746 | pub rebalancing_rules: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 747 | pub last_rebalance: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossChainRebalancingEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `risk_limits` and `monitoring_rules` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:790:9 [INFO] [stdout] | [INFO] [stdout] 789 | pub struct CrossChainRiskManager { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 790 | pub risk_limits: RiskLimits, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 791 | pub monitoring_rules: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossChainRiskManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_allocation` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:802:12 [INFO] [stdout] | [INFO] [stdout] 794 | impl CrossChainRiskManager { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 802 | pub fn validate_allocation(&self, plan: &CrossChainAllocationPlan) -> Result<(), CrossChainOptimizationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `performance_history` and `benchmarks` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:876:9 [INFO] [stdout] | [INFO] [stdout] 875 | pub struct PerformanceMonitor { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 876 | pub performance_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 877 | pub benchmarks: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PerformanceMonitor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chain`, `current_gas_price`, and `gas_history` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:892:9 [INFO] [stdout] | [INFO] [stdout] 891 | pub struct GasTracker { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 892 | pub chain: ChainId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 893 | pub current_gas_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 894 | pub gas_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chain`, `total_liquidity`, and `utilization_rate` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:910:9 [INFO] [stdout] | [INFO] [stdout] 909 | pub struct CapacityCalculator { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 910 | pub chain: ChainId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 911 | pub total_liquidity: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 912 | pub utilization_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CapacityCalculator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_total_capacity` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:924:12 [INFO] [stdout] | [INFO] [stdout] 915 | impl CapacityCalculator { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 924 | pub fn calculate_total_capacity(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CrossChainOptimizationError` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/cross_chain_optimizer.rs:956:10 [INFO] [stdout] | [INFO] [stdout] 956 | pub enum CrossChainOptimizationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dex_integrations`, `bridge_costs`, `gas_estimators`, and `profit_threshold` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CrossChainArbitrageEngine { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] 13 | pub price_oracles: HashMap, [INFO] [stdout] 14 | pub dex_integrations: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub bridge_costs: HashMap<(ChainId, ChainId), BridgeCostCalculator>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | pub gas_estimators: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub arbitrage_config: ArbitrageConfiguration, [INFO] [stdout] 18 | pub profit_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossChainArbitrageEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl CrossChainArbitrageEngine { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_dex_integration(&mut self, chain: ChainId, dex: DexIntegration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn scan_arbitrage_opportunities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | async fn collect_cross_chain_prices(&self, asset: &str) -> Result, ArbitrageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | async fn calculate_execution_cost( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn calculate_dex_fee(&self, chain: &ChainId, amount_usd: u64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn default_gas_cost(&self, chain: &ChainId) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn default_bridge_cost(&self, from_chain: &ChainId, to_chain: &ChainId, amount_usd: u64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn estimate_execution_time(&self, buy_chain: &ChainId, sell_chain: &ChainId) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn chain_execution_time(&self, chain: &ChainId) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn bridge_time(&self, from_chain: &ChainId, to_chain: &ChainId) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | fn calculate_confidence_score(&self, buy_chain: &ChainId, sell_chain: &ChainId, asset: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | fn is_reliable_bridge_route(&self, from_chain: &ChainId, to_chain: &ChainId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | pub async fn execute_arbitrage(&mut self, opportunity: ArbitrageOpportunity) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | fn validate_opportunity(&self, opportunity: &ArbitrageOpportunity) -> Result<(), ArbitrageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | async fn execute_buy_transaction(&self, opportunity: &ArbitrageOpportunity) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | async fn execute_bridge_transfer(&self, opportunity: &ArbitrageOpportunity, _buy_result: &TransactionResult) -> Result Result src/DeFlow_backend/src/defi/arbitrage.rs:436:9 [INFO] [stdout] | [INFO] [stdout] 435 | pub struct PriceOracle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 436 | pub chain: ChainId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 437 | pub price_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 438 | pub cache_duration: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_asset_price` and `fetch_price_from_chain` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:451:18 [INFO] [stdout] | [INFO] [stdout] 441 | impl PriceOracle { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 451 | pub async fn get_asset_price(&self, asset: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | async fn fetch_price_from_chain(&self, asset: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from_chain`, `to_chain`, `base_fee`, and `variable_rate` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:509:9 [INFO] [stdout] | [INFO] [stdout] 508 | pub struct BridgeCostCalculator { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 509 | pub from_chain: ChainId, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 510 | pub to_chain: ChainId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 511 | pub base_fee: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 512 | pub variable_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BridgeCostCalculator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_cost` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:516:12 [INFO] [stdout] | [INFO] [stdout] 515 | impl BridgeCostCalculator { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 516 | pub fn calculate_cost(&self, amount_usd: u64, _asset: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chain`, `current_gas_price`, and `swap_gas_limit` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 523 | pub struct GasEstimator { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 524 | pub chain: ChainId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 525 | pub current_gas_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 526 | pub swap_gas_limit: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasEstimator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `estimate_swap_cost` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 529 | impl GasEstimator { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 530 | pub fn estimate_swap_cost(&self, _amount_usd: u64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price` and `timestamp` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:539:9 [INFO] [stdout] | [INFO] [stdout] 538 | pub struct CachedPrice { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 539 | pub price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 540 | pub timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedPrice` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 605 | pub struct TransactionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BridgeResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:618:12 [INFO] [stdout] | [INFO] [stdout] 618 | pub struct BridgeResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArbitrageExecutionResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:629:12 [INFO] [stdout] | [INFO] [stdout] 629 | pub struct ArbitrageExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ChainIdExt` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:654:7 [INFO] [stdout] | [INFO] [stdout] 654 | trait ChainIdExt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ArbitrageError` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/arbitrage.rs:671:10 [INFO] [stdout] | [INFO] [stdout] 671 | pub enum ArbitrageError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl AdvancedPortfolioManager { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn execute_rebalancing(&mut self, user_id: &str, plan: RebalancingPlan) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub async fn process_auto_compounding(&mut self) -> Result, PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn should_auto_compound(&self, position: &Position, settings: &AutoCompoundSettings, current_time: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | async fn execute_auto_compound(&self, position: &mut Position, settings: &AutoCompoundSettings) -> Result Result f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn estimate_compound_gas_cost_static(chain: &ChainId, _amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_positions_by_chain` and `get_positions_by_protocol` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:400:12 [INFO] [stdout] | [INFO] [stdout] 340 | impl UserPortfolio { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn get_positions_by_chain(&self, chain: &ChainId) -> Vec<&Position> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 404 | pub fn get_positions_by_protocol(&self, protocol: &DeFiProtocol) -> Vec<&Position> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 429 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 430 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active_triggers` and `gas_optimizer` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct RebalancingEngine { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 11 | pub rebalancing_history: Vec, [INFO] [stdout] 12 | pub active_triggers: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub gas_optimizer: GasOptimizer, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RebalancingEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_rebalancing`, `validate_rebalancing_plan`, `execute_rebalancing_action`, `apply_rebalancing_results`, and `record_rebalancing` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl RebalancingEngine { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn execute_rebalancing(&mut self, portfolio: &mut UserPortfolio, plan: RebalancingPlan) -> Result Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | async fn execute_rebalancing_action(&mut self, _portfolio: &mut UserPortfolio, action: &RebalancingActionPlan) -> Result Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | fn record_rebalancing(&mut self, portfolio: &UserPortfolio, result: &RebalancingResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gas_price_cache` and `last_updated` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct GasOptimizer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 382 | pub gas_price_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 383 | pub last_updated: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasOptimizer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `estimate_gas_cost` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:394:12 [INFO] [stdout] | [INFO] [stdout] 386 | impl GasOptimizer { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 394 | pub fn estimate_gas_cost(&self, _from_position: &str, _to_position: &str, amount_usd: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `liquidity_cache` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 404 | pub struct SlippageCalculator { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 405 | pub liquidity_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlippageCalculator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_actual_slippage` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/rebalancing.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 408 | impl SlippageCalculator { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 430 | pub fn calculate_actual_slippage(&self, amount_usd: f64, _to_position: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `risk_models`, `risk_history`, and `stress_test_scenarios` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/risk_management.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PortfolioRiskManager { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 11 | pub risk_models: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | pub alert_thresholds: HashMap, [INFO] [stdout] 13 | pub risk_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 14 | pub stress_test_scenarios: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortfolioRiskManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `confidence_levels` and `time_horizons` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/risk_management.rs:722:9 [INFO] [stdout] | [INFO] [stdout] 721 | pub struct VaRCalculator { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 722 | pub confidence_levels: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 723 | pub time_horizons: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VaRCalculator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `factors`, `weights`, and `baseline_score` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/risk_management.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 879 | pub struct RiskModel { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 880 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 881 | pub factors: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 882 | pub weights: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 883 | pub baseline_score: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `benchmark_data` and `attribution_models` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/analytics.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PortfolioAnalyticsEngine { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 11 | pub performance_cache: HashMap, [INFO] [stdout] 12 | pub benchmark_data: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub attribution_models: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortfolioAnalyticsEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price_cache` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/analytics.rs:877:9 [INFO] [stdout] | [INFO] [stdout] 876 | pub struct MarketDataService { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 877 | pub price_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketDataService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id`, `analytics`, and `cached_at` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/analytics.rs:1064:9 [INFO] [stdout] | [INFO] [stdout] 1063 | pub struct PerformanceCache { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 1064 | pub user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1065 | pub analytics: PortfolioAnalytics, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1066 | pub cached_at: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PerformanceCache` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `returns_7d`, `returns_30d`, `returns_90d`, and `volatility` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/analytics.rs:1071:9 [INFO] [stdout] | [INFO] [stdout] 1070 | pub struct BenchmarkData { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 1071 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 1072 | pub returns_7d: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 1073 | pub returns_30d: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1074 | pub returns_90d: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1075 | pub volatility: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BenchmarkData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `factors`, and `weights` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/analytics.rs:1080:9 [INFO] [stdout] | [INFO] [stdout] 1079 | pub struct AttributionModel { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 1080 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 1081 | pub factors: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1082 | pub weights: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AttributionModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `email_templates` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct NotificationSystem { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub email_templates: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotificationSystem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl NotificationSystem { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn send_performance_alert(&mut self, user_id: &str, alert_type: PerformanceAlertType, data: PerformanceAlertData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn send_rebalancing_notification(&mut self, user_id: &str, notification_type: RebalancingNotificationType, data: RebalancingNotif... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn send_yield_alert(&mut self, user_id: &str, alert_type: YieldAlertType, data: YieldAlertData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn send_system_notification(&mut self, user_id: &str, alert_type: SystemAlertType, message: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn process_notification_queue(&mut self) -> Result, PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | async fn send_notification(&mut self, notification: &mut Notification) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | async fn send_in_app_notification(&self, _notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 390 | async fn send_email_notification(&self, notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 397 | async fn send_push_notification(&self, notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 404 | async fn send_webhook_notification(&self, notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `subject`, `html_body`, and `text_body` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:667:9 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct EmailTemplate { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 667 | pub subject: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 668 | pub html_body: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 669 | pub text_body: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EmailTemplate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NotificationResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:674:12 [INFO] [stdout] | [INFO] [stdout] 674 | pub struct NotificationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `execution_engine` and `protocol_integrations` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct AutomatedStrategyManager { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 253 | pub strategy_registry: StrategyRegistry, [INFO] [stdout] 254 | pub execution_engine: StrategyExecutionEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub protocol_integrations: DeFiProtocolIntegrations, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AutomatedStrategyManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_strategies`, `is_strategy_eligible_for_execution`, `find_suitable_opportunity`, `is_opportunity_suitable_for_strategy`, and `execute_single_strategy` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:351:18 [INFO] [stdout] | [INFO] [stdout] 266 | impl AutomatedStrategyManager { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 351 | pub async fn execute_strategies(&mut self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 596 | fn is_strategy_eligible_for_execution(&self, strategy: &ActiveStrategy, current_time: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 602 | fn find_suitable_opportunity(&self, strategy: &ActiveStrategy, opportunities: &[StrategyOpportunity]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 611 | fn is_opportunity_suitable_for_strategy(&self, strategy: &ActiveStrategy, opportunity: &StrategyOpportunity) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 648 | async fn execute_single_strategy(&mut self, strategy: &ActiveStrategy, opportunity: StrategyOpportunity) -> Result src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct StrategyExecutionEngine { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 11 | pub safety_controller: SafetyController, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub gas_estimator: GasEstimator, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub transaction_builder: TransactionBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub slippage_protector: SlippageProtector, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub execution_metrics: ExecutionMetrics, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub retry_manager: RetryManager, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyExecutionEngine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 19 | impl StrategyExecutionEngine { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn execute_yield_farming_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub async fn execute_arbitrage_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub async fn execute_rebalancing_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub async fn execute_liquidity_mining_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub async fn execute_dca_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 387 | pub async fn execute_composite_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 460 | async fn execute_arbitrage_sequence( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 509 | async fn execute_transaction(&self, transaction: Transaction) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 526 | fn calculate_rebalancing_trades( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | fn generate_execution_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 568 | fn get_current_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_single_execution_usd`, `max_daily_volume_usd`, `daily_volume_tracker`, and `last_reset` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:583:9 [INFO] [stdout] | [INFO] [stdout] 582 | pub struct SafetyController { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 583 | pub max_single_execution_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 584 | pub max_daily_volume_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 585 | pub daily_volume_tracker: HashMap, // user_id -> daily volume [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 586 | pub last_reset: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SafetyController` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pre_execution_safety_check` and `update_daily_volume_tracker` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:599:12 [INFO] [stdout] | [INFO] [stdout] 589 | impl SafetyController { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 599 | pub fn pre_execution_safety_check(&mut self, strategy: &ActiveStrategy, opportunity: &StrategyOpportunity) -> Result<(), StrategyErro... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 624 | fn update_daily_volume_tracker(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base_gas_costs` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:638:9 [INFO] [stdout] | [INFO] [stdout] 637 | pub struct GasEstimator { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 638 | pub base_gas_costs: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasEstimator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `estimate_yield_farming_gas`, `estimate_arbitrage_gas`, `estimate_rebalancing_gas`, `estimate_transaction_gas`, and `get_gas_price` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:655:12 [INFO] [stdout] | [INFO] [stdout] 641 | impl GasEstimator { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 655 | pub fn estimate_yield_farming_gas(&self, chain: &ChainId, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 665 | pub fn estimate_arbitrage_gas(&self, chain: &ChainId, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 676 | pub fn estimate_rebalancing_gas(&self, chain: &ChainId, trades: &[RebalancingTrade]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 684 | pub fn estimate_transaction_gas(&self, transaction: &Transaction) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 694 | fn get_gas_price(&self, chain: &ChainId) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `build_approval_transaction`, `build_yield_farming_transaction`, `build_swap_transaction`, `build_liquidity_provision_transaction`, `build_token_purchase_transaction`, and `build_dex_trade_transaction` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:714:12 [INFO] [stdout] | [INFO] [stdout] 709 | impl TransactionBuilder { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 714 | pub fn build_approval_transaction(&self, chain: &ChainId, token: &str, spender: &str, amount: f64) -> Result Result Result Result Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 769 | pub fn build_dex_trade_transaction(&self, chain: &ChainId, dex: &str, token_a: &str, token_b: &str, amount: f64, is_buy: bool) -> Res... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_slippage_tolerance` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:785:9 [INFO] [stdout] | [INFO] [stdout] 784 | pub struct SlippageProtector { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 785 | pub max_slippage_tolerance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlippageProtector` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_slippage` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:795:12 [INFO] [stdout] | [INFO] [stdout] 788 | impl SlippageProtector { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 795 | pub fn validate_slippage(&self, expected_amount: f64, actual_amount: f64) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `total_executions`, `successful_executions`, `total_gas_spent`, and `avg_execution_time` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:809:9 [INFO] [stdout] | [INFO] [stdout] 808 | pub struct ExecutionMetrics { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 809 | pub total_executions: HashMap, // strategy_type -> count [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 810 | pub successful_executions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 811 | pub total_gas_spent: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 812 | pub avg_execution_time: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExecutionMetrics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_execution` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:825:12 [INFO] [stdout] | [INFO] [stdout] 815 | impl ExecutionMetrics { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 825 | pub fn record_execution(&mut self, strategy_type: &StrategyType, success: bool, execution_time: u64, gas_cost: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_retries` and `retry_delay_seconds` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:846:9 [INFO] [stdout] | [INFO] [stdout] 845 | pub struct RetryManager { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 846 | pub max_retries: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 847 | pub retry_delay_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RetryManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute_with_retry` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:858:18 [INFO] [stdout] | [INFO] [stdout] 850 | impl RetryManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 858 | pub async fn execute_with_retry(&self, mut operation: F) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:885:12 [INFO] [stdout] | [INFO] [stdout] 885 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TransactionType` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:895:10 [INFO] [stdout] | [INFO] [stdout] 895 | pub enum TransactionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:903:12 [INFO] [stdout] | [INFO] [stdout] 903 | pub struct TransactionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RebalancingTrade` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:912:12 [INFO] [stdout] | [INFO] [stdout] 912 | pub struct RebalancingTrade { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TradeType` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/execution_engine.rs:920:10 [INFO] [stdout] | [INFO] [stdout] 920 | pub enum TradeType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `yield_scanner`, `arbitrage_scanner`, `liquidity_scanner`, `rebalancing_scanner`, and `protocol_integrations` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct OpportunityScanner { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 14 | pub yield_scanner: YieldOpportunityScanner, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub arbitrage_scanner: ArbitrageOpportunityScanner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub liquidity_scanner: LiquidityOpportunityScanner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub rebalancing_scanner: RebalancingOpportunityScanner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub protocol_integrations: DeFiProtocolIntegrations, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpportunityScanner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 25 | impl OpportunityScanner { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn initialize(&mut self) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn scan_opportunities(&mut self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn convert_live_yield_to_strategy_opportunities(&self, live_opportunities: Vec u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn calculate_liquidity_score(&self, total_liquidity_usd: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | fn calculate_risk_score_from_confidence(&self, confidence_score: f64) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | fn calculate_liquidity_score_from_trade_size(&self, max_trade_size_usd: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | fn chains_match(&self, chain1: &ChainId, chain2: &ChainId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | fn get_chain_name(&self, chain: &ChainId) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn should_scan(&self, scan_type: &str, current_time: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | fn apply_filters(&self, opportunities: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | fn rank_opportunities(&self, mut opportunities: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | fn calculate_opportunity_score(&self, opportunity: &StrategyOpportunity) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | fn update_opportunity_cache(&mut self, opportunities: &[StrategyOpportunity]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | fn convert_chain_id(&self, chain: &crate::defi::types::ChainId) -> ChainId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `monitored_protocols`, `min_apy_threshold`, and `preferred_tokens` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:473:9 [INFO] [stdout] | [INFO] [stdout] 472 | pub struct YieldOpportunityScanner { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 473 | pub monitored_protocols: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 474 | pub min_apy_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 475 | pub preferred_tokens: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `YieldOpportunityScanner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `scan_yield_opportunities`, `scan_protocol_yields`, `estimate_gas_cost`, `get_current_time`, and `get_chain_name` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:487:12 [INFO] [stdout] | [INFO] [stdout] 478 | impl YieldOpportunityScanner { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 487 | pub fn initialize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 503 | pub async fn scan_yield_opportunities(&self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | async fn scan_protocol_yields(&self, chain: &ChainId, protocol: &DeFiProtocol) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 568 | fn estimate_gas_cost(&self, chain: &ChainId) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 578 | fn get_current_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 589 | fn get_chain_name(&self, chain: &ChainId) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `monitored_dexes`, `token_pairs`, and `min_profit_threshold` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:597:9 [INFO] [stdout] | [INFO] [stdout] 596 | pub struct ArbitrageOpportunityScanner { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] 597 | pub monitored_dexes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 598 | pub token_pairs: Vec<(String, String)>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 599 | pub min_profit_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArbitrageOpportunityScanner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `scan_arbitrage_opportunities`, `scan_token_pair_arbitrage`, and `get_current_time` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:611:12 [INFO] [stdout] | [INFO] [stdout] 602 | impl ArbitrageOpportunityScanner { [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 611 | pub fn initialize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 626 | pub async fn scan_arbitrage_opportunities(&self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 650 | async fn scan_token_pair_arbitrage(&self, chain: &ChainId, token_pair: &(String, String)) -> Result, Strateg... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 689 | fn get_current_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_apr_threshold`, `monitored_pools`, and `impermanent_loss_tolerance` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:704:9 [INFO] [stdout] | [INFO] [stdout] 703 | pub struct LiquidityOpportunityScanner { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] 704 | pub min_apr_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 705 | pub monitored_pools: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 706 | pub impermanent_loss_tolerance: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidityOpportunityScanner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `scan_liquidity_opportunities`, and `get_current_time` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:718:12 [INFO] [stdout] | [INFO] [stdout] 709 | impl LiquidityOpportunityScanner { [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 718 | pub fn initialize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 727 | pub async fn scan_liquidity_opportunities(&self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 765 | fn get_current_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drift_threshold` and `monitored_allocations` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:780:9 [INFO] [stdout] | [INFO] [stdout] 779 | pub struct RebalancingOpportunityScanner { [INFO] [stdout] | ----------------------------- fields in this struct [INFO] [stdout] 780 | pub drift_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 781 | pub monitored_allocations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RebalancingOpportunityScanner` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `scan_rebalancing_opportunities`, and `get_current_time` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:792:12 [INFO] [stdout] | [INFO] [stdout] 784 | impl RebalancingOpportunityScanner { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 792 | pub fn initialize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 801 | pub async fn scan_rebalancing_opportunities(&self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 867 | fn get_current_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `access_count` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/opportunity_scanner.rs:929:9 [INFO] [stdout] | [INFO] [stdout] 926 | pub struct CachedOpportunity { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 929 | pub access_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedOpportunity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `risk_analyzer` and `last_update` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct StrategyPerformanceTracker { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub risk_analyzer: RiskAnalyzer, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub last_update: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyPerformanceTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_strategy_performance`, `update_strategy_metrics`, `capture_market_conditions`, and `store_optimization_suggestions` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl StrategyPerformanceTracker { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn update_strategy_performance(&mut self, strategy: &mut ActiveStrategy, execution_result: &StrategyExecutionResult) -> Result<()... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn update_strategy_metrics(&self, strategy: &mut ActiveStrategy, record: &PerformanceRecord) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | fn capture_market_conditions(&self) -> MarketConditions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | fn store_optimization_suggestions(&self, _strategy_id: &str, _suggestions: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_risk_metrics`, `calculate_volatility_score`, and `calculate_liquidity_risk` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:527:12 [INFO] [stdout] | [INFO] [stdout] 522 | impl RiskAnalyzer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn update_risk_metrics(&self, strategy: &mut ActiveStrategy, record: &PerformanceRecord) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 535 | fn calculate_volatility_score(&self, _record: &PerformanceRecord) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 540 | fn calculate_liquidity_risk(&self, _record: &PerformanceRecord) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `analyze_strategy_performance` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/performance_tracker.rs:555:12 [INFO] [stdout] | [INFO] [stdout] 550 | impl OptimizationEngine { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 555 | pub fn analyze_strategy_performance(&self, _strategy: &ActiveStrategy, _history: &[PerformanceRecord]) -> Result src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct StrategyRiskManager { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub compliance_checker: ComplianceChecker, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyRiskManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl StrategyRiskManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn pre_execution_check(&mut self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn post_execution_assessment(&mut self, strategy: &ActiveStrategy, result: &StrategyExecutionResult) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn should_emergency_stop(&self, strategy: &ActiveStrategy) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn validate_strategy_risk_limits(&self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn validate_market_conditions(&self, _strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | fn check_concentration_risk(&self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | fn check_liquidity_risk(&self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | fn check_correlation_risk(&self, _strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | fn update_strategy_risk_metrics(&self, _strategy: &ActiveStrategy, _result: &StrategyExecutionResult) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | fn check_post_execution_risk_breaches(&self, strategy: &ActiveStrategy, result: &StrategyExecutionResult) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | fn calculate_recent_failure_rate(&self, _strategy: &ActiveStrategy) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 542 | fn calculate_current_drawdown(&self, _strategy: &ActiveStrategy) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_with_execution_data` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:645:12 [INFO] [stdout] | [INFO] [stdout] 625 | impl RiskModels { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 645 | pub fn update_with_execution_data(&mut self, _strategy: &ActiveStrategy, _result: &StrategyExecutionResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_pre_execution_check` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:696:12 [INFO] [stdout] | [INFO] [stdout] 685 | impl RiskMonitoringSystem { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 696 | pub fn record_pre_execution_check(&mut self, _strategy: &ActiveStrategy, _passed: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_circuit_breaker` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:716:9 [INFO] [stdout] | [INFO] [stdout] 714 | pub struct EmergencyControls { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 715 | pub emergency_stops: HashMap, [INFO] [stdout] 716 | pub global_circuit_breaker: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EmergencyControls` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `should_trigger_emergency_stop` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:727:12 [INFO] [stdout] | [INFO] [stdout] 719 | impl EmergencyControls { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 727 | pub fn should_trigger_emergency_stop(&self, strategy: &ActiveStrategy, result: &StrategyExecutionResult) -> Result src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1407:9 [INFO] [stdout] | [INFO] [stdout] 1404 | pub struct StrategyConflict { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1407 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1408 | pub severity: ConflictSeverity, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyConflict` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AllocationImbalance` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1415:5 [INFO] [stdout] | [INFO] [stdout] 1412 | pub enum ConflictType { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 1415 | AllocationImbalance, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConflictType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `High` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1422:5 [INFO] [stdout] | [INFO] [stdout] 1419 | pub enum ConflictSeverity { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 1422 | High, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConflictSeverity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `conflict_id` and `reason` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1427:9 [INFO] [stdout] | [INFO] [stdout] 1426 | pub struct ConflictResolution { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 1427 | pub conflict_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1432 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConflictResolution` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ChangeChain` and `PauseTemporarily` are never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1439:5 [INFO] [stdout] | [INFO] [stdout] 1436 | pub enum ResolutionType { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 1439 | ChangeChain, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1440 | PauseTemporarily, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResolutionType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id`, `total_strategies_analyzed`, and `optimization_confidence` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1445:9 [INFO] [stdout] | [INFO] [stdout] 1444 | pub struct AllocationOptimizationResult { [INFO] [stdout] | ---------------------------- fields in this struct [INFO] [stdout] 1445 | pub user_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1446 | pub improvements: Vec, [INFO] [stdout] 1447 | pub total_strategies_analyzed: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1448 | pub optimization_confidence: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllocationOptimizationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_allocation`, `reason`, and `expected_improvement` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1454:9 [INFO] [stdout] | [INFO] [stdout] 1452 | pub struct AllocationImprovement { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 1453 | pub strategy_id: String, [INFO] [stdout] 1454 | pub current_allocation: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1455 | pub new_allocation: f64, [INFO] [stdout] 1456 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1457 | pub expected_improvement: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllocationImprovement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1464:9 [INFO] [stdout] | [INFO] [stdout] 1461 | pub struct TimingAdjustment { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1464 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimingAdjustment` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `suggested_changes` and `reason` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1470:9 [INFO] [stdout] | [INFO] [stdout] 1468 | pub struct RebalancingSuggestion { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 1469 | pub strategy_id: String, [INFO] [stdout] 1470 | pub suggested_changes: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1471 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RebalancingSuggestion` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `optimization_type` and `parameters` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1477:9 [INFO] [stdout] | [INFO] [stdout] 1475 | pub struct PortfolioOptimization { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 1476 | pub strategy_id: String, [INFO] [stdout] 1477 | pub optimization_type: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1478 | pub parameters: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortfolioOptimization` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `avg_correlation` and `correlation_matrix` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1485:9 [INFO] [stdout] | [INFO] [stdout] 1483 | pub struct CorrelationAnalysis { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 1484 | pub max_correlation: f64, [INFO] [stdout] 1485 | pub avg_correlation: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 1486 | pub correlation_matrix: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CorrelationAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `optimal_allocation` and `current_allocation` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1492:9 [INFO] [stdout] | [INFO] [stdout] 1490 | pub struct AllocationAnalysis { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 1491 | pub efficiency_score: f64, [INFO] [stdout] 1492 | pub optimal_allocation: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1493 | pub current_allocation: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllocationAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `optimal_schedule` and `current_schedule` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1499:9 [INFO] [stdout] | [INFO] [stdout] 1497 | pub struct TimingAnalysis { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 1498 | pub conflicts_detected: usize, [INFO] [stdout] 1499 | pub optimal_schedule: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 1500 | pub current_schedule: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimingAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_gas_cost` and `optimized_gas_cost` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/coordination_engine.rs:1506:9 [INFO] [stdout] | [INFO] [stdout] 1504 | pub struct GasAnalysis { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 1505 | pub optimization_potential: f64, [INFO] [stdout] 1506 | pub current_gas_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 1507 | pub optimized_gas_cost: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasAnalysis` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_automated_strategies` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategy_api.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn init_automated_strategies() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CrossChainPriceOracle { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 13 | pub chainlink_oracle: ChainlinkOracle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub pyth_oracle: PythOracle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 15 | pub coingecko_oracle: CoinGeckoOracle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub binance_oracle: BinanceOracle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub price_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub price_aggregator: PriceAggregator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub alert_system: PriceAlertSystem, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | pub historical_storage: HistoricalPriceStorage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub update_intervals: OracleUpdateIntervals, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub last_updates: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrossChainPriceOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl CrossChainPriceOracle { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn get_current_price(&mut self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub async fn get_aggregated_price(&mut self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn update_all_prices(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn set_price_alert(&mut self, alert: PriceAlert) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_oracle_statistics(&self) -> OracleStatistics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn get_supported_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | fn setup_supported_assets(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | fn get_tracked_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn calculate_cache_hit_rate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `supported_feeds`, `rpc_endpoints`, and `feed_contracts` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 370 | pub struct ChainlinkOracle { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 371 | pub supported_feeds: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 372 | pub rpc_endpoints: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 373 | pub feed_contracts: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainlinkOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_price`, `get_mock_chainlink_price`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:385:12 [INFO] [stdout] | [INFO] [stdout] 376 | impl ChainlinkOracle { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | async fn get_mock_chainlink_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | pub fn get_health_status(&self) -> OracleHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `solana_rpc_endpoint` and `price_account_addresses` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 446 | pub struct PythOracle { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 447 | pub solana_rpc_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 448 | pub price_account_addresses: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PythOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_price`, `get_mock_pyth_price`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:459:12 [INFO] [stdout] | [INFO] [stdout] 451 | impl PythOracle { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 459 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | async fn get_mock_pyth_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub fn get_health_status(&self) -> OracleHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_endpoint` and `supported_tokens` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:514:9 [INFO] [stdout] | [INFO] [stdout] 513 | pub struct CoinGeckoOracle { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 514 | pub api_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 515 | pub supported_tokens: HashMap, // symbol -> coingecko_id [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinGeckoOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_price`, `get_historical_prices`, `get_mock_coingecko_price`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:526:12 [INFO] [stdout] | [INFO] [stdout] 518 | impl CoinGeckoOracle { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 526 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 540 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 549 | pub async fn get_historical_prices(&self, asset: &Asset, timeframe: TimeFrame) -> Result, OracleError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | async fn get_mock_coingecko_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 617 | pub fn get_health_status(&self) -> OracleHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_endpoint` and `supported_pairs` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:630:9 [INFO] [stdout] | [INFO] [stdout] 629 | pub struct BinanceOracle { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 630 | pub api_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 631 | pub supported_pairs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceOracle` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_price`, `get_mock_binance_price`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:642:12 [INFO] [stdout] | [INFO] [stdout] 634 | impl BinanceOracle { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 642 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 654 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 665 | async fn get_mock_binance_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 689 | pub fn get_health_status(&self) -> OracleHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `aggregate_prices` and `get_source_weight` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:708:12 [INFO] [stdout] | [INFO] [stdout] 703 | impl PriceAggregator { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 708 | pub fn aggregate_prices(&self, prices: Vec, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 737 | fn get_source_weight(&self, source: &OracleProvider) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AggregatedPrice` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:762:12 [INFO] [stdout] | [INFO] [stdout] 762 | pub struct AggregatedPrice { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TimeFrame` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:787:10 [INFO] [stdout] | [INFO] [stdout] 787 | pub enum TimeFrame { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price`, `cached_at`, and `source` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:797:9 [INFO] [stdout] | [INFO] [stdout] 796 | pub struct CachedPrice { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 797 | pub price: Price, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 798 | pub cached_at: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 799 | pub source: OracleProvider, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedPrice` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceUpdateResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:803:12 [INFO] [stdout] | [INFO] [stdout] 803 | pub struct PriceUpdateResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OracleStatistics` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:812:12 [INFO] [stdout] | [INFO] [stdout] 812 | pub struct OracleStatistics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OracleHealthStatus` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:822:12 [INFO] [stdout] | [INFO] [stdout] 822 | pub struct OracleHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `feed_address`, `decimals`, and `heartbeat_seconds` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:850:9 [INFO] [stdout] | [INFO] [stdout] 849 | pub struct ChainlinkFeed { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 850 | pub feed_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 851 | pub decimals: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 852 | pub heartbeat_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainlinkFeed` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alerts` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:857:9 [INFO] [stdout] | [INFO] [stdout] 856 | pub struct PriceAlertSystem { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 857 | pub alerts: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceAlertSystem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_alert` and `check_price_alerts` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:867:12 [INFO] [stdout] | [INFO] [stdout] 860 | impl PriceAlertSystem { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 867 | pub fn add_alert(&mut self, alert: PriceAlert) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 873 | pub async fn check_price_alerts(&self, price: &Price) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `storage` is never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:927:9 [INFO] [stdout] | [INFO] [stdout] 926 | pub struct HistoricalPriceStorage { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 927 | pub storage: HashMap>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HistoricalPriceStorage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_price` and `get_prices` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:937:18 [INFO] [stdout] | [INFO] [stdout] 930 | impl HistoricalPriceStorage { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 937 | pub async fn store_price(&mut self, price: &Price) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 958 | pub async fn get_prices(&self, asset: &Asset, timeframe: &TimeFrame) -> Result, OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OracleError` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_oracle.rs:985:10 [INFO] [stdout] | [INFO] [stdout] 985 | pub enum OracleError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DeFiProtocolIntegrations { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 17 | pub uniswap_integration: UniswapIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub aave_integration: AaveIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub compound_integration: CompoundIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub curve_integration: CurveIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub raydium_integration: RaydiumIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub jupiter_integration: JupiterIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub price_oracle: CrossChainPriceOracle, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | pub gas_tracker: GasPriceTracker, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | pub integration_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub update_intervals: IntegrationUpdateIntervals, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub last_updates: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeFiProtocolIntegrations` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl DeFiProtocolIntegrations { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn get_yield_farming_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub async fn get_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn update_all_integrations(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn get_integration_health(&self) -> IntegrationHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | async fn scan_ethereum_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | async fn scan_cross_chain_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | async fn scan_solana_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `factory_address`, `router_address`, `supported_chains`, and `pool_cache` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:450:9 [INFO] [stdout] | [INFO] [stdout] 449 | pub struct UniswapIntegration { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 450 | pub factory_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 451 | pub router_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 452 | pub supported_chains: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 453 | pub pool_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UniswapIntegration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_liquidity_mining_opportunities`, `get_pair_price`, `update_data`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:466:18 [INFO] [stdout] | [INFO] [stdout] 456 | impl UniswapIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 466 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn get_liquidity_mining_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 520 | pub async fn get_pair_price(&self, token_a: &str, token_b: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | pub fn get_health_status(&self) -> ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pool_address_provider`, `supported_chains`, and `market_cache` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:550:9 [INFO] [stdout] | [INFO] [stdout] 549 | pub struct AaveIntegration { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 550 | pub pool_address_provider: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 551 | pub supported_chains: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 552 | pub market_cache: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AaveIntegration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_lending_opportunities`, `update_data`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:564:18 [INFO] [stdout] | [INFO] [stdout] 555 | impl AaveIntegration { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 564 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 578 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 632 | pub fn get_health_status(&self) -> ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_lending_opportunities`, `update_data`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:650:18 [INFO] [stdout] | [INFO] [stdout] 648 | impl CompoundIntegration { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 649 | pub fn new() -> Self { Self } [INFO] [stdout] 650 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 651 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { Ok(vec![]) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 652 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 653 | pub fn get_health_status(&self) -> ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_yield_opportunities`, `update_data`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:668:18 [INFO] [stdout] | [INFO] [stdout] 666 | impl CurveIntegration { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 667 | pub fn new() -> Self { Self } [INFO] [stdout] 668 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 669 | pub async fn get_yield_opportunities(&self) -> Result, IntegrationError> { Ok(vec![]) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 670 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 671 | pub fn get_health_status(&self) -> ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_yield_opportunities`, `get_pair_price`, `update_data`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:687:18 [INFO] [stdout] | [INFO] [stdout] 685 | impl RaydiumIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 686 | pub fn new() -> Self { Self } [INFO] [stdout] 687 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 688 | pub async fn get_yield_opportunities(&self) -> Result, IntegrationError> { Ok(vec![]) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 689 | pub async fn get_pair_price(&self, _token_a: &str, _token_b: &str) -> Result { Ok(104.25) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 690 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 691 | pub fn get_health_status(&self) -> ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_pair_price`, `update_data`, and `get_health_status` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:706:18 [INFO] [stdout] | [INFO] [stdout] 704 | impl JupiterIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 705 | pub fn new() -> Self { Self } [INFO] [stdout] 706 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 707 | pub async fn get_pair_price(&self, _token_a: &str, _token_b: &str) -> Result { Ok(104.75) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 708 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 709 | pub fn get_health_status(&self) -> ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gas_prices` and `transaction_costs` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:722:9 [INFO] [stdout] | [INFO] [stdout] 721 | pub struct GasPriceTracker { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 722 | pub gas_prices: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 723 | pub transaction_costs: HashMap<(ChainId, TransactionType), f64>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasPriceTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `estimate_transaction_cost`, and `update_gas_prices` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:734:18 [INFO] [stdout] | [INFO] [stdout] 726 | impl GasPriceTracker { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 734 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 763 | pub async fn estimate_transaction_cost(&self, chain: &ChainId, tx_type: TransactionType) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 785 | pub async fn update_gas_prices(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiveYieldOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:799:12 [INFO] [stdout] | [INFO] [stdout] 799 | pub struct LiveYieldOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `YieldOpportunityType` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:817:10 [INFO] [stdout] | [INFO] [stdout] 817 | pub enum YieldOpportunityType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiveArbitrageOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:825:12 [INFO] [stdout] | [INFO] [stdout] 825 | pub struct LiveArbitrageOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:845:9 [INFO] [stdout] | [INFO] [stdout] 844 | pub struct UniswapPoolInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 845 | pub pool_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 846 | pub token0: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 847 | pub token1: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 848 | pub fee: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 849 | pub tvl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 850 | pub volume_24h: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 851 | pub apy: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UniswapPoolInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapLiquidityOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:855:12 [INFO] [stdout] | [INFO] [stdout] 855 | pub struct UniswapLiquidityOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asset_symbol`, `supply_apy`, `borrow_apy`, `total_liquidity`, `utilization_rate`, and `liquidation_threshold` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:873:9 [INFO] [stdout] | [INFO] [stdout] 872 | pub struct AaveMarketInfo { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 873 | pub asset_symbol: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 874 | pub supply_apy: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 875 | pub borrow_apy: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 876 | pub total_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 877 | pub utilization_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 878 | pub liquidation_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AaveMarketInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AaveLendingOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:882:12 [INFO] [stdout] | [INFO] [stdout] 882 | pub struct AaveLendingOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompoundLendingOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:898:12 [INFO] [stdout] | [INFO] [stdout] 898 | pub struct CompoundLendingOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CurveYieldOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:908:12 [INFO] [stdout] | [INFO] [stdout] 908 | pub struct CurveYieldOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RaydiumYieldOpportunity` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:921:12 [INFO] [stdout] | [INFO] [stdout] 921 | pub struct RaydiumYieldOpportunity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data`, `cached_at`, and `expires_at` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:942:9 [INFO] [stdout] | [INFO] [stdout] 941 | pub struct CachedIntegrationData { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 942 | pub data: String, // JSON or serialized data [INFO] [stdout] | ^^^^ [INFO] [stdout] 943 | pub cached_at: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 944 | pub expires_at: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedIntegrationData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntegrationUpdateSummary` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:965:12 [INFO] [stdout] | [INFO] [stdout] 965 | pub struct IntegrationUpdateSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntegrationHealthStatus` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:974:12 [INFO] [stdout] | [INFO] [stdout] 974 | pub struct IntegrationHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProtocolHealthStatus` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:982:12 [INFO] [stdout] | [INFO] [stdout] 982 | pub struct ProtocolHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntegrationError` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/protocol_integrations.rs:991:10 [INFO] [stdout] | [INFO] [stdout] 991 | pub enum IntegrationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct RealProtocolIntegrationManager { [INFO] [stdout] | ------------------------------ fields in this struct [INFO] [stdout] 17 | pub aave_integration: AaveIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub uniswap_integration: UniswapIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub compound_integration: CompoundIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub curve_integration: CurveIntegration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub price_oracle: CrossChainPriceOracle, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | pub rate_limiter: ApiRateLimiter, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | pub cache: ProtocolDataCache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RealProtocolIntegrationManager` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 26 | impl RealProtocolIntegrationManager { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn get_yield_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn get_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub async fn execute_yield_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub async fn execute_arbitrage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub async fn get_protocol_health(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | async fn estimate_arbitrage_gas_cost(&self, _token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | async fn get_available_liquidity(&self, _token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `base_url`, and `chain_id` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 241 | pub struct AaveIntegration { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 242 | pub api_key: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 243 | pub base_url: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 244 | pub chain_id: ChainId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AaveIntegration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_lending_opportunities`, `supply_tokens`, `get_total_value_locked`, `make_http_request`, and `calculate_risk_score` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:256:18 [INFO] [stdout] | [INFO] [stdout] 247 | impl AaveIntegration { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub async fn supply_tokens(&self, token: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub async fn get_total_value_locked(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | async fn make_http_request(&self, url: &str, method: &str, body: Option<&str>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | fn calculate_risk_score(&self, reserve: &AaveReserve) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `subgraph_url` and `chain_id` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 393 | pub struct UniswapIntegration { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 394 | pub subgraph_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 395 | pub chain_id: ChainId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UniswapIntegration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:406:18 [INFO] [stdout] | [INFO] [stdout] 398 | impl UniswapIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 406 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub async fn get_liquidity_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | pub async fn get_token_prices(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 480 | pub async fn add_liquidity(&self, token_a: &str, token_b: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 508 | pub async fn get_daily_volume(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 526 | async fn make_graphql_request(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | fn calculate_pool_risk(&self, pool: &UniswapPool) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_url` and `chain_id` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:589:9 [INFO] [stdout] | [INFO] [stdout] 588 | pub struct CompoundIntegration { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 589 | pub api_url: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 590 | pub chain_id: ChainId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompoundIntegration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_lending_opportunities`, `supply_tokens`, and `get_total_value_locked` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:601:18 [INFO] [stdout] | [INFO] [stdout] 593 | impl CompoundIntegration { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 601 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 606 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 624 | pub async fn supply_tokens(&self, token: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 636 | pub async fn get_total_value_locked(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_url` and `chain_id` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:645:9 [INFO] [stdout] | [INFO] [stdout] 644 | pub struct CurveIntegration { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 645 | pub api_url: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 646 | pub chain_id: ChainId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CurveIntegration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize`, `get_yield_opportunities`, `get_token_prices`, `add_liquidity`, and `swap_tokens` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:657:18 [INFO] [stdout] | [INFO] [stdout] 649 | impl CurveIntegration { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 657 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 662 | pub async fn get_yield_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 680 | pub async fn get_token_prices(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 691 | pub async fn add_liquidity(&self, pool_address: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 703 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RealYieldStrategy` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:747:12 [INFO] [stdout] | [INFO] [stdout] 747 | pub struct RealYieldStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionResult` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:757:12 [INFO] [stdout] | [INFO] [stdout] 757 | pub struct ExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProtocolHealthMetrics` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:766:12 [INFO] [stdout] | [INFO] [stdout] 766 | pub struct ProtocolHealthMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:779:12 [INFO] [stdout] | [INFO] [stdout] 778 | impl ProtocolHealthMetrics { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 779 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AaveReserve` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:797:8 [INFO] [stdout] | [INFO] [stdout] 797 | struct AaveReserve { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AaveProtocolData` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:809:8 [INFO] [stdout] | [INFO] [stdout] 809 | struct AaveProtocolData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapPoolsResponse` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct UniswapPoolsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapPoolsData` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:819:8 [INFO] [stdout] | [INFO] [stdout] 819 | struct UniswapPoolsData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapPool` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:824:8 [INFO] [stdout] | [INFO] [stdout] 824 | struct UniswapPool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapToken` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:835:8 [INFO] [stdout] | [INFO] [stdout] 835 | struct UniswapToken { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapTokensResponse` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:840:8 [INFO] [stdout] | [INFO] [stdout] 840 | struct UniswapTokensResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapTokensData` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:845:8 [INFO] [stdout] | [INFO] [stdout] 845 | struct UniswapTokensData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapTokenData` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:850:8 [INFO] [stdout] | [INFO] [stdout] 850 | struct UniswapTokenData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapVolumeResponse` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:856:8 [INFO] [stdout] | [INFO] [stdout] 856 | struct UniswapVolumeResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapVolumeData` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:861:8 [INFO] [stdout] | [INFO] [stdout] 861 | struct UniswapVolumeData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UniswapDayData` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:866:8 [INFO] [stdout] | [INFO] [stdout] 866 | struct UniswapDayData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `requests` and `limits` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:874:5 [INFO] [stdout] | [INFO] [stdout] 873 | pub struct ApiRateLimiter { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 874 | requests: HashMap>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 875 | limits: HashMap, // (max_requests, time_window_ns) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiRateLimiter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_make_request` and `record_request` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:891:12 [INFO] [stdout] | [INFO] [stdout] 878 | impl ApiRateLimiter { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 891 | pub fn can_make_request(&mut self, endpoint: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 906 | pub fn record_request(&mut self, endpoint: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `yield_opportunities`, `arbitrage_opportunities`, and `cache_duration` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:914:5 [INFO] [stdout] | [INFO] [stdout] 913 | pub struct ProtocolDataCache { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 914 | yield_opportunities: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 915 | arbitrage_opportunities: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 916 | cache_duration: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtocolDataCache` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `cached_at` are never read [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:921:9 [INFO] [stdout] | [INFO] [stdout] 920 | pub struct CachedData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 921 | pub data: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] 922 | pub cached_at: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_yield_opportunities`, `cache_yield_opportunities`, `get_arbitrage_opportunities`, `cache_arbitrage_opportunities`, and `is_stale` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:934:12 [INFO] [stdout] | [INFO] [stdout] 925 | impl ProtocolDataCache { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 934 | pub fn get_yield_opportunities(&self) -> Option<&CachedData>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 938 | pub fn cache_yield_opportunities(&mut self, opportunities: &[RealYieldOpportunity]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 945 | pub fn get_arbitrage_opportunities(&self) -> Option<&CachedData>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 949 | pub fn cache_arbitrage_opportunities(&mut self, opportunities: &[RealArbitrageOpportunity]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | pub fn is_stale(&self, cached_data: &CachedData) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntegrationError` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:964:10 [INFO] [stdout] | [INFO] [stdout] 964 | pub enum IntegrationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `DeFlow_backend` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `de_flow_backend` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workflow_id` [INFO] [stdout] --> src/DeFlow_backend/src/user_management.rs:139:34 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn record_workflow_execution(workflow_id: String, node_types: Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_workflow_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `DeFlow_backend` (lib test); 71 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/bin/rustc --crate-name DeFlow_backend --edition=2021 src/DeFlow_backend/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=aa8fae1612ded9e5 -C extra-filename=-b91b4198d47f7d6a --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern bs58=/opt/rustwide/target/debug/deps/libbs58-058480ec8c429109.rmeta --extern candid=/opt/rustwide/target/debug/deps/libcandid-4b0140591769e0ae.rmeta --extern getrandom=/opt/rustwide/target/debug/deps/libgetrandom-255b6f5de63d410c.rmeta --extern hex=/opt/rustwide/target/debug/deps/libhex-4852862d92867e36.rmeta --extern ic_cdk=/opt/rustwide/target/debug/deps/libic_cdk-809e4d6cd39081dd.rmeta --extern ic_cdk_timers=/opt/rustwide/target/debug/deps/libic_cdk_timers-817c807d8b567a8a.rmeta --extern ic_stable_structures=/opt/rustwide/target/debug/deps/libic_stable_structures-447480534a4ac423.rmeta --extern k256=/opt/rustwide/target/debug/deps/libk256-93ba154814f67cf2.rmeta --extern num_bigint=/opt/rustwide/target/debug/deps/libnum_bigint-5cca6335ac183c34.rmeta --extern num_traits=/opt/rustwide/target/debug/deps/libnum_traits-e2d2ea1b4acbcdaa.rmeta --extern ripemd=/opt/rustwide/target/debug/deps/libripemd-fee6c25f1c02a0aa.rmeta --extern rlp=/opt/rustwide/target/debug/deps/librlp-cfa4ab4bf51d2d5d.rmeta --extern serde=/opt/rustwide/target/debug/deps/libserde-5e8815a4f1b9a578.rmeta --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-dac6cd906d01d996.rmeta --extern sha2=/opt/rustwide/target/debug/deps/libsha2-c97b9c3ed37df239.rmeta --extern sha3=/opt/rustwide/target/debug/deps/libsha3-30f3b58b6ef551f7.rmeta --extern tokio=/opt/rustwide/target/debug/deps/libtokio-c47b557c3ff27859.rmeta --cap-lints=forbid -L native=/opt/rustwide/target/debug/build/psm-3bdd7d7c51054dd3/out` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 127 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 154 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 181 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 208 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/storage.rs:235:17 [INFO] [stdout] | [INFO] [stdout] 235 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 235 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 88 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 103 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 118 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/DeFlow_backend/src/stable_user_storage.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 133 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8c3a2c28a749689c8b8631df57482809c7fe78a56c76a697642a5b4c23140eee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c3a2c28a749689c8b8631df57482809c7fe78a56c76a697642a5b4c23140eee", kill_on_drop: false }` [INFO] [stdout] 8c3a2c28a749689c8b8631df57482809c7fe78a56c76a697642a5b4c23140eee