Change initialization of variable by using method
This commit is contained in:
parent
50e4967da0
commit
e7d9874347
|
|
@ -399,16 +399,7 @@ pub async fn get_unit_trade_usdt() -> Decimal {
|
|||
}
|
||||
|
||||
pub async fn select_asset_manage_announcement() -> AssetInfo {
|
||||
let mut asset_info = AssetInfo {
|
||||
initial_usdt: Decimal::new(0, 8),
|
||||
current_total_usdt: Decimal::new(0, 8),
|
||||
profit: Decimal::new(0, 8),
|
||||
realtime_expected_total_usdt: 0.0,
|
||||
realtime_profit: 0.0,
|
||||
available_usdt: Decimal::new(0, 8),
|
||||
is_tradable: 0,
|
||||
unit_trade_usdt: Decimal::new(0, 8),
|
||||
};
|
||||
let mut asset_info = AssetInfo::new();
|
||||
|
||||
let table_name = String::from("asset_manage_announcement");
|
||||
let columns = String::from("*");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user