diff --git a/apps/labrinth/src/queue/payouts/flow/tremendous.rs b/apps/labrinth/src/queue/payouts/flow/tremendous.rs index c5b2cc1ab..0c292b004 100644 --- a/apps/labrinth/src/queue/payouts/flow/tremendous.rs +++ b/apps/labrinth/src/queue/payouts/flow/tremendous.rs @@ -90,6 +90,11 @@ pub(super) async fn create( ); let net_usd = gross_usd - total_fee_usd; + let net_local = net_usd.mul_round( + usd_to_currency, + RoundingStrategy::MidpointTowardZero, + ); + Ok(PayoutFlow { net_usd, total_fee_usd, @@ -105,8 +110,8 @@ pub(super) async fn create( // To offset this, we (the platform) take the fees off before // we send the request to Tremendous. Afterwards, the method // (Tremendous) will take 0% off the top of our $10. - value_denomination: net_usd.get(), - value_currency_code: TremendousCurrency::Usd.to_string(), + value_denomination: net_local.get(), + value_currency_code: currency_code, net_usd, total_fee_usd, delivery_email,