Skip to content

Commit fb277eb

Browse files
authored
Merge pull request #5 from avydotxyz/hyperliquid-dex-master
Hyperliquid dex master
2 parents 70d5326 + 09de655 commit fb277eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hyperliquid_rust_sdk"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
edition = "2021"
55
license = "MIT"
66
description = "Rust SDK for Hyperliquid"

src/exchange/actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ pub struct ClassTransfer {
288288
pub struct VaultTransfer {
289289
pub vault_address: H160,
290290
pub is_deposit: bool,
291-
pub usd: String,
291+
pub usd: u64,
292292
}
293293

294294
#[derive(Serialize, Deserialize, Debug, Clone)]

src/exchange/exchange_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl HashGenerator {
105105

106106
pub async fn vault_transfer(
107107
is_deposit: bool,
108-
usd: String,
108+
usd: u64,
109109
vault_address: Option<H160>,
110110
) -> Result<Value> {
111111
let vault_address = vault_address.ok_or(Error::VaultAddressNotFound)?;

0 commit comments

Comments
 (0)