Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DrunkRandomWalker committed Oct 25, 2023
1 parent 6e5ebe7 commit 777dbea
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 103 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions packages/injective-math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "Apache-2.0"
name = "injective-math"
readme = "README.md"
repository = "https://github.com/InjectiveLabs/cw-injective/tree/master/packages/injective-math"
version = "0.1.23"
version = "0.1.24"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -21,7 +21,6 @@ ethereum-types = "0.5.2"
schemars = "0.8.8"
serde = { version = "1.0.136", default-features = false, features = [ "derive" ] }
subtle-encoding = { version = "0.5.1", features = [ "bech32-preview" ] }
#num-traits = "0.2.17"

[dev-dependencies]
cosmwasm-schema = { version = "1.1.1" }
6 changes: 3 additions & 3 deletions packages/injective-math/src/fp_decimal/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ impl FPDecimal {

let x2y2 = x2 * y2;
let mut result = x1y1;
result = result + x2y1;
result = result + x1y2;
result = result + x2y2 / FPDecimal::MUL_PRECISION.num / FPDecimal::MUL_PRECISION.num;
result += x2y1;
result += x1y2;
result += x2y2 / FPDecimal::MUL_PRECISION.num / FPDecimal::MUL_PRECISION.num;

FPDecimal { num: result, sign }
}
Expand Down
Loading

0 comments on commit 777dbea

Please sign in to comment.