Skip to content

Commit 5953d78

Browse files
committed
Cleanup base
1 parent ecb86d4 commit 5953d78

File tree

1 file changed

+1
-1
lines changed
  • examples/sol-anchor-contract/programs/sol-anchor-contract/src

1 file changed

+1
-1
lines changed

examples/sol-anchor-contract/programs/sol-anchor-contract/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub mod sol_anchor_contract {
5151
// i.e {} * 10^({})
5252
// loan_max_value * 10^(loan_price.expo)
5353
let exponent: i32 = loan_price.expo;
54-
let result = (BASE as f64).powi(exponent.abs());
54+
let result = BASE.powi(exponent.abs());
5555
let result = if exponent < 0 { 1.0 / result } else { result };
5656
let result_loan_value = loan_max_value as f64 * result;
5757

0 commit comments

Comments
 (0)