We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb86d4 commit 5953d78Copy full SHA for 5953d78
examples/sol-anchor-contract/programs/sol-anchor-contract/src/lib.rs
@@ -51,7 +51,7 @@ pub mod sol_anchor_contract {
51
// i.e {} * 10^({})
52
// loan_max_value * 10^(loan_price.expo)
53
let exponent: i32 = loan_price.expo;
54
- let result = (BASE as f64).powi(exponent.abs());
+ let result = BASE.powi(exponent.abs());
55
let result = if exponent < 0 { 1.0 / result } else { result };
56
let result_loan_value = loan_max_value as f64 * result;
57
0 commit comments