Skip to content

Conversation

@LukasDeco
Copy link
Contributor

@LukasDeco LukasDeco commented Apr 29, 2025

closes #123

@LukasDeco LukasDeco marked this pull request as draft April 29, 2025 21:46
@LukasDeco LukasDeco force-pushed the lukas/support-swift-123 branch from aa4d9e0 to 50ad9c2 Compare April 30, 2025 22:16
@LukasDeco LukasDeco marked this pull request as ready for review April 30, 2025 22:16
@LukasDeco LukasDeco force-pushed the lukas/support-swift-123 branch from 9c8f574 to d5e970b Compare May 5, 2025 17:12
@LukasDeco LukasDeco force-pushed the lukas/support-swift-123 branch from d5e970b to bc1f39d Compare May 8, 2025 20:04
Copy link
Collaborator

@jordy25519 jordy25519 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm % couple nits

Comment on lines +681 to +683
.swift_node
.clone()
.unwrap_or("https://master.swift.drift.trade".to_string())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: better to set this as the default value at the args level not here

};
let incoming_msg = IncomingSignedMessage {
taker_authority: self.authority().to_string(),
signature: general_purpose::STANDARD.encode(signature),
Copy link
Collaborator

@jordy25519 jordy25519 May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this'll base64 it already

Suggested change
signature: general_purpose::STANDARD.encode(signature),
signature: signature.to_string(),

stop_loss_order_params: None, // TODO: add stop loss order params
};

let signed_order_type = SignedOrderType::Authority(order);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a TODO to support delegate signed message type here

@LukasDeco LukasDeco merged commit bd9415d into master May 9, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support SWIFT mode

3 participants