[INFO] cloning repository https://github.com/Sure-Protocol/sure-v1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sure-Protocol/sure-v1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSure-Protocol%2Fsure-v1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSure-Protocol%2Fsure-v1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 523703a0937c20510d44688c63f2f1b5ab5916b4 [INFO] building Sure-Protocol/sure-v1 against try#f41a2ab7b0d9462073425dd6c04abbeb4805cb77 for pr-97334-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSure-Protocol%2Fsure-v1" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 70% (2081/2966) Updating files: 71% (2106/2966) Updating files: 72% (2136/2966) Updating files: 73% (2166/2966) Updating files: 74% (2195/2966) Updating files: 75% (2225/2966) Updating files: 76% (2255/2966) Updating files: 77% (2284/2966) Updating files: 78% (2314/2966) Updating files: 79% (2344/2966) Updating files: 80% (2373/2966) Updating files: 81% (2403/2966) Updating files: 82% (2433/2966) Updating files: 83% (2462/2966) Updating files: 84% (2492/2966) Updating files: 85% (2522/2966) Updating files: 86% (2551/2966) Updating files: 87% (2581/2966) Updating files: 88% (2611/2966) Updating files: 89% (2640/2966) Updating files: 90% (2670/2966) Updating files: 91% (2700/2966) Updating files: 92% (2729/2966) Updating files: 93% (2759/2966) Updating files: 94% (2789/2966) Updating files: 95% (2818/2966) Updating files: 96% (2848/2966) Updating files: 97% (2878/2966) Updating files: 98% (2907/2966) Updating files: 99% (2937/2966) Updating files: 100% (2966/2966) Updating files: 100% (2966/2966), done. [INFO] validating manifest of git repo https://github.com/Sure-Protocol/sure-v1 on toolchain f41a2ab7b0d9462073425dd6c04abbeb4805cb77 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sure-Protocol/sure-v1 [INFO] finished tweaking git repo https://github.com/Sure-Protocol/sure-v1 [INFO] tweaked toml for git repo https://github.com/Sure-Protocol/sure-v1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Sure-Protocol/sure-v1 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" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 540bb3b5fb8dc6670f35731663aa70b06c05000e10038755ab7f8ad700745e56 [INFO] running `Command { std: "docker" "start" "-a" "540bb3b5fb8dc6670f35731663aa70b06c05000e10038755ab7f8ad700745e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "540bb3b5fb8dc6670f35731663aa70b06c05000e10038755ab7f8ad700745e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "540bb3b5fb8dc6670f35731663aa70b06c05000e10038755ab7f8ad700745e56", kill_on_drop: false }` [INFO] [stdout] 540bb3b5fb8dc6670f35731663aa70b06c05000e10038755ab7f8ad700745e56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cea587d89a8c822c903b54465d42f5bd3bfc75aed11daaa07e866c80eec0d6a [INFO] running `Command { std: "docker" "start" "-a" "6cea587d89a8c822c903b54465d42f5bd3bfc75aed11daaa07e866c80eec0d6a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling semver v1.0.7 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.9.29 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling blake3 v1.3.1 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling solana-frozen-abi v1.9.29 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling solana-logger v1.9.29 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling solana-program v1.9.29 [INFO] [stderr] Compiling memmap2 v0.5.3 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling schemars v0.8.11 [INFO] [stderr] Compiling dyn-clone v1.0.9 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling bytemuck_derive v1.1.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.9.29 [INFO] [stderr] Compiling schemars_derive v0.8.11 [INFO] [stderr] Compiling enumflags2_derive v0.7.4 [INFO] [stderr] Compiling bytemuck v1.9.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling enumflags2 v0.7.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling shank_macro_impl v0.0.5 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling anchor-syn v0.24.2 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling shank_macro v0.0.5 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling sha3 v0.10.2 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Compiling shank v0.0.5 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling num_enum v0.5.7 [INFO] [stderr] Compiling pyth-sdk v0.4.2 [INFO] [stderr] Compiling anchor-attribute-event v0.24.2 [INFO] [stderr] Compiling anchor-attribute-interface v0.24.2 [INFO] [stderr] Compiling anchor-derive-accounts v0.24.2 [INFO] [stderr] Compiling anchor-attribute-account v0.24.2 [INFO] [stderr] Compiling anchor-attribute-error v0.24.2 [INFO] [stderr] Compiling anchor-attribute-state v0.24.2 [INFO] [stderr] Compiling anchor-attribute-constant v0.24.2 [INFO] [stderr] Compiling anchor-attribute-access-control v0.24.2 [INFO] [stderr] Compiling anchor-attribute-program v0.24.2 [INFO] [stderr] Compiling spl-token v3.3.0 [INFO] [stderr] Compiling anchor-lang v0.24.2 [INFO] [stderr] Compiling spl-name-service v0.2.0 [INFO] [stderr] Compiling pyth-sdk-solana v0.4.2 [INFO] [stderr] Compiling bonfida-macros v0.2.6 [INFO] [stderr] Compiling spl-associated-token-account v1.0.3 [INFO] [stderr] Compiling mpl-token-vault v0.1.0 [INFO] [stderr] Compiling anchor-spl v0.24.2 [INFO] [stderr] Compiling vipers v2.0.6 [INFO] [stderr] Compiling smart-wallet v0.11.1 [INFO] [stderr] Compiling mpl-token-metadata v1.3.4 [INFO] [stderr] Compiling bonfida-utils v0.3.1 [INFO] [stderr] Compiling agnostic-orderbook v1.0.0 (https://github.com/Bonfida/agnostic-orderbook.git?branch=main#a4531bc6) [INFO] [stderr] Compiling govern v0.5.8 [INFO] [stderr] Compiling sure-common v1.0.0 (/opt/rustwide/workdir/sure-common) [INFO] [stderr] Compiling sure-pool v0.0.1 (/opt/rustwide/workdir/programs/pool) [INFO] [stdout] warning: unused import: `anchor_spl::token` [INFO] [stdout] --> sure-common/src/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TickArrayPool` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:5:44 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::states::tick_array::{TickArray, TickArrayPool}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::states::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mint`, `TokenAccount`, `Token` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use anchor_spl::token::{Mint, Token, TokenAccount}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_is_ata`, `prelude::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::states::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mint`, `TokenAccount`, `Token`, `associated_token::AssociatedToken` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | associated_token::AssociatedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | token::{Mint, Token, TokenAccount}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_is_ata`, `prelude::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pool::*` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::pool::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::product::ProductType` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::product::ProductType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::pool::*` [INFO] [stdout] --> programs/pool/src/utils/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::states::pool::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::errors::*` [INFO] [stdout] --> programs/pool/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::errors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program` [INFO] [stdout] --> programs/pool/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use anchor_lang::solana_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::*` [INFO] [stdout] --> programs/pool/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use anchor_spl::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_metadata_accounts_v2`, `update_metadata_accounts_v2` [INFO] [stdout] --> programs/pool/src/lib.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use mpl_token_metadata::instruction::{create_metadata_accounts_v2, update_metadata_accounts_v2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpl_token_metadata::state::Creator` [INFO] [stdout] --> programs/pool/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use mpl_token_metadata::state::Creator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vipers::prelude::*` [INFO] [stdout] --> programs/pool/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use vipers::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling shield v0.1.0 (/opt/rustwide/workdir/programs/shield) [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let pool = ctx.accounts.pool.as_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let coverage_buyer = &ctx.accounts.owner; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `premium_vault` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let premium_vault = &ctx.accounts.token_vault_1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_premium_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer_account` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let coverage_buyer_account = &ctx.accounts.token_account_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_position` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let coverage_position = ctx.accounts.coverage_position.load_mut()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_amount` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | coverage_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_target_amount` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | is_target_amount: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_target_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/decrease_liquidity_position.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn handler(ctx: Context) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let pool = ctx.accounts.pool.as_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let coverage_buyer = &ctx.accounts.owner; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `premium_vault` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let premium_vault = &ctx.accounts.token_vault_1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_premium_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer_account` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let coverage_buyer_account = &ctx.accounts.token_account_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_position` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let coverage_position = ctx.accounts.coverage_position.load_mut()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | coverage_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_target_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | is_target_amount: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_target_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/increase_liquidity_position.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn handler(ctx: Context, liquidity_amount: u128) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_liquidity_position.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn handler(ctx: Context, liquidity_amount: u128) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | ctx: Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_lower` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tick_lower: i32, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_lower` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_upper` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | tick_upper: i32, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_amount` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | liquidity_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_position` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | liquidity_position: LiquidityPosition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_array_pool` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | tick_array_pool: TickArrayPool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_array_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_pos` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_change` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | let amount_change = new_insured_amount - self.insured_amount; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_package` [INFO] [stdout] --> programs/pool/src/states/pool.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | fee_package: &Account, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_liquidity` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let available_liquidity = self.get_available_liquidity(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_liquidity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let sqrt_price_x64 = get_sqrt_ratio_at_tick(tick_index); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_target` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let sqrt_price_target = get_sqrt_ratio_at_tick(target_tick_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remaining_premium` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let remaining_premium = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remaining_premium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_covered_amount` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | current_covered_amount: u128, // Current covered amount [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_covered_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_start_ts` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | current_start_ts: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_start_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `increase` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | increase: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_increase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_growth_global_0_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | fee_growth_global_0_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_growth_global_0_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_growth_global_1_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | fee_growth_global_1_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_growth_global_1_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_spacing` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:295:38 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn get_min_tick_index(&self, tick_spacing: u16) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_spacing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:400:82 [INFO] [stdout] | [INFO] [stdout] 400 | self.find_next_conditional_tick_index(tick_index, tick_spacing, a_to_b, |tick: &Tick| true) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_target` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:646:29 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn update_liquidity(liquidity_target: u128, current_tick: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_tick` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:646:53 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn update_liquidity(liquidity_target: u128, current_tick: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_price_ratio_at_tick(tick: i32) -> u128 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_target` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | sqrt_price_target: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_current` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | sqrt_price_current: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | amount: u128, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | r >>= f; // Divide r by 2 if MSB of f is non-zero [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: `pool` [INFO] [stdout] --> programs/pool/src/utils/token.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | pool: &Account<'info, Pool>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_program` [INFO] [stdout] --> programs/pool/src/utils/token.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | token_program: &Program<'info, Token>, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> programs/shield/src/instructions/initialize_pool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | *, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agnostic_orderbook::instruction::cancel_order::Params` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use agnostic_orderbook::instruction::cancel_order::Params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instructions::provide_coverage::OrderParams` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{instructions::provide_coverage::OrderParams, utils::SURE_SHIELD}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURE_TIME_LOCK_IN_SECONDS` is never used [INFO] [stdout] --> programs/pool/src/states/coverage.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const SURE_TIME_LOCK_IN_SECONDS: u64 = solana_program::clock::SECONDS_PER_DAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_ratio_at_negative_tick` is never used [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_price_ratio_at_negative_tick() -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/pool/src/instructions/initialize_pool.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pool.initialize( [INFO] [stdout] 91 | | *ctx.bumps.get("pool").unwrap(), [INFO] [stdout] 92 | | name.clone(), [INFO] [stdout] 93 | | ctx.accounts.creator.key(), [INFO] [stdout] ... | [INFO] [stdout] 99 | | ctx.accounts.vault_1.key(), [INFO] [stdout] 100 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_100th_BP` should have an upper case name [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX_100th_BP: usize = 1_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MAX_100TH_BP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_smart_AMM` should have a snake case name [INFO] [stdout] --> programs/pool/src/utils/product.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn is_smart_AMM(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_smart_amm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/buy_protection.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let order_summary = ctx.accounts.orderbook.push_order( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let order_summary = ob.cancel_order(coverage_position.order_id)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let order_summary = ob.push_order( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending_coverage` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:39:59 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn initialize(&mut self, bump: u8, mint: &Pubkey, pending_coverage: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_coverage` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling locked-voter v0.5.8 [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling oracle v0.1.0 (/opt/rustwide/workdir/programs/oracle) [INFO] [stdout] warning: unused import: `VOTE_STAKE_RATE` [INFO] [stdout] --> programs/oracle/src/factory/vote.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{convert_x32_to_u64, VOTE_STAKE_RATE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vote` [INFO] [stdout] --> programs/oracle/src/instructions/cancel_vote.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | solana_program::{clock, vote}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::ready` [INFO] [stdout] --> programs/oracle/src/instructions/collect_vote_reward.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::reveal_vote` [INFO] [stdout] --> programs/oracle/src/instructions/finalize_vote_results.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::reveal_vote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> programs/oracle/src/instructions/propose_vote.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{io::Read, mem::size_of}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> programs/oracle/src/instructions/reveal_vote.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::states::{Config, Proposal, RevealedVoteArray, VoteAccount}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div`, `Mul` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::clock` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::solana_program::clock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | use anchor_spl::token::{TokenAccount, Mint, self, Token}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SURE`, `SureError` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::utils::{SURE, SureError, deposit_into_vault,SURE_ORACLE_VOTE_SEED}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProposalStatus` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::states::{Proposal,VoteAccount, ProposalStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> programs/oracle/src/instructions/update_vote.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::{self, SureError, SURE_ORACLE_VOTE_SEED}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `BitAnd`, `BitOr`, `Deref`, `Shl`, `Shr`, `Sub` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | ops::{Add, BitAnd, BitOr, Deref, Div, Mul, Shl, Shr, Sub}, [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^ ^^^^^ ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `calculate_stake`, `uint::U256` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | factory::{calculate_stake, calculate_stake_x32}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | instructions::validate_stake, [INFO] [stdout] 9 | utils::{uint::U256, *}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::clock` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use anchor_lang::{prelude::*, solana_program::clock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:282:22 [INFO] [stdout] | [INFO] [stdout] 282 | let rw_x64 = (running_weight as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let rw_x64 = (running_weight as u128); [INFO] [stdout] 282 + let rw_x64 = running_weight as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:493:29 [INFO] [stdout] | [INFO] [stdout] 493 | let protocol_fees = (self.protocol_fees >> 64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 493 - let protocol_fees = (self.protocol_fees >> 64); [INFO] [stdout] 493 + let protocol_fees = self.protocol_fees >> 64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VOTE_STAKE_RATE` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | utils::{convert_x32_to_u64, SureError, SURE_ORACLE_VOTE_SEED, VOTE_STAKE_RATE}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{Config, Proposal, ProposalStatus}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::pubkey` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use anchor_lang::{prelude::*, solana_program::pubkey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `BitAnd`, `BitOr`, `Shl`, `Shr`, `Sub` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ops::{Add, BitAnd, BitOr, Div, Mul, Shl, Shr, Sub}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^ ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keccak256FullCore`, `Sha3_256Core` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use sha3::{Digest, Keccak256FullCore, Sha3_256, Sha3_256Core}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::clock::SECONDS_PER_DAY` [INFO] [stdout] --> programs/oracle/src/utils/constants.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::solana_program::clock::SECONDS_PER_DAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_lang::solana_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::instruction::Instruction` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token::spl_token::instruction::AuthorityType` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anchor_spl::token::spl_token::instruction::AuthorityType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Burn`, `CloseAccount`, `MintTo`, `Mint`, `SetAuthority`, `burn`, `close_account`, `mint_to`, `set_authority` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | burn, close_account, mint_to, set_authority, transfer, Burn, CloseAccount, Mint, MintTo, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] 8 | SetAuthority, Token, TokenAccount, Transfer, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `locked_voter::Locker` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use locked_voter::Locker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_metadata_accounts_v2`, `state::DataV2`, `update_metadata_accounts_v2` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | instruction::{create_metadata_accounts_v2, update_metadata_accounts_v2}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | state::DataV2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `arrays` is never read [INFO] [stdout] --> programs/oracle/src/states/vote_array.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct VoteArrayList<'info> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 203 | arrays: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `running_weight_Q64` should have a snake case name [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let running_weight_Q64 = (self.running_weight as u128) << 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `running_weight_q64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tokenTx` should have a snake case name [INFO] [stdout] --> programs/oracle/src/utils/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod tokenTx; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `token_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "6cea587d89a8c822c903b54465d42f5bd3bfc75aed11daaa07e866c80eec0d6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cea587d89a8c822c903b54465d42f5bd3bfc75aed11daaa07e866c80eec0d6a", kill_on_drop: false }` [INFO] [stdout] 6cea587d89a8c822c903b54465d42f5bd3bfc75aed11daaa07e866c80eec0d6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f41a2ab7b0d9462073425dd6c04abbeb4805cb77" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5285b613470120a9d109c1fdf653e3a9e8453ba51255a8c3d768c55f1072a7e9 [INFO] running `Command { std: "docker" "start" "-a" "5285b613470120a9d109c1fdf653e3a9e8453ba51255a8c3d768c55f1072a7e9", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `anchor_spl::token` [INFO] [stdout] --> sure-common/src/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sure-common v1.0.0 (/opt/rustwide/workdir/sure-common) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TickArrayPool` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:5:44 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::states::tick_array::{TickArray, TickArrayPool}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::states::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mint`, `TokenAccount`, `Token` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use anchor_spl::token::{Mint, Token, TokenAccount}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_is_ata`, `prelude::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::states::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mint`, `TokenAccount`, `Token`, `associated_token::AssociatedToken` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | associated_token::AssociatedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | token::{Mint, Token, TokenAccount}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_is_ata`, `prelude::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pool::*` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::pool::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::product::ProductType` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::utils::product::ProductType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::pool::*` [INFO] [stdout] --> programs/pool/src/utils/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::states::pool::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::errors::*` [INFO] [stdout] --> programs/pool/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::errors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program` [INFO] [stdout] --> programs/pool/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use anchor_lang::solana_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::*` [INFO] [stdout] --> programs/pool/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use anchor_spl::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_metadata_accounts_v2`, `update_metadata_accounts_v2` [INFO] [stdout] --> programs/pool/src/lib.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use mpl_token_metadata::instruction::{create_metadata_accounts_v2, update_metadata_accounts_v2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpl_token_metadata::state::Creator` [INFO] [stdout] --> programs/pool/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use mpl_token_metadata::state::Creator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vipers::prelude::*` [INFO] [stdout] --> programs/pool/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use vipers::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let pool = ctx.accounts.pool.as_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let coverage_buyer = &ctx.accounts.owner; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `premium_vault` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let premium_vault = &ctx.accounts.token_vault_1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_premium_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer_account` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let coverage_buyer_account = &ctx.accounts.token_account_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_position` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let coverage_position = ctx.accounts.coverage_position.load_mut()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_amount` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | coverage_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_target_amount` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | is_target_amount: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_target_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/decrease_liquidity_position.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn handler(ctx: Context) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let pool = ctx.accounts.pool.as_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let coverage_buyer = &ctx.accounts.owner; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `premium_vault` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let premium_vault = &ctx.accounts.token_vault_1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_premium_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer_account` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let coverage_buyer_account = &ctx.accounts.token_account_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_position` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let coverage_position = ctx.accounts.coverage_position.load_mut()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | coverage_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_target_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | is_target_amount: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_target_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/increase_liquidity_position.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn handler(ctx: Context, liquidity_amount: u128) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_liquidity_position.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn handler(ctx: Context, liquidity_amount: u128) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | ctx: Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_lower` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tick_lower: i32, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_lower` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_upper` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | tick_upper: i32, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_amount` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | liquidity_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_position` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | liquidity_position: LiquidityPosition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_array_pool` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | tick_array_pool: TickArrayPool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_array_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_pos` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_change` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | let amount_change = new_insured_amount - self.insured_amount; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_package` [INFO] [stdout] --> programs/pool/src/states/pool.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | fee_package: &Account, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_liquidity` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let available_liquidity = self.get_available_liquidity(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_liquidity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let sqrt_price_x64 = get_sqrt_ratio_at_tick(tick_index); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_target` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let sqrt_price_target = get_sqrt_ratio_at_tick(target_tick_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remaining_premium` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let remaining_premium = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remaining_premium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_covered_amount` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | current_covered_amount: u128, // Current covered amount [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_covered_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_start_ts` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | current_start_ts: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_start_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `increase` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | increase: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_increase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_growth_global_0_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | fee_growth_global_0_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_growth_global_0_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_growth_global_1_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | fee_growth_global_1_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_growth_global_1_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_spacing` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:295:38 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn get_min_tick_index(&self, tick_spacing: u16) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_spacing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:400:82 [INFO] [stdout] | [INFO] [stdout] 400 | self.find_next_conditional_tick_index(tick_index, tick_spacing, a_to_b, |tick: &Tick| true) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_target` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:646:29 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn update_liquidity(liquidity_target: u128, current_tick: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_tick` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:646:53 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn update_liquidity(liquidity_target: u128, current_tick: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_price_ratio_at_tick(tick: i32) -> u128 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_target` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | sqrt_price_target: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_current` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | sqrt_price_current: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | amount: u128, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | r >>= f; // Divide r by 2 if MSB of f is non-zero [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: `pool` [INFO] [stdout] --> programs/pool/src/utils/token.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | pool: &Account<'info, Pool>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_program` [INFO] [stdout] --> programs/pool/src/utils/token.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | token_program: &Program<'info, Token>, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURE_TIME_LOCK_IN_SECONDS` is never used [INFO] [stdout] --> programs/pool/src/states/coverage.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const SURE_TIME_LOCK_IN_SECONDS: u64 = solana_program::clock::SECONDS_PER_DAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_ratio_at_negative_tick` is never used [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_price_ratio_at_negative_tick() -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/pool/src/instructions/initialize_pool.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pool.initialize( [INFO] [stdout] 91 | | *ctx.bumps.get("pool").unwrap(), [INFO] [stdout] 92 | | name.clone(), [INFO] [stdout] 93 | | ctx.accounts.creator.key(), [INFO] [stdout] ... | [INFO] [stdout] 99 | | ctx.accounts.vault_1.key(), [INFO] [stdout] 100 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_100th_BP` should have an upper case name [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX_100th_BP: usize = 1_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MAX_100TH_BP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_smart_AMM` should have a snake case name [INFO] [stdout] --> programs/pool/src/utils/product.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn is_smart_AMM(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_smart_amm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sure-pool v0.0.1 (/opt/rustwide/workdir/programs/pool) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> programs/shield/src/instructions/initialize_pool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | *, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agnostic_orderbook::instruction::cancel_order::Params` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use agnostic_orderbook::instruction::cancel_order::Params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instructions::provide_coverage::OrderParams` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{instructions::provide_coverage::OrderParams, utils::SURE_SHIELD}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/buy_protection.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let order_summary = ctx.accounts.orderbook.push_order( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let order_summary = ob.cancel_order(coverage_position.order_id)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let order_summary = ob.push_order( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending_coverage` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:39:59 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn initialize(&mut self, bump: u8, mint: &Pubkey, pending_coverage: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_coverage` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling shield v0.1.0 (/opt/rustwide/workdir/programs/shield) [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VOTE_STAKE_RATE` [INFO] [stdout] --> programs/oracle/src/factory/vote.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{convert_x32_to_u64, VOTE_STAKE_RATE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vote` [INFO] [stdout] --> programs/oracle/src/instructions/cancel_vote.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | solana_program::{clock, vote}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::ready` [INFO] [stdout] --> programs/oracle/src/instructions/collect_vote_reward.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::reveal_vote` [INFO] [stdout] --> programs/oracle/src/instructions/finalize_vote_results.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::reveal_vote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> programs/oracle/src/instructions/propose_vote.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{io::Read, mem::size_of}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> programs/oracle/src/instructions/reveal_vote.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::states::{Config, Proposal, RevealedVoteArray, VoteAccount}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div`, `Mul` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::clock` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::solana_program::clock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | use anchor_spl::token::{TokenAccount, Mint, self, Token}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SURE`, `SureError` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::utils::{SURE, SureError, deposit_into_vault,SURE_ORACLE_VOTE_SEED}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling oracle v0.1.0 (/opt/rustwide/workdir/programs/oracle) [INFO] [stdout] warning: unused import: `ProposalStatus` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::states::{Proposal,VoteAccount, ProposalStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> programs/oracle/src/instructions/update_vote.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::{self, SureError, SURE_ORACLE_VOTE_SEED}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `BitAnd`, `BitOr`, `Deref`, `Shl`, `Shr`, `Sub` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | ops::{Add, BitAnd, BitOr, Deref, Div, Mul, Shl, Shr, Sub}, [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^ ^^^^^ ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `calculate_stake`, `uint::U256` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | factory::{calculate_stake, calculate_stake_x32}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | instructions::validate_stake, [INFO] [stdout] 9 | utils::{uint::U256, *}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::clock` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use anchor_lang::{prelude::*, solana_program::clock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:282:22 [INFO] [stdout] | [INFO] [stdout] 282 | let rw_x64 = (running_weight as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let rw_x64 = (running_weight as u128); [INFO] [stdout] 282 + let rw_x64 = running_weight as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:493:29 [INFO] [stdout] | [INFO] [stdout] 493 | let protocol_fees = (self.protocol_fees >> 64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 493 - let protocol_fees = (self.protocol_fees >> 64); [INFO] [stdout] 493 + let protocol_fees = self.protocol_fees >> 64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VOTE_STAKE_RATE` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | utils::{convert_x32_to_u64, SureError, SURE_ORACLE_VOTE_SEED, VOTE_STAKE_RATE}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{Config, Proposal, ProposalStatus}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::pubkey` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use anchor_lang::{prelude::*, solana_program::pubkey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `BitAnd`, `BitOr`, `Shl`, `Shr`, `Sub` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ops::{Add, BitAnd, BitOr, Div, Mul, Shl, Shr, Sub}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^ ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keccak256FullCore`, `Sha3_256Core` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use sha3::{Digest, Keccak256FullCore, Sha3_256, Sha3_256Core}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::clock::SECONDS_PER_DAY` [INFO] [stdout] --> programs/oracle/src/utils/constants.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::solana_program::clock::SECONDS_PER_DAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_lang::solana_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::instruction::Instruction` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token::spl_token::instruction::AuthorityType` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anchor_spl::token::spl_token::instruction::AuthorityType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Burn`, `CloseAccount`, `MintTo`, `Mint`, `SetAuthority`, `burn`, `close_account`, `mint_to`, `set_authority` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | burn, close_account, mint_to, set_authority, transfer, Burn, CloseAccount, Mint, MintTo, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] 8 | SetAuthority, Token, TokenAccount, Transfer, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `locked_voter::Locker` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use locked_voter::Locker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_metadata_accounts_v2`, `state::DataV2`, `update_metadata_accounts_v2` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | instruction::{create_metadata_accounts_v2, update_metadata_accounts_v2}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | state::DataV2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `arrays` is never read [INFO] [stdout] --> programs/oracle/src/states/vote_array.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct VoteArrayList<'info> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 203 | arrays: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `running_weight_Q64` should have a snake case name [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let running_weight_Q64 = (self.running_weight as u128) << 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `running_weight_q64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tokenTx` should have a snake case name [INFO] [stdout] --> programs/oracle/src/utils/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod tokenTx; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `token_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token` [INFO] [stdout] --> sure-common/src/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `*` [INFO] [stdout] --> programs/shield/src/instructions/initialize_pool.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | *, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `agnostic_orderbook::instruction::cancel_order::Params` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use agnostic_orderbook::instruction::cancel_order::Params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instructions::provide_coverage::OrderParams` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{instructions::provide_coverage::OrderParams, utils::SURE_SHIELD}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TickArrayPool` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:5:44 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::states::tick_array::{TickArray, TickArrayPool}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::states::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mint`, `TokenAccount`, `Token` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use anchor_spl::token::{Mint, Token, TokenAccount}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_is_ata`, `prelude::*` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::states::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mint`, `TokenAccount`, `Token`, `associated_token::AssociatedToken` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | associated_token::AssociatedToken, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | token::{Mint, Token, TokenAccount}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_is_ata`, `prelude::*` [INFO] [stdout] --> programs/pool/src/states/liquidity.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use vipers::{assert_is_ata, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pool::*` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::pool::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:848:9 [INFO] [stdout] | [INFO] [stdout] 848 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:849:9 [INFO] [stdout] | [INFO] [stdout] 849 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitXor`, `default` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:507:9 [INFO] [stdout] | [INFO] [stdout] 507 | default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 508 | ops::{BitAnd, BitXor}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:704:10 [INFO] [stdout] | [INFO] [stdout] 704 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::states::pool::*` [INFO] [stdout] --> programs/pool/src/utils/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::states::pool::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::errors::*` [INFO] [stdout] --> programs/pool/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::errors::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program` [INFO] [stdout] --> programs/pool/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use anchor_lang::solana_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::*` [INFO] [stdout] --> programs/pool/src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use anchor_spl::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_metadata_accounts_v2`, `update_metadata_accounts_v2` [INFO] [stdout] --> programs/pool/src/lib.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use mpl_token_metadata::instruction::{create_metadata_accounts_v2, update_metadata_accounts_v2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpl_token_metadata::state::Creator` [INFO] [stdout] --> programs/pool/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use mpl_token_metadata::state::Creator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vipers::prelude::*` [INFO] [stdout] --> programs/pool/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use vipers::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/buy_protection.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let order_summary = ctx.accounts.orderbook.push_order( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let order_summary = ob.cancel_order(coverage_position.order_id)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_summary` [INFO] [stdout] --> programs/shield/src/instructions/decrease_coverage.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let order_summary = ob.push_order( [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending_coverage` [INFO] [stdout] --> programs/shield/src/state/coverage.rs:39:59 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn initialize(&mut self, bump: u8, mint: &Pubkey, pending_coverage: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_coverage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VOTE_STAKE_RATE` [INFO] [stdout] --> programs/oracle/src/factory/vote.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::utils::{convert_x32_to_u64, VOTE_STAKE_RATE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vote` [INFO] [stdout] --> programs/oracle/src/instructions/cancel_vote.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | solana_program::{clock, vote}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::ready` [INFO] [stdout] --> programs/oracle/src/instructions/collect_vote_reward.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::reveal_vote` [INFO] [stdout] --> programs/oracle/src/instructions/finalize_vote_results.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::reveal_vote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::Read` [INFO] [stdout] --> programs/oracle/src/instructions/propose_vote.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{io::Read, mem::size_of}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> programs/oracle/src/instructions/reveal_vote.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::states::{Config, Proposal, RevealedVoteArray, VoteAccount}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div`, `Mul` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::clock` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anchor_lang::solana_program::clock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | use anchor_spl::token::{TokenAccount, Mint, self, Token}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SURE`, `SureError` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::utils::{SURE, SureError, deposit_into_vault,SURE_ORACLE_VOTE_SEED}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProposalStatus` [INFO] [stdout] --> programs/oracle/src/instructions/submit_vote.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::states::{Proposal,VoteAccount, ProposalStatus}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> programs/oracle/src/instructions/update_vote.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::{self, SureError, SURE_ORACLE_VOTE_SEED}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `BitAnd`, `BitOr`, `Deref`, `Shl`, `Shr`, `Sub` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | ops::{Add, BitAnd, BitOr, Deref, Div, Mul, Shl, Shr, Sub}, [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^ ^^^^^ ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `calculate_stake`, `uint::U256` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | factory::{calculate_stake, calculate_stake_x32}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | instructions::validate_stake, [INFO] [stdout] 9 | utils::{uint::U256, *}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::clock` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use anchor_lang::{prelude::*, solana_program::clock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:282:22 [INFO] [stdout] | [INFO] [stdout] 282 | let rw_x64 = (running_weight as u128); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - let rw_x64 = (running_weight as u128); [INFO] [stdout] 282 + let rw_x64 = running_weight as u128; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:493:29 [INFO] [stdout] | [INFO] [stdout] 493 | let protocol_fees = (self.protocol_fees >> 64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 493 - let protocol_fees = (self.protocol_fees >> 64); [INFO] [stdout] 493 + let protocol_fees = self.protocol_fees >> 64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::vote` [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:635:9 [INFO] [stdout] | [INFO] [stdout] 635 | use anchor_lang::solana_program::vote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VOTE_STAKE_RATE` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | utils::{convert_x32_to_u64, SureError, SURE_ORACLE_VOTE_SEED, VOTE_STAKE_RATE}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Config` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{Config, Proposal, ProposalStatus}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_program::pubkey` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | use anchor_lang::{prelude::*, solana_program::pubkey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Add`, `BitAnd`, `BitOr`, `Shl`, `Shr`, `Sub` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ops::{Add, BitAnd, BitOr, Div, Mul, Shl, Shr, Sub}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^ ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal::hex` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use hex_literal::hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keccak256FullCore`, `Sha3_256Core` [INFO] [stdout] --> programs/oracle/src/states/vote.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use sha3::{Digest, Keccak256FullCore, Sha3_256, Sha3_256Core}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::Pubkey` [INFO] [stdout] --> programs/oracle/src/states/vote_array.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | use anchor_lang::prelude::Pubkey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::clock::SECONDS_PER_DAY` [INFO] [stdout] --> programs/oracle/src/utils/constants.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::solana_program::clock::SECONDS_PER_DAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_lang::solana_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::solana_program::instruction::Instruction` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_spl::token::spl_token::instruction::AuthorityType` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anchor_spl::token::spl_token::instruction::AuthorityType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Burn`, `CloseAccount`, `MintTo`, `Mint`, `SetAuthority`, `burn`, `close_account`, `mint_to`, `set_authority` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | burn, close_account, mint_to, set_authority, transfer, Burn, CloseAccount, Mint, MintTo, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] 8 | SetAuthority, Token, TokenAccount, Transfer, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `locked_voter::Locker` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use locked_voter::Locker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_metadata_accounts_v2`, `state::DataV2`, `update_metadata_accounts_v2` [INFO] [stdout] --> programs/oracle/src/utils/tokenTx.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | instruction::{create_metadata_accounts_v2, update_metadata_accounts_v2}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | state::DataV2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let pool = ctx.accounts.pool.as_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let coverage_buyer = &ctx.accounts.owner; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `premium_vault` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let premium_vault = &ctx.accounts.token_vault_1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_premium_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer_account` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let coverage_buyer_account = &ctx.accounts.token_account_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_position` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let coverage_position = ctx.accounts.coverage_position.load_mut()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_amount` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | coverage_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_target_amount` [INFO] [stdout] --> programs/pool/src/instructions/decrease_coverage_position.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | is_target_amount: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_target_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/decrease_liquidity_position.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn handler(ctx: Context) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let pool = ctx.accounts.pool.as_mut(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let coverage_buyer = &ctx.accounts.owner; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `premium_vault` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let premium_vault = &ctx.accounts.token_vault_1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_premium_vault` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_buyer_account` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let coverage_buyer_account = &ctx.accounts.token_account_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_buyer_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_position` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let coverage_position = ctx.accounts.coverage_position.load_mut()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coverage_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | coverage_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_coverage_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_target_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_coverage_position.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | is_target_amount: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_target_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/increase_liquidity_position.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn handler(ctx: Context, liquidity_amount: u128) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_amount` [INFO] [stdout] --> programs/pool/src/instructions/increase_liquidity_position.rs:80:47 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn handler(ctx: Context, liquidity_amount: u128) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | ctx: Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_lower` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | tick_lower: i32, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_lower` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_upper` [INFO] [stdout] --> programs/pool/src/instructions/initialize_liquidity_position.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | tick_upper: i32, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_amount` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | liquidity_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_position` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | liquidity_position: LiquidityPosition, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_array_pool` [INFO] [stdout] --> programs/pool/src/managers/liquidity.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | tick_array_pool: TickArrayPool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_array_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_pos` [INFO] [stdout] --> programs/pool/src/states/bitmap.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | let Position { word_pos, bit_pos } = position(tick_ratio); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `word_pos: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_change` [INFO] [stdout] --> programs/pool/src/states/coverage.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | let amount_change = new_insured_amount - self.insured_amount; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_package` [INFO] [stdout] --> programs/pool/src/states/pool.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | fee_package: &Account, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_liquidity` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let available_liquidity = self.get_available_liquidity(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_liquidity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let sqrt_price_x64 = get_sqrt_ratio_at_tick(tick_index); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_target` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let sqrt_price_target = get_sqrt_ratio_at_tick(target_tick_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remaining_premium` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let remaining_premium = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remaining_premium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_covered_amount` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | current_covered_amount: u128, // Current covered amount [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_covered_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_start_ts` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | current_start_ts: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_start_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_ts` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_ts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `increase` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | increase: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_increase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_growth_global_0_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | fee_growth_global_0_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_growth_global_0_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_growth_global_1_x64` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | fee_growth_global_1_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_growth_global_1_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick_spacing` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:295:38 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn get_min_tick_index(&self, tick_spacing: u16) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tick_spacing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:400:82 [INFO] [stdout] | [INFO] [stdout] 400 | self.find_next_conditional_tick_index(tick_index, tick_spacing, a_to_b, |tick: &Tick| true) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity_target` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:646:29 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn update_liquidity(liquidity_target: u128, current_tick: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_tick` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:646:53 [INFO] [stdout] | [INFO] [stdout] 646 | pub fn update_liquidity(liquidity_target: u128, current_tick: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:818:13 [INFO] [stdout] | [INFO] [stdout] 818 | for test in test_data {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_price_ratio_at_tick(tick: i32) -> u128 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_target` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | sqrt_price_target: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sqrt_price_current` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | sqrt_price_current: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_price_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | amount: u128, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | r >>= f; // Divide r by 2 if MSB of f is non-zero [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: `pool` [INFO] [stdout] --> programs/pool/src/utils/token.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | pool: &Account<'info, Pool>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_program` [INFO] [stdout] --> programs/pool/src/utils/token.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | token_program: &Program<'info, Token>, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURE_TIME_LOCK_IN_SECONDS` is never used [INFO] [stdout] --> programs/pool/src/states/coverage.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const SURE_TIME_LOCK_IN_SECONDS: u64 = solana_program::clock::SECONDS_PER_DAY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:707:13 [INFO] [stdout] | [INFO] [stdout] 706 | pub struct Test<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 707 | test_name: &'a str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 708 | tick: Tick, [INFO] [stdout] | ^^^^ [INFO] [stdout] 709 | tick_index: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 710 | current_tick: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 711 | fee_growth_global_0_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 712 | fee_growth_global_1_x64: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 713 | liquidity_delta: i128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 714 | product_type: ProductType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 715 | is_upper_tick: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 716 | expected_tick_update: TickUpdate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fee_amount`, `amount_in`, and `amount_out` are never read [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:825:13 [INFO] [stdout] | [INFO] [stdout] 824 | pub struct ExpectedOutput { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 825 | fee_amount: u128, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 826 | amount_in: u128, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 827 | amount_out: u128, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:831:13 [INFO] [stdout] | [INFO] [stdout] 830 | pub struct Test<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 831 | test_name: &'a str, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 832 | tick: Tick, [INFO] [stdout] | ^^^^ [INFO] [stdout] 833 | tick_index: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 834 | coverage_delta: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 835 | current_covered_amount: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 836 | fee_rate: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 837 | current_start_ts: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 838 | expiry_ts: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 839 | increase: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 840 | expected_output: ExpectedOutput, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_ratio_at_negative_tick` is never used [INFO] [stdout] --> programs/pool/src/utils/tick_math.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_price_ratio_at_negative_tick() -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> programs/pool/src/instructions/initialize_pool.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pool.initialize( [INFO] [stdout] 91 | | *ctx.bumps.get("pool").unwrap(), [INFO] [stdout] 92 | | name.clone(), [INFO] [stdout] 93 | | ctx.accounts.creator.key(), [INFO] [stdout] ... | [INFO] [stdout] 99 | | ctx.accounts.vault_1.key(), [INFO] [stdout] 100 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_100th_BP` should have an upper case name [INFO] [stdout] --> programs/pool/src/states/tick_array.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MAX_100th_BP: usize = 1_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MAX_100TH_BP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_smart_AMM` should have a snake case name [INFO] [stdout] --> programs/pool/src/utils/product.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn is_smart_AMM(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_smart_amm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_time` and `vote_account` are never read [INFO] [stdout] --> programs/oracle/src/states/vote.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 378 | pub struct Test { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 385 | start_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 386 | proposal: ProposalProto, [INFO] [stdout] 387 | vote_account: VoteAccount, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_time` and `vote_account` are never read [INFO] [stdout] --> programs/oracle/src/states/vote.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 468 | pub struct Test { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 475 | start_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 476 | proposal: ProposalProto, [INFO] [stdout] 477 | vote_account: VoteAccount, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_time` and `vote_account` are never read [INFO] [stdout] --> programs/oracle/src/states/vote.rs:538:13 [INFO] [stdout] | [INFO] [stdout] 530 | pub struct Test { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 538 | start_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 539 | proposal: ProposalProto, [INFO] [stdout] 540 | vote_account: VoteAccount, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vote_updated`, `salt_provided`, `start_time`, and `vote_account` are never read [INFO] [stdout] --> programs/oracle/src/states/vote.rs:610:13 [INFO] [stdout] | [INFO] [stdout] 605 | pub struct Test { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 610 | vote_updated: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 611 | salt_true: String, [INFO] [stdout] 612 | salt_provided: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 613 | start_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 614 | proposal: ProposalProto, [INFO] [stdout] 615 | vote_account: VoteAccount, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `arrays` is never read [INFO] [stdout] --> programs/oracle/src/states/vote_array.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct VoteArrayList<'info> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 203 | arrays: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `running_weight_Q64` should have a snake case name [INFO] [stdout] --> programs/oracle/src/states/proposal.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let running_weight_Q64 = (self.running_weight as u128) << 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `running_weight_q64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tokenTx` should have a snake case name [INFO] [stdout] --> programs/oracle/src/utils/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod tokenTx; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `token_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 85 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.29s [INFO] running `Command { std: "docker" "inspect" "5285b613470120a9d109c1fdf653e3a9e8453ba51255a8c3d768c55f1072a7e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5285b613470120a9d109c1fdf653e3a9e8453ba51255a8c3d768c55f1072a7e9", kill_on_drop: false }` [INFO] [stdout] 5285b613470120a9d109c1fdf653e3a9e8453ba51255a8c3d768c55f1072a7e9