[INFO] cloning repository https://github.com/PeggyJV/uniswap_sdk_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PeggyJV/uniswap_sdk_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeggyJV%2Funiswap_sdk_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeggyJV%2Funiswap_sdk_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cf8574b8306001d48cab7be6e788079fa5c1a15f [INFO] checking PeggyJV/uniswap_sdk_rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeggyJV%2Funiswap_sdk_rs" "/workspace/builds/worker-116/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-116/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PeggyJV/uniswap_sdk_rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PeggyJV/uniswap_sdk_rs [INFO] finished tweaking git repo https://github.com/PeggyJV/uniswap_sdk_rs [INFO] tweaked toml for git repo https://github.com/PeggyJV/uniswap_sdk_rs written to /workspace/builds/worker-116/source/Cargo.toml [INFO] crate git repo https://github.com/PeggyJV/uniswap_sdk_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3300b68dca63569de44e906b8edabc08d67ad749f054c013cd46d49a25a3e9dd [INFO] running `Command { std: "docker" "start" "-a" "3300b68dca63569de44e906b8edabc08d67ad749f054c013cd46d49a25a3e9dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3300b68dca63569de44e906b8edabc08d67ad749f054c013cd46d49a25a3e9dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3300b68dca63569de44e906b8edabc08d67ad749f054c013cd46d49a25a3e9dd", kill_on_drop: false }` [INFO] [stdout] 3300b68dca63569de44e906b8edabc08d67ad749f054c013cd46d49a25a3e9dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9f992cd20205aac3e90f666dc11ab28c59f40074ee2fded3b12cc093166c01f [INFO] running `Command { std: "docker" "start" "-a" "f9f992cd20205aac3e90f666dc11ab28c59f40074ee2fded3b12cc093166c01f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking uniswap_v3_sdk v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/lib.rs (4 fixes) [INFO] [stdout] warning: function `mulShift` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `mul_shift` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mulBy = BigInt::parse_bytes(mulBy, 16).unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn getSqrtRatioAtTick(tick: BigInt) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let MIN_TICK: BigInt = -887272.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let MAX_TICK: BigInt = -(MIN_TICK.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q32` should have a snake case name [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let Q32: BigInt = 2i32.to_bigint().unwrap().pow(32); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `absTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let absTick = tick.abs(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `abs_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX128` should have a snake case name [INFO] [stdout] --> src/lib.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | let sqrtRatioX128: BigInt = sqrtRatioX96.clone() << 32; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TWO` should have a snake case name [INFO] [stdout] --> src/lib.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let TWO: BigInt = 2.to_bigint().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POWERS_OF_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let POWERS_OF_2: Vec<(u32, BigInt)> = [128u32, 64u32, 32u32, 16u32, 8u32, 4u32, 2u32, 1u32] [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `powers_of_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tickToPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 287 | pub fn tickToPrice(base_token: Token, quote_token: Token, tick: BigInt) -> Price { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `tick_to_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q192` should have a snake case name [INFO] [stdout] --> src/lib.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | let Q192 = Q96.pow(2); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `q192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | let sqrtRatioX96 = getSqrtRatioAtTick(tick); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ratioX192` should have a snake case name [INFO] [stdout] --> src/lib.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | let ratioX192 = sqrtRatioX96.clone() * sqrtRatioX96; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ratio_x192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priceToTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn priceToTick(price: Price) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `price_to_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | let sqrtRatioX96 = if sorted { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextTickPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | let nextTickPrice = tickToPrice( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_tick_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount0` should have a snake case name [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn maxLiquidityForAmount0( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 339 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:10 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount1` should have a snake case name [INFO] [stdout] --> src/lib.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn maxLiquidityForAmount1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:355:5 [INFO] [stdout] | [INFO] [stdout] 355 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:356:5 [INFO] [stdout] | [INFO] [stdout] 356 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:10 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:25 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmounts` should have a snake case name [INFO] [stdout] --> src/lib.rs:368:8 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn maxLiquidityForAmounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioCurrentX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 369 | sqrtRatioCurrentX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_current_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:10 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:25 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mulShift` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `mul_shift` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mulBy = BigInt::parse_bytes(mulBy, 16).unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn getSqrtRatioAtTick(tick: BigInt) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let MIN_TICK: BigInt = -887272.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let MAX_TICK: BigInt = -(MIN_TICK.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q32` should have a snake case name [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let Q32: BigInt = 2i32.to_bigint().unwrap().pow(32); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `absTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let absTick = tick.abs(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `abs_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX128` should have a snake case name [INFO] [stdout] --> src/lib.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | let sqrtRatioX128: BigInt = sqrtRatioX96.clone() << 32; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TWO` should have a snake case name [INFO] [stdout] --> src/lib.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let TWO: BigInt = 2.to_bigint().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POWERS_OF_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let POWERS_OF_2: Vec<(u32, BigInt)> = [128u32, 64u32, 32u32, 16u32, 8u32, 4u32, 2u32, 1u32] [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `powers_of_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tickToPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 287 | pub fn tickToPrice(base_token: Token, quote_token: Token, tick: BigInt) -> Price { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `tick_to_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q192` should have a snake case name [INFO] [stdout] --> src/lib.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | let Q192 = Q96.pow(2); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `q192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | let sqrtRatioX96 = getSqrtRatioAtTick(tick); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ratioX192` should have a snake case name [INFO] [stdout] --> src/lib.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | let ratioX192 = sqrtRatioX96.clone() * sqrtRatioX96; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ratio_x192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priceToTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn priceToTick(price: Price) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `price_to_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | let sqrtRatioX96 = if sorted { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextTickPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | let nextTickPrice = tickToPrice( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_tick_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount0` should have a snake case name [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn maxLiquidityForAmount0( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 339 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:10 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount1` should have a snake case name [INFO] [stdout] --> src/lib.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn maxLiquidityForAmount1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:355:5 [INFO] [stdout] | [INFO] [stdout] 355 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:356:5 [INFO] [stdout] | [INFO] [stdout] 356 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:10 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:25 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmounts` should have a snake case name [INFO] [stdout] --> src/lib.rs:368:8 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn maxLiquidityForAmounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioCurrentX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 369 | sqrtRatioCurrentX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_current_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:10 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:25 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick_1` should have a snake case name [INFO] [stdout] --> src/lib.rs:422:8 [INFO] [stdout] | [INFO] [stdout] 422 | fn getSqrtRatioAtTick_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:432:8 [INFO] [stdout] | [INFO] [stdout] 432 | fn getSqrtRatioAtTick_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 434 | let MAX_TICK = -MIN_TICK.clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:436:13 [INFO] [stdout] | [INFO] [stdout] 436 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio_1` should have a snake case name [INFO] [stdout] --> src/lib.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn getTickAtSqrtRatio_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:445:13 [INFO] [stdout] | [INFO] [stdout] 445 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | let _MAX_TICK = -MIN_TICK.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:455:8 [INFO] [stdout] | [INFO] [stdout] 455 | fn getTickAtSqrtRatio_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:456:13 [INFO] [stdout] | [INFO] [stdout] 456 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | let MAX_TICK = -MIN_TICK.clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:459:13 [INFO] [stdout] | [INFO] [stdout] 459 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TWO` should have a snake case name [INFO] [stdout] --> src/lib.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let TWO: BigInt = 2.to_bigint().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 59 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 55s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking uniswap_v3_sdk v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function `mulShift` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `mul_shift` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mulBy = BigInt::parse_bytes(mulBy, 16).unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn getSqrtRatioAtTick(tick: BigInt) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let MIN_TICK: BigInt = -887272.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let MAX_TICK: BigInt = -(MIN_TICK.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q32` should have a snake case name [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let Q32: BigInt = 2i32.to_bigint().unwrap().pow(32); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `absTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let absTick = tick.abs(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `abs_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX128` should have a snake case name [INFO] [stdout] --> src/lib.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | let sqrtRatioX128: BigInt = sqrtRatioX96.clone() << 32; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TWO` should have a snake case name [INFO] [stdout] --> src/lib.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let TWO: BigInt = 2.to_bigint().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POWERS_OF_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let POWERS_OF_2: Vec<(u32, BigInt)> = [128u32, 64u32, 32u32, 16u32, 8u32, 4u32, 2u32, 1u32] [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `powers_of_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tickToPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 287 | pub fn tickToPrice(base_token: Token, quote_token: Token, tick: BigInt) -> Price { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `tick_to_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q192` should have a snake case name [INFO] [stdout] --> src/lib.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | let Q192 = Q96.pow(2); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `q192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | let sqrtRatioX96 = getSqrtRatioAtTick(tick); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ratioX192` should have a snake case name [INFO] [stdout] --> src/lib.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | let ratioX192 = sqrtRatioX96.clone() * sqrtRatioX96; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ratio_x192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priceToTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn priceToTick(price: Price) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `price_to_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | let sqrtRatioX96 = if sorted { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextTickPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | let nextTickPrice = tickToPrice( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_tick_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount0` should have a snake case name [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn maxLiquidityForAmount0( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 339 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:10 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount1` should have a snake case name [INFO] [stdout] --> src/lib.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn maxLiquidityForAmount1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:355:5 [INFO] [stdout] | [INFO] [stdout] 355 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:356:5 [INFO] [stdout] | [INFO] [stdout] 356 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:10 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:25 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmounts` should have a snake case name [INFO] [stdout] --> src/lib.rs:368:8 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn maxLiquidityForAmounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioCurrentX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 369 | sqrtRatioCurrentX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_current_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:10 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:25 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mulShift` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `mul_shift` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn mulShift(val: BigInt, mulBy: &[u8]) -> BigInt { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mulBy` should have a snake case name [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mulBy = BigInt::parse_bytes(mulBy, 16).unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `mul_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn getSqrtRatioAtTick(tick: BigInt) -> BigInt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let MIN_TICK: BigInt = -887272.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let MAX_TICK: BigInt = -(MIN_TICK.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q32` should have a snake case name [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let Q32: BigInt = 2i32.to_bigint().unwrap().pow(32); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `absTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let absTick = tick.abs(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `abs_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:151:27 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn getTickAtSqrtRatio(sqrtRatioX96: BigInt) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX128` should have a snake case name [INFO] [stdout] --> src/lib.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | let sqrtRatioX128: BigInt = sqrtRatioX96.clone() << 32; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TWO` should have a snake case name [INFO] [stdout] --> src/lib.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let TWO: BigInt = 2.to_bigint().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POWERS_OF_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let POWERS_OF_2: Vec<(u32, BigInt)> = [128u32, 64u32, 32u32, 16u32, 8u32, 4u32, 2u32, 1u32] [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `powers_of_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_UINT_256` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let MAX_UINT_256: BigInt = BigInt::parse_bytes( [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `max_uint_256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tickToPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 287 | pub fn tickToPrice(base_token: Token, quote_token: Token, tick: BigInt) -> Price { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `tick_to_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q192` should have a snake case name [INFO] [stdout] --> src/lib.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | let Q192 = Q96.pow(2); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `q192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | let sqrtRatioX96 = getSqrtRatioAtTick(tick); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ratioX192` should have a snake case name [INFO] [stdout] --> src/lib.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | let ratioX192 = sqrtRatioX96.clone() * sqrtRatioX96; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ratio_x192` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priceToTick` should have a snake case name [INFO] [stdout] --> src/lib.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn priceToTick(price: Price) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `price_to_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | let sqrtRatioX96 = if sorted { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextTickPrice` should have a snake case name [INFO] [stdout] --> src/lib.rs:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | let nextTickPrice = tickToPrice( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `next_tick_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount0` should have a snake case name [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn maxLiquidityForAmount0( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:338:5 [INFO] [stdout] | [INFO] [stdout] 338 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 339 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:10 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:343:25 [INFO] [stdout] | [INFO] [stdout] 343 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmount1` should have a snake case name [INFO] [stdout] --> src/lib.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn maxLiquidityForAmount1( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amount1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:355:5 [INFO] [stdout] | [INFO] [stdout] 355 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:356:5 [INFO] [stdout] | [INFO] [stdout] 356 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q96` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | let Q96 = 2.to_bigint().unwrap().pow(96); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `q96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:10 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:360:25 [INFO] [stdout] | [INFO] [stdout] 360 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maxLiquidityForAmounts` should have a snake case name [INFO] [stdout] --> src/lib.rs:368:8 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn maxLiquidityForAmounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_liquidity_for_amounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioCurrentX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 369 | sqrtRatioCurrentX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_current_x96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | sqrtRatioAX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | sqrtRatioBX96: BigInt, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioAX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:10 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_ax96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sqrtRatioBX96` should have a snake case name [INFO] [stdout] --> src/lib.rs:375:25 [INFO] [stdout] | [INFO] [stdout] 375 | let (sqrtRatioAX96, sqrtRatioBX96) = if sqrtRatioAX96 > sqrtRatioBX96 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sqrt_ratio_bx96` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick_1` should have a snake case name [INFO] [stdout] --> src/lib.rs:422:8 [INFO] [stdout] | [INFO] [stdout] 422 | fn getSqrtRatioAtTick_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getSqrtRatioAtTick_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:432:8 [INFO] [stdout] | [INFO] [stdout] 432 | fn getSqrtRatioAtTick_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_sqrt_ratio_at_tick_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 434 | let MAX_TICK = -MIN_TICK.clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:436:13 [INFO] [stdout] | [INFO] [stdout] 436 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio_1` should have a snake case name [INFO] [stdout] --> src/lib.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn getTickAtSqrtRatio_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:445:13 [INFO] [stdout] | [INFO] [stdout] 445 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | let _MAX_TICK = -MIN_TICK.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | let MIN_SQRT_RATIO: BigInt = 4295128739i64.to_bigint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `min_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getTickAtSqrtRatio_2` should have a snake case name [INFO] [stdout] --> src/lib.rs:455:8 [INFO] [stdout] | [INFO] [stdout] 455 | fn getTickAtSqrtRatio_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_tick_at_sqrt_ratio_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MIN_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:456:13 [INFO] [stdout] | [INFO] [stdout] 456 | let MIN_TICK = -887272i32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_TICK` should have a snake case name [INFO] [stdout] --> src/lib.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | let MAX_TICK = -MIN_TICK.clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_SQRT_RATIO` should have a snake case name [INFO] [stdout] --> src/lib.rs:459:13 [INFO] [stdout] | [INFO] [stdout] 459 | let MAX_SQRT_RATIO: BigInt = [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_sqrt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TWO` should have a snake case name [INFO] [stdout] --> src/lib.rs:468:13 [INFO] [stdout] | [INFO] [stdout] 468 | let TWO: BigInt = 2.to_bigint().unwrap(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 59 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "f9f992cd20205aac3e90f666dc11ab28c59f40074ee2fded3b12cc093166c01f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9f992cd20205aac3e90f666dc11ab28c59f40074ee2fded3b12cc093166c01f", kill_on_drop: false }` [INFO] [stdout] f9f992cd20205aac3e90f666dc11ab28c59f40074ee2fded3b12cc093166c01f