You've already forked AstralRinth
forked from didirus/AstralRinth
Revert decimal rounding order, fix profile settings (#4314)
* Revert rounding post subtraction in GET balance * Switch to panic = "unwind" in release mode * Use profile 'release-labrinth' * Fix target path
This commit is contained in:
committed by
GitHub
parent
3d80201112
commit
8aede4e082
@@ -1028,7 +1028,9 @@ async fn get_user_balance(
|
||||
});
|
||||
|
||||
Ok(UserBalance {
|
||||
available: (available - withdrawn - fees).round_dp(16),
|
||||
available: available.round_dp(16)
|
||||
- withdrawn.round_dp(16)
|
||||
- fees.round_dp(16),
|
||||
withdrawn_lifetime: withdrawn.round_dp(16),
|
||||
withdrawn_ytd: withdrawn_this_year.round_dp(16),
|
||||
pending,
|
||||
|
||||
Reference in New Issue
Block a user