Round percentage

This commit is contained in:
Sik Yoon 2024-04-06 20:18:38 +09:00
parent 712922fc3e
commit 7ac4f6a544

View File

@ -865,7 +865,7 @@ pub async fn update_profit_percent() {
profit_percent = (decimal_sub(
decimal_div(element.usdt_profit, element.invested_usdt),
dec!(1),
))
)).round_dp(2)
.to_f64()
.unwrap()
* 100.0;