Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.7.38: Handle channel_batch_data for v4_parent_subaccount #370

Merged
merged 35 commits into from
May 29, 2024

Conversation

jaredvu
Copy link
Contributor

@jaredvu jaredvu commented May 21, 2024

2 fixes included

  • channel_batch_data for orders when subscribed to v4_parent_subaccount has subaccountNumber at the top-level of the contents and not within the list of orders object. Re-introduce subaccountNumber to the Order object in Abacus.
  • TRA-253 Set needsLeverage to false when TradeInput is set to Market + Isolated
  • Add isolatedMargin short-term order transaction test

@jaredvu jaredvu changed the title v1.7.25: Handle channel_batch_data for v4_parent_subaccount v1.7.26: Handle channel_batch_data for v4_parent_subaccount May 21, 2024
Comment on lines 849 to 859
@JsExport
@Serializable
enum class MarginMode(val rawValue: String) {
ISOLATED("ISOLATED"),
CROSS("CROSS");

companion object {
operator fun invoke(rawValue: String) =
MarginMode.values().firstOrNull { it.rawValue == rawValue }
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mike-dydx MarginMode exists in TradeInput.kt, should we remove it there and opt to use the Account.kt one everywhere? We should also wait to rebase over @johnqh 's changes

@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.7.31'
spec.version = ''1.7.31'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm seems like an issue with the auto increment

Copy link
Contributor

Choose a reason for hiding this comment

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

i probably fat fingered it when entering the value, good catch, updated d417bc7

@jaredvu jaredvu changed the title v1.7.26: Handle channel_batch_data for v4_parent_subaccount v1.7.34: Handle channel_batch_data for v4_parent_subaccount May 28, 2024
@jaredvu jaredvu changed the title v1.7.34: Handle channel_batch_data for v4_parent_subaccount v1.7.38: Handle channel_batch_data for v4_parent_subaccount May 29, 2024
@@ -329,7 +339,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
"trade": {
"marginMode": "CROSS",
"options": {
"needsMarginMode": false
"needsMarginMode": true
Copy link
Contributor

Choose a reason for hiding this comment

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

@jaredvu do we have a test for when we expect needsMarginMode to be false?

@mike-dydx mike-dydx self-requested a review May 29, 2024 19:01
@jaredvu jaredvu merged commit b1c0c51 into main May 29, 2024
4 checks passed
@jaredvu jaredvu deleted the orders-processor branch May 29, 2024 19:40
yogurtandjam pushed a commit to Ryz0nd/v4-abacus that referenced this pull request May 31, 2024
…ocol#370)

Co-authored-by: mike-dydx <[email protected]>
Co-authored-by: Rui <[email protected]>
Co-authored-by: mobile-build-bot-git <[email protected]>
Co-authored-by: mike-dydx <[email protected]>
yogurtandjam pushed a commit that referenced this pull request May 31, 2024
Co-authored-by: mike-dydx <[email protected]>
Co-authored-by: Rui <[email protected]>
Co-authored-by: mobile-build-bot-git <[email protected]>
Co-authored-by: mike-dydx <[email protected]>
yogurtandjam pushed a commit that referenced this pull request May 31, 2024
Co-authored-by: mike-dydx <[email protected]>
Co-authored-by: Rui <[email protected]>
Co-authored-by: mobile-build-bot-git <[email protected]>
Co-authored-by: mike-dydx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants