[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] 63a693b711e3ae1eba86c43ba684c1d937e9e9f6 [INFO] checking Legatia/DeFlow against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegatia%2FDeFlow" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 052627b59cba50bdb0d92bc746eccb1ad42afac07a67276356fca7ab197826d7 [INFO] running `Command { std: "docker" "start" "-a" "052627b59cba50bdb0d92bc746eccb1ad42afac07a67276356fca7ab197826d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "052627b59cba50bdb0d92bc746eccb1ad42afac07a67276356fca7ab197826d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "052627b59cba50bdb0d92bc746eccb1ad42afac07a67276356fca7ab197826d7", kill_on_drop: false }` [INFO] [stdout] 052627b59cba50bdb0d92bc746eccb1ad42afac07a67276356fca7ab197826d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a9a09a7dd6281f97473d637daec51c592a0f873c19afdd3e097d50945cbbdcd2 [INFO] running `Command { std: "docker" "start" "-a" "a9a09a7dd6281f97473d637daec51c592a0f873c19afdd3e097d50945cbbdcd2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling pretty v0.12.4 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling ic-cdk-executor v0.1.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking ic0 v0.23.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Checking k256 v0.13.4 [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] Checking tokio v1.47.1 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Checking ic-stable-structures v0.6.9 [INFO] [stderr] Checking candid v0.10.17 [INFO] [stderr] Compiling ic-cdk-macros v0.17.2 [INFO] [stderr] Checking ic-cdk v0.17.2 [INFO] [stderr] Checking ic-cdk-timers v0.11.0 [INFO] [stderr] Checking DeFlow_backend v0.1.0 (/opt/rustwide/workdir/src/DeFlow_backend) [INFO] [stderr] Checking deflow_pool v0.1.0 (/opt/rustwide/workdir/src/DeFlow_pool) [INFO] [stderr] error: could not compile `DeFlow_backend` (lib test) due to 1 previous error [INFO] [stdout] error: unexpected closing delimiter: `}` [INFO] [stdout] --> src/DeFlow_backend/src/defi/ethereum/tests.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 145 | fn test_icp_ethereum_service_integration() { [INFO] [stdout] | - the nearest open delimiter [INFO] [stdout] ... [INFO] [stdout] 149 | ); [INFO] [stdout] | - missing open `(` for this delimiter [INFO] [stdout] ... [INFO] [stdout] 265 | } [INFO] [stdout] | ^ unexpected closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `PremiumAccess` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:393:12 [INFO] [stdout] | [INFO] [stdout] 393 | pub struct PremiumAccess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StablecoinConfig` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:544:12 [INFO] [stdout] | [INFO] [stdout] 544 | pub struct StablecoinConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decimals` is never used [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:780:12 [INFO] [stdout] | [INFO] [stdout] 766 | impl Asset { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 780 | 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] 268 | pub fn get_monthly_profit(&self, business_model: &DevTeamBusinessModel) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn get_annual_projection(&self, business_model: &DevTeamBusinessModel) -> AnnualProjection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn assess_business_health(&self, business_model: &DevTeamBusinessModel) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | 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] 324 | pub fn update_distribution_settings(&mut self, pool_state: &mut PoolState, threshold: f64, frequency: u64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub fn update_operating_costs(&mut self, pool_state: &mut PoolState, monthly_costs: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | 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:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | 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:474:12 [INFO] [stdout] | [INFO] [stdout] 474 | 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:728:17 [INFO] [stdout] | [INFO] [stdout] 728 | 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] 728 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PremiumAccess` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:393:12 [INFO] [stdout] | [INFO] [stdout] 393 | pub struct PremiumAccess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StablecoinConfig` is never constructed [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:544:12 [INFO] [stdout] | [INFO] [stdout] 544 | pub struct StablecoinConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decimals` is never used [INFO] [stdout] --> src/DeFlow_pool/src/types.rs:780:12 [INFO] [stdout] | [INFO] [stdout] 766 | impl Asset { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 780 | 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] 268 | pub fn get_monthly_profit(&self, business_model: &DevTeamBusinessModel) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn get_annual_projection(&self, business_model: &DevTeamBusinessModel) -> AnnualProjection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn assess_business_health(&self, business_model: &DevTeamBusinessModel) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | 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] 324 | pub fn update_distribution_settings(&mut self, pool_state: &mut PoolState, threshold: f64, frequency: u64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub fn update_operating_costs(&mut self, pool_state: &mut PoolState, monthly_costs: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | 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:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | 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:474:12 [INFO] [stdout] | [INFO] [stdout] 474 | 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:728:17 [INFO] [stdout] | [INFO] [stdout] 728 | 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] 728 | 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: `ValidationResult` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:5:42 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::security::{ValidationService, ValidationResult, RateLimiterService}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SolanaError` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:803:62 [INFO] [stdout] | [INFO] [stdout] 803 | 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 import: `DeFiExecutionResult` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:13:75 [INFO] [stdout] | [INFO] [stdout] 13 | use super::price_alert_defi_integration::{execute_defi_action_from_alert, DeFiExecutionResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SocialPostData` and `format_social_post_with_defi` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use super::social_media_formatter::{format_social_post_with_defi, SocialPostData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AlertTriggerEvent` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:9:71 [INFO] [stdout] | [INFO] [stdout] 9 | use super::price_alert_service::{PriceAlert, AlertAction, TokenPrice, AlertTriggerEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LiquidityMiningConfig` and `RebalancingConfig` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:11:102 [INFO] [stdout] | [INFO] [stdout] 11 | ...tegyType, YieldFarmingConfig, ArbitrageConfig, RebalancingConfig, LiquidityMiningConfig, DCAConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::real_protocol_integrations::RealProtocolIntegrationManager` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::real_protocol_integrations::RealProtocolIntegrationManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DailyExecutionStats` [INFO] [stdout] --> src/DeFlow_backend/src/defi/social_media_formatter.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | use super::price_alert_defi_integration::{DeFiExecutionResult, DailyExecutionStats}; [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: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/DeFlow_backend/src/security/validation_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clear_timer` [INFO] [stdout] --> src/DeFlow_backend/src/scheduler_service.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 8 | use ic_cdk_timers::{set_timer, set_timer_interval, clear_timer}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Principal` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use candid::{CandidType, Deserialize, Principal}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `canister_balance` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::api::{canister_balance, canister_balance128}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::user_management` [INFO] [stdout] --> src/DeFlow_backend/src/fee_collection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::user_management; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private item shadows public glob re-export [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | 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:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use types::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: but the private item here shadows it [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | 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 import: `CyclesData` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:1003:94 [INFO] [stdout] | [INFO] [stdout] 1003 | use cycles_monitor_service::{CyclesMonitorService, CyclesMonitorConfig, CyclesMonitorResult, CyclesData, CyclesStatistics}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/DeFlow_backend/src/execution.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | 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: `node_id` [INFO] [stdout] --> src/DeFlow_backend/src/execution.rs:496:48 [INFO] [stdout] | [INFO] [stdout] 496 | FallbackStrategy::UseAlternativeNode { node_id } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `node_id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emergency_execution_id` [INFO] [stdout] --> src/DeFlow_backend/src/execution.rs:546:27 [INFO] [stdout] | [INFO] [stdout] 546 | if let Ok(emergency_execution_id) = crate::execution::start_execution( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emergency_execution_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execution_id` [INFO] [stdout] --> src/DeFlow_backend/src/events.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | Ok(execution_id) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execution_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/events.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execution_id` [INFO] [stdout] --> src/DeFlow_backend/src/events.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | Ok(execution_id) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execution_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/events.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execution_id` [INFO] [stdout] --> src/DeFlow_backend/src/events.rs:294:23 [INFO] [stdout] | [INFO] [stdout] 294 | if let Ok(execution_id) = start_execution(workflow_id.clone(), None).await { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execution_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/service.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/service.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/service.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/service.rs:412:21 [INFO] [stdout] | [INFO] [stdout] 412 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/utxo.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/utxo.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/bitcoin/utxo.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [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] [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: `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/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: `amount_usd` [INFO] [stdout] --> src/DeFlow_backend/src/defi/api.rs:662:9 [INFO] [stdout] | [INFO] [stdout] 662 | 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: `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: `notification` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:390:45 [INFO] [stdout] | [INFO] [stdout] 390 | async fn send_email_notification(&self, notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_notification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `notification` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:396:44 [INFO] [stdout] | [INFO] [stdout] 396 | async fn send_push_notification(&self, notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_notification` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoint` [INFO] [stdout] --> src/DeFlow_backend/src/defi/portfolio_manager/notifications.rs:405:21 [INFO] [stdout] | [INFO] [stdout] 405 | if let Some(endpoint) = self.webhook_endpoints.get(¬ification.user_id) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoint` [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: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:376:24 [INFO] [stdout] | [INFO] [stdout] 376 | if let Err(e) = self.risk_manager.pre_execution_check(&strategy) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `risk_error` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:390:36 [INFO] [stdout] | [INFO] [stdout] 390 | if let Err(risk_error) = self.risk_manager.post_execution_assessment(&strategy, &result) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_risk_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perf_error` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/mod.rs:395:40 [INFO] [stdout] | [INFO] [stdout] 395 | ... if let Err(perf_error) = self.performance_tracker.update_strategy_performance(strategy_mut, &result) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_perf_error` [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:388:24 [INFO] [stdout] | [INFO] [stdout] 388 | 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: variable does not need to be mutable [INFO] [stdout] --> src/DeFlow_backend/src/defi/strategy_api.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut mgr = manager.borrow_mut(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:289:39 [INFO] [stdout] | [INFO] [stdout] 289 | pub async fn supply_tokens(&self, token: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_a` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:475:39 [INFO] [stdout] | [INFO] [stdout] 475 | pub async fn add_liquidity(&self, token_a: &str, token_b: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_b` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:475:54 [INFO] [stdout] | [INFO] [stdout] 475 | pub async fn add_liquidity(&self, token_a: &str, token_b: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_in` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:486:37 [INFO] [stdout] | [INFO] [stdout] 486 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_out` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:486:53 [INFO] [stdout] | [INFO] [stdout] 486 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:616:39 [INFO] [stdout] | [INFO] [stdout] 616 | pub async fn supply_tokens(&self, token: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_address` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:681:39 [INFO] [stdout] | [INFO] [stdout] 681 | pub async fn add_liquidity(&self, pool_address: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_in` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:692:37 [INFO] [stdout] | [INFO] [stdout] 692 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_out` [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:692:53 [INFO] [stdout] | [INFO] [stdout] 692 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:484:21 [INFO] [stdout] | [INFO] [stdout] 484 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let payload = format!("{{\"text\":\"{}\"}}", escaped_msg); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:535:13 [INFO] [stdout] | [INFO] [stdout] 535 | let payload = format!("{{\"content\":\"{}\",\"username\":\"DeFlow Bot\"}}", escaped_msg); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:540:38 [INFO] [stdout] | [INFO] [stdout] 540 | async fn post_to_telegram(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:545:36 [INFO] [stdout] | [INFO] [stdout] 545 | async fn post_to_reddit(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload_template` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | payload_template: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload_template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | headers: &HashMap, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alert` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | alert: &PriceAlert, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | current_price: &TokenPrice, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limit_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let limit_price = current_price.price_usd * 0.98; // 2% below current price as example [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_limit_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | parameters: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | parameters: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 388 | parameters: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | current_price: &TokenPrice, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:434:9 [INFO] [stdout] | [INFO] [stdout] 434 | parameters: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:436:9 [INFO] [stdout] | [INFO] [stdout] 436 | current_price: &TokenPrice, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arbitrage_config` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | let arbitrage_config = ArbitrageConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arbitrage_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 462 | parameters: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:464:9 [INFO] [stdout] | [INFO] [stdout] 464 | current_price: &TokenPrice, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | parameters: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | current_price: &TokenPrice, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dca_config` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:489:13 [INFO] [stdout] | [INFO] [stdout] 489 | let dca_config = DCAConfig { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dca_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:515:45 [INFO] [stdout] | [INFO] [stdout] 515 | async fn count_active_strategies(&self, user_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alert` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 663 | alert: &PriceAlert, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:664:5 [INFO] [stdout] | [INFO] [stdout] 664 | action: &AlertAction, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:665:5 [INFO] [stdout] | [INFO] [stdout] 665 | current_price: &TokenPrice, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/defi/mod.rs:196:16 [INFO] [stdout] | [INFO] [stdout] 196 | if let Err(e) = automated_strategy_api::init_automated_strategy_system().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:171:25 [INFO] [stdout] | [INFO] [stdout] 171 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:192:24 [INFO] [stdout] | [INFO] [stdout] 192 | if let Err(e) = self.send_alert_notifications(alert, &config.notification_channels).await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:315:38 [INFO] [stdout] | [INFO] [stdout] 315 | async fn send_email_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:320:40 [INFO] [stdout] | [INFO] [stdout] 320 | async fn send_discord_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:325:41 [INFO] [stdout] | [INFO] [stdout] 325 | async fn send_telegram_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:330:38 [INFO] [stdout] | [INFO] [stdout] 330 | async fn send_slack_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/DeFlow_backend/src/fee_collection.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | pub async fn calculate_fee(user: Principal, transaction_value_usd: u64) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/DeFlow_backend/src/fee_collection.rs:127:36 [INFO] [stdout] | [INFO] [stdout] 127 | pub async fn get_user_fee_rate(user: Principal) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execution_id` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | if let Ok(execution_id) = start_execution(workflow_id.clone(), None).await { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execution_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workflow_id` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | for (workflow_id, execution) in &mut state.active_workflows { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_workflow_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:532:35 [INFO] [stdout] | [INFO] [stdout] 532 | async fn send_system_notification(message: String, level: AlertLevel) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:532:52 [INFO] [stdout] | [INFO] [stdout] 532 | async fn send_system_notification(message: String, level: AlertLevel) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:690:5 [INFO] [stdout] | [INFO] [stdout] 690 | platform: defi::price_alert_service::SocialPlatform, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_type` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:691:5 [INFO] [stdout] | [INFO] [stdout] 691 | message_type: defi::social_media_formatter::SocialMessageType, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `execution_id` [INFO] [stdout] --> src/DeFlow_backend/src/events.rs:356:27 [INFO] [stdout] | [INFO] [stdout] 356 | if let Ok(execution_id) = start_execution(wf_id.clone(), None).await { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_execution_id` [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: `reason_clone` [INFO] [stdout] --> src/DeFlow_backend/src/defi/automated_strategies/risk_manager.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let reason_clone = reason.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason_clone` [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: unused variable: `user` [INFO] [stdout] --> src/DeFlow_backend/src/security/rate_limiter.rs:323:47 [INFO] [stdout] | [INFO] [stdout] 323 | fn handle_rate_limit_violation(&mut self, user: Principal) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:117:20 [INFO] [stdout] | [INFO] [stdout] 117 | if let Err(e) = defi::initialize_defi_system().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:126:20 [INFO] [stdout] | [INFO] [stdout] 126 | if let Err(e) = defi::automated_strategy_api::init_automated_strategy_system().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | if let Err(e) = defi::initialize_defi_system().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/DeFlow_backend/src/lib.rs:176:20 [INFO] [stdout] | [INFO] [stdout] 176 | if let Err(e) = defi::automated_strategy_api::init_automated_strategy_system().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [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: 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] 396 | async fn send_push_notification(&self, notification: &Notification) -> Result<(), PortfolioError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 402 | 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:668:9 [INFO] [stdout] | [INFO] [stdout] 667 | pub struct EmailTemplate { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 668 | pub subject: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 669 | pub html_body: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 670 | 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:675:12 [INFO] [stdout] | [INFO] [stdout] 675 | 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:348:18 [INFO] [stdout] | [INFO] [stdout] 266 | impl AutomatedStrategyManager { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn execute_strategies(&mut self) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 583 | fn is_strategy_eligible_for_execution(&self, strategy: &ActiveStrategy, current_time: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 589 | fn find_suitable_opportunity(&self, strategy: &ActiveStrategy, opportunities: &[StrategyOpportunity]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | fn is_opportunity_suitable_for_strategy(&self, strategy: &ActiveStrategy, opportunity: &StrategyOpportunity) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 635 | 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] 245 | pub fn should_emergency_stop(&self, strategy: &ActiveStrategy) -> Result, StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | fn validate_strategy_risk_limits(&self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | fn validate_market_conditions(&self, _strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | fn check_concentration_risk(&self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | fn check_liquidity_risk(&self, strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | fn check_correlation_risk(&self, _strategy: &ActiveStrategy) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 338 | fn update_strategy_risk_metrics(&self, _strategy: &ActiveStrategy, _result: &StrategyExecutionResult) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | fn check_post_execution_risk_breaches(&self, strategy: &ActiveStrategy, result: &StrategyExecutionResult) -> Result<(), StrategyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | fn calculate_recent_failure_rate(&self, _strategy: &ActiveStrategy) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | 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:644:12 [INFO] [stdout] | [INFO] [stdout] 624 | impl RiskModels { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 644 | 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:695:12 [INFO] [stdout] | [INFO] [stdout] 684 | impl RiskMonitoringSystem { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 695 | 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:715:9 [INFO] [stdout] | [INFO] [stdout] 713 | pub struct EmergencyControls { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 714 | pub emergency_stops: HashMap, [INFO] [stdout] 715 | 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:726:12 [INFO] [stdout] | [INFO] [stdout] 718 | impl EmergencyControls { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 726 | 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: function `get_rate_limit_status` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/strategy_api.rs:613:8 [INFO] [stdout] | [INFO] [stdout] 613 | pub fn get_rate_limit_status(endpoint: &str, max_requests: u32, window_seconds: u64) -> HashMap { [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] 57 | pub async fn get_current_price(&mut self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn get_aggregated_price(&mut self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub async fn update_all_prices(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn set_price_alert(&mut self, alert: PriceAlert) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn get_oracle_statistics(&self) -> OracleStatistics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub fn get_supported_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | fn setup_supported_assets(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | fn get_tracked_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | 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:369:9 [INFO] [stdout] | [INFO] [stdout] 368 | pub struct ChainlinkOracle { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 369 | pub supported_feeds: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 370 | pub rpc_endpoints: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 371 | 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:383:12 [INFO] [stdout] | [INFO] [stdout] 374 | impl ChainlinkOracle { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 383 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 397 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | async fn get_mock_chainlink_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 432 | 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:445:9 [INFO] [stdout] | [INFO] [stdout] 444 | pub struct PythOracle { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 445 | pub solana_rpc_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 446 | 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:457:12 [INFO] [stdout] | [INFO] [stdout] 449 | impl PythOracle { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 457 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 466 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | async fn get_mock_pyth_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 499 | 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:512:9 [INFO] [stdout] | [INFO] [stdout] 511 | pub struct CoinGeckoOracle { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 512 | pub api_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 513 | 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:524:12 [INFO] [stdout] | [INFO] [stdout] 516 | impl CoinGeckoOracle { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 524 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 538 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 547 | pub async fn get_historical_prices(&self, asset: &Asset, timeframe: TimeFrame) -> Result, OracleError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 588 | async fn get_mock_coingecko_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | 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:628:9 [INFO] [stdout] | [INFO] [stdout] 627 | pub struct BinanceOracle { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 628 | pub api_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 629 | 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:640:12 [INFO] [stdout] | [INFO] [stdout] 632 | impl BinanceOracle { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 640 | pub fn initialize(&mut self) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 652 | pub async fn get_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 663 | async fn get_mock_binance_price(&self, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | 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:706:12 [INFO] [stdout] | [INFO] [stdout] 701 | impl PriceAggregator { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 706 | pub fn aggregate_prices(&self, prices: Vec, asset: &Asset) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 735 | 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:760:12 [INFO] [stdout] | [INFO] [stdout] 760 | 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:785:10 [INFO] [stdout] | [INFO] [stdout] 785 | 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:795:9 [INFO] [stdout] | [INFO] [stdout] 794 | pub struct CachedPrice { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 795 | pub price: Price, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 796 | pub cached_at: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 797 | 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:801:12 [INFO] [stdout] | [INFO] [stdout] 801 | 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:810:12 [INFO] [stdout] | [INFO] [stdout] 810 | 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:820:12 [INFO] [stdout] | [INFO] [stdout] 820 | 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:848:9 [INFO] [stdout] | [INFO] [stdout] 847 | pub struct ChainlinkFeed { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 848 | pub feed_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 849 | pub decimals: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 850 | 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:855:9 [INFO] [stdout] | [INFO] [stdout] 854 | pub struct PriceAlertSystem { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 855 | 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:865:12 [INFO] [stdout] | [INFO] [stdout] 858 | impl PriceAlertSystem { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 865 | pub fn add_alert(&mut self, alert: PriceAlert) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 871 | 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:922:9 [INFO] [stdout] | [INFO] [stdout] 921 | pub struct HistoricalPriceStorage { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 922 | 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:932:18 [INFO] [stdout] | [INFO] [stdout] 925 | impl HistoricalPriceStorage { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 932 | pub async fn store_price(&mut self, price: &Price) -> Result<(), OracleError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 953 | 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:980:10 [INFO] [stdout] | [INFO] [stdout] 980 | 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] 67 | pub async fn get_yield_farming_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn get_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub async fn update_all_integrations(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn get_integration_health(&self) -> IntegrationHealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | async fn scan_ethereum_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | async fn scan_cross_chain_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 398 | 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:448:9 [INFO] [stdout] | [INFO] [stdout] 447 | pub struct UniswapIntegration { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 448 | pub factory_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 449 | pub router_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 450 | pub supported_chains: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 451 | 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:464:18 [INFO] [stdout] | [INFO] [stdout] 454 | impl UniswapIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | pub async fn get_liquidity_mining_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | pub async fn get_pair_price(&self, token_a: &str, token_b: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 535 | 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:548:9 [INFO] [stdout] | [INFO] [stdout] 547 | pub struct AaveIntegration { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 548 | pub pool_address_provider: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 549 | pub supported_chains: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 550 | 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:562:18 [INFO] [stdout] | [INFO] [stdout] 553 | impl AaveIntegration { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 562 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 576 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 625 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 630 | 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:648:18 [INFO] [stdout] | [INFO] [stdout] 646 | impl CompoundIntegration { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 647 | pub fn new() -> Self { Self } [INFO] [stdout] 648 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 649 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { Ok(vec![]) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 650 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 651 | 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:666:18 [INFO] [stdout] | [INFO] [stdout] 664 | impl CurveIntegration { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 665 | pub fn new() -> Self { Self } [INFO] [stdout] 666 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 667 | pub async fn get_yield_opportunities(&self) -> Result, IntegrationError> { Ok(vec![]) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 668 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 669 | 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:685:18 [INFO] [stdout] | [INFO] [stdout] 683 | impl RaydiumIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 684 | pub fn new() -> Self { Self } [INFO] [stdout] 685 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 686 | pub async fn get_yield_opportunities(&self) -> Result, IntegrationError> { Ok(vec![]) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 687 | pub async fn get_pair_price(&self, _token_a: &str, _token_b: &str) -> Result { Ok(104.25) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 688 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 689 | 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:704:18 [INFO] [stdout] | [INFO] [stdout] 702 | impl JupiterIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 703 | pub fn new() -> Self { Self } [INFO] [stdout] 704 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 705 | pub async fn get_pair_price(&self, _token_a: &str, _token_b: &str) -> Result { Ok(104.75) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 706 | pub async fn update_data(&mut self) -> Result<(), IntegrationError> { Ok(()) } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 707 | 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:720:9 [INFO] [stdout] | [INFO] [stdout] 719 | pub struct GasPriceTracker { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 720 | pub gas_prices: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 721 | 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:732:18 [INFO] [stdout] | [INFO] [stdout] 724 | impl GasPriceTracker { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 732 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 761 | pub async fn estimate_transaction_cost(&self, chain: &ChainId, tx_type: TransactionType) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 783 | 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:797:12 [INFO] [stdout] | [INFO] [stdout] 797 | 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:815:10 [INFO] [stdout] | [INFO] [stdout] 815 | 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:823:12 [INFO] [stdout] | [INFO] [stdout] 823 | 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:843:9 [INFO] [stdout] | [INFO] [stdout] 842 | pub struct UniswapPoolInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 843 | pub pool_address: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 844 | pub token0: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 845 | pub token1: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 846 | pub fee: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 847 | pub tvl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 848 | pub volume_24h: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 849 | 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:853:12 [INFO] [stdout] | [INFO] [stdout] 853 | 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:871:9 [INFO] [stdout] | [INFO] [stdout] 870 | pub struct AaveMarketInfo { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 871 | pub asset_symbol: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 872 | pub supply_apy: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 873 | pub borrow_apy: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 874 | pub total_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 875 | pub utilization_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 876 | 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:880:12 [INFO] [stdout] | [INFO] [stdout] 880 | 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:896:12 [INFO] [stdout] | [INFO] [stdout] 896 | 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:906:12 [INFO] [stdout] | [INFO] [stdout] 906 | 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:919:12 [INFO] [stdout] | [INFO] [stdout] 919 | 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:940:9 [INFO] [stdout] | [INFO] [stdout] 939 | pub struct CachedIntegrationData { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 940 | pub data: String, // JSON or serialized data [INFO] [stdout] | ^^^^ [INFO] [stdout] 941 | pub cached_at: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 942 | 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:963:12 [INFO] [stdout] | [INFO] [stdout] 963 | 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:972:12 [INFO] [stdout] | [INFO] [stdout] 972 | 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:980:12 [INFO] [stdout] | [INFO] [stdout] 980 | 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:989:10 [INFO] [stdout] | [INFO] [stdout] 989 | pub enum IntegrationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `aave_integration`, `uniswap_integration`, `compound_integration`, `curve_integration`, `price_oracle`, and `rate_limiter` 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] | [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] 53 | pub async fn get_yield_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn get_arbitrage_opportunities(&mut self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub async fn execute_yield_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub async fn execute_arbitrage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn get_protocol_health(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | async fn estimate_arbitrage_gas_cost(&self, _token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | 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:240:9 [INFO] [stdout] | [INFO] [stdout] 239 | pub struct AaveIntegration { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 240 | pub api_key: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 241 | pub base_url: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 242 | 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:254:18 [INFO] [stdout] | [INFO] [stdout] 245 | impl AaveIntegration { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub async fn supply_tokens(&self, token: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub async fn get_total_value_locked(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | async fn make_http_request(&self, url: &str, method: &str, body: Option<&str>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | 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:390:9 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct UniswapIntegration { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 390 | pub subgraph_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 391 | 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:402:18 [INFO] [stdout] | [INFO] [stdout] 394 | impl UniswapIntegration { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 402 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 406 | pub async fn get_liquidity_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub async fn get_token_prices(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub async fn add_liquidity(&self, token_a: &str, token_b: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub async fn swap_tokens(&self, token_in: &str, token_out: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_daily_volume(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | async fn make_graphql_request(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | 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:582:9 [INFO] [stdout] | [INFO] [stdout] 581 | pub struct CompoundIntegration { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 582 | pub api_url: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 583 | 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:594:18 [INFO] [stdout] | [INFO] [stdout] 586 | impl CompoundIntegration { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 594 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub async fn get_lending_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 616 | pub async fn supply_tokens(&self, token: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | 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:636:9 [INFO] [stdout] | [INFO] [stdout] 635 | pub struct CurveIntegration { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 636 | pub api_url: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 637 | 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:648:18 [INFO] [stdout] | [INFO] [stdout] 640 | impl CurveIntegration { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 648 | pub async fn initialize(&mut self) -> Result<(), IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 652 | pub async fn get_yield_opportunities(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 670 | pub async fn get_token_prices(&self) -> Result, IntegrationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 681 | pub async fn add_liquidity(&self, pool_address: &str, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 692 | 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:735:12 [INFO] [stdout] | [INFO] [stdout] 735 | 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:745:12 [INFO] [stdout] | [INFO] [stdout] 745 | 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:754:12 [INFO] [stdout] | [INFO] [stdout] 754 | 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:767:12 [INFO] [stdout] | [INFO] [stdout] 766 | impl ProtocolHealthMetrics { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 767 | 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:785:8 [INFO] [stdout] | [INFO] [stdout] 785 | 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:797:8 [INFO] [stdout] | [INFO] [stdout] 797 | 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:802:8 [INFO] [stdout] | [INFO] [stdout] 802 | 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:807:8 [INFO] [stdout] | [INFO] [stdout] 807 | 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:812:8 [INFO] [stdout] | [INFO] [stdout] 812 | 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:823:8 [INFO] [stdout] | [INFO] [stdout] 823 | 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:828:8 [INFO] [stdout] | [INFO] [stdout] 828 | 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:833:8 [INFO] [stdout] | [INFO] [stdout] 833 | 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:838:8 [INFO] [stdout] | [INFO] [stdout] 838 | 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:844:8 [INFO] [stdout] | [INFO] [stdout] 844 | 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:849:8 [INFO] [stdout] | [INFO] [stdout] 849 | 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:854:8 [INFO] [stdout] | [INFO] [stdout] 854 | 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:862:5 [INFO] [stdout] | [INFO] [stdout] 861 | pub struct ApiRateLimiter { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 862 | requests: HashMap>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 863 | 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:879:12 [INFO] [stdout] | [INFO] [stdout] 866 | impl ApiRateLimiter { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 879 | pub fn can_make_request(&mut self, endpoint: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 894 | pub fn record_request(&mut self, endpoint: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cache_yield_opportunities` and `cache_arbitrage_opportunities` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/real_protocol_integrations.rs:926:12 [INFO] [stdout] | [INFO] [stdout] 913 | impl ProtocolDataCache { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 926 | pub fn cache_yield_opportunities(&mut self, opportunities: &[RealYieldOpportunity]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 937 | pub fn cache_arbitrage_opportunities(&mut self, opportunities: &[RealArbitrageOpportunity]) { [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:952:10 [INFO] [stdout] | [INFO] [stdout] 952 | pub enum IntegrationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_service.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 133 | impl PriceAlertManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | async fn trigger_alert(&mut self, alert: &PriceAlert, current_price: &TokenPrice) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | async fn execute_action(&self, alert: &PriceAlert, action: &AlertAction, current_price: &TokenPrice) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | async fn get_current_price(&mut self, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | async fn fetch_price_from_multiple_sources(&self, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | async fn fetch_from_coingecko(&self, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | fn parse_coingecko_response(&self, body: &str, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | async fn fetch_from_binance(&self, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | fn parse_binance_response(&self, body: &str, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | fn symbol_to_coingecko_id<'a>(&self, symbol: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 448 | fn get_fallback_price(&self, token_symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | async fn post_to_social_media( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | async fn post_to_platform( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | async fn post_to_twitter(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | async fn post_to_discord(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 540 | async fn post_to_telegram(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 545 | async fn post_to_reddit(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 551 | async fn send_webhook( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 583 | fn get_action_type_name(&self, action: &AlertAction) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 591 | fn format_social_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 110 | impl DeFiTriggerEngine { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn execute_triggered_defi_action( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | async fn execute_strategy_from_alert( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | async fn validate_execution_conditions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | async fn execute_market_buy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | async fn execute_market_sell( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | async fn execute_limit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | async fn execute_stop_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | async fn execute_take_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | async fn execute_yield_farming_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 431 | async fn execute_arbitrage_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 459 | async fn execute_portfolio_rebalancing( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 480 | async fn execute_dca_strategy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | async fn get_daily_capital_used(&self, user_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | async fn count_active_strategies(&self, user_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 520 | async fn validate_market_conditions(&self, current_price: &TokenPrice) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 533 | async fn validate_cooldown_period(&self, alert: &PriceAlert) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 550 | fn record_execution( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_defi_action_from_alert` is never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/price_alert_defi_integration.rs:662:14 [INFO] [stdout] | [INFO] [stdout] 662 | pub async fn execute_defi_action_from_alert( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_templates_for_platform` and `create_custom_template` are never used [INFO] [stdout] --> src/DeFlow_backend/src/defi/social_media_formatter.rs:428:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl SocialMediaFormatter { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 428 | pub fn get_templates_for_platform(&self, platform: &SocialPlatform) -> Vec<&SocialMediaTemplate> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub fn create_custom_template( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/DeFlow_backend/src/security/validation_service.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum ValidationError { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | InvalidPrecision, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | NegativeAmount, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | ExpiredTransaction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | DuplicateTransaction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | InsufficientFunds, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | BlockedPrincipal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | RateLimitExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 43 | TooManyRequests, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | InvalidInput(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 47 | ValidationFailed(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidationError` 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: associated function `validate_usd_amount` is never used [INFO] [stdout] --> src/DeFlow_backend/src/security/validation_service.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 307 | impl AmountValidator { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 349 | pub fn validate_usd_amount(amount_cents: u64, max_amount: u64) -> ValidationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `validate_arbitrage_operation` is never used [INFO] [stdout] --> src/DeFlow_backend/src/security/validation_service.rs:511:12 [INFO] [stdout] | [INFO] [stdout] 469 | impl ValidationService { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 511 | pub fn validate_arbitrage_operation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TooManyRequests` is never constructed [INFO] [stdout] --> src/DeFlow_backend/src/security/rate_limiter.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum RateLimitError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 17 | RateLimitExceeded, [INFO] [stdout] 18 | TooManyRequests, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RateLimitError` 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 `time_until_available` is never used [INFO] [stdout] --> src/DeFlow_backend/src/security/rate_limiter.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TokenBucket { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn time_until_available(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_premium_user` and `remove_premium_user` are never used [INFO] [stdout] --> src/DeFlow_backend/src/security/rate_limiter.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl RateLimiterService { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 335 | pub fn add_premium_user(&mut self, user: Principal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | pub fn remove_premium_user(&mut self, user: Principal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DeFlow_backend/src/cycles_monitor_service.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl CyclesMonitorService { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn update_monitor( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub async fn check_cycles(&mut self, monitor_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | async fn get_cycles_data(&self, config: &CyclesMonitorConfig) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | async fn send_alert_notifications( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | fn format_alert_message(&self, alert: &CyclesAlert) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | async fn send_email_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | async fn send_discord_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | async fn send_telegram_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | async fn send_slack_alert(&self, message: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | async fn request_topup(&self, canister_id: &str, amount: u128) -> Result<(), String> { [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: 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" "a9a09a7dd6281f97473d637daec51c592a0f873c19afdd3e097d50945cbbdcd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9a09a7dd6281f97473d637daec51c592a0f873c19afdd3e097d50945cbbdcd2", kill_on_drop: false }` [INFO] [stdout] a9a09a7dd6281f97473d637daec51c592a0f873c19afdd3e097d50945cbbdcd2