Skip to content

Commit 14311ea

Browse files
committed
fix: advanced analytucs payout to float
1 parent 7c7712e commit 14311ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sentry/src/analytics_recorder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ pub async fn record(
5353
let divisor = BigNum::from(10u64.pow(18));
5454
let pay_amount = get_payout(&channel, event)
5555
.div_floor(&divisor)
56-
.to_u64()
56+
.to_f64()
5757
.expect("should always have a payout");
58-
// let pay_amount = payout / 10u64.pow(18);
5958

6059
if let Some(ad_unit) = ad_unit {
6160
db.zincr(

0 commit comments

Comments
 (0)