Skip to content

Commit

Permalink
fix: calc logic
Browse files Browse the repository at this point in the history
  • Loading branch information
detectivekim committed Jul 1, 2024
1 parent b38b80c commit 3ed57a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/math.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub mod Math {
I257Impl::new(abs, false)
} else {
let abs: u256 = (96 - r).into();
x *= fast_power(2, abs).into();
x *= fast_power(2, abs);
I257Impl::new(abs, true)
};

Expand Down Expand Up @@ -89,7 +89,6 @@ pub mod Math {
let mut r = p / q.into();
r *= 1677202110996718588342820967067443963516166.into();
r += 16597577552685614221487285958193947469193820559219878177908093499208371.into() * k;
r += 600920179829731861736702779321621459595472258049074101567377883020018308.into();
(r / 302231454903657293676544000000000000000000.into()).try_into().unwrap()
}
}

0 comments on commit 3ed57a3

Please sign in to comment.