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
4 changes: 2 additions & 2 deletions src/bin/vault_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ async fn main() {
.await
.unwrap();

let usd = "1"; // 1 USD
let usd = 5_000_000; // at least 5 USD
let is_deposit = true;

let res = exchange_client
.vault_transfer(
is_deposit,
usd.to_string(),
usd,
Some(
"0x1962905b0a2d0ce7907ae1a0d17f3e4a1f63dfb7"
.parse()
Expand Down
2 changes: 1 addition & 1 deletion src/exchange/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub struct ClassTransfer {
pub struct VaultTransfer {
pub vault_address: H160,
pub is_deposit: bool,
pub usd: String,
pub usd: u64,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/exchange/exchange_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl ExchangeClient {
pub async fn vault_transfer(
&self,
is_deposit: bool,
usd: String,
usd: u64,
vault_address: Option<H160>,
wallet: Option<&LocalWallet>,
) -> Result<ExchangeResponseStatus> {
Expand Down
Loading