Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly"
channel = "stable"
4 changes: 2 additions & 2 deletions src/bin/claim_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ async fn main() {

match response {
ExchangeResponseStatus::Ok(exchange_response) => {
info!("Rewards claimed successfully: {:?}", exchange_response);
info!("Rewards claimed successfully: {exchange_response:?}");
}
ExchangeResponseStatus::Err(e) => {
info!("Failed to claim rewards: {}", e);
info!("Failed to claim rewards: {e}");
}
}
}
2 changes: 1 addition & 1 deletion src/bin/order_and_schedule_cancel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ async fn main() {
.schedule_cancel(Some(cancel_time), None)
.await
.unwrap();
info!("schedule_cancel response: {:?}", response);
info!("schedule_cancel response: {response:?}");
sleep(Duration::from_secs(20));
}
11 changes: 8 additions & 3 deletions src/info/info_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ use tokio::sync::mpsc::UnboundedSender;

use crate::{
info::{
CandlesSnapshotResponse, FundingHistoryResponse, L2SnapshotResponse, OpenOrdersResponse,
OrderInfo, RecentTradesResponse, UserFillsResponse, UserStateResponse, ActiveAssetDataResponse,
ActiveAssetDataResponse, CandlesSnapshotResponse, FundingHistoryResponse,
L2SnapshotResponse, OpenOrdersResponse, OrderInfo, RecentTradesResponse, UserFillsResponse,
UserStateResponse,
},
meta::{AssetContext, Meta, SpotMeta, SpotMetaAndAssetCtxs},
prelude::*,
Expand Down Expand Up @@ -311,7 +312,11 @@ impl InfoClient {
self.send_info_request(input).await
}

pub async fn active_asset_data(&self, user: Address, coin: String) -> Result<ActiveAssetDataResponse> {
pub async fn active_asset_data(
&self,
user: Address,
coin: String,
) -> Result<ActiveAssetDataResponse> {
let input = InfoRequest::ActiveAssetData { user, coin };
self.send_info_request(input).await
}
Expand Down
Loading