-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
@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 } | ||
} | ||
} |
There was a problem hiding this comment.
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
6e630ad
to
e6a2cb5
Compare
src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/AccountProcessor.kt
Show resolved
Hide resolved
src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/OrderProcessor.kt
Show resolved
Hide resolved
src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/OrdersProcessor.kt
Show resolved
Hide resolved
a8f476e
to
333acfd
Compare
This reverts commit 4fcc9a5.
333acfd
to
ae5ae7c
Compare
v4_abacus.podspec
Outdated
@@ -1,6 +1,6 @@ | |||
Pod::Spec.new do |spec| | |||
spec.name = 'v4_abacus' | |||
spec.version = '1.7.31' | |||
spec.version = ''1.7.31' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
…into orders-processor
@@ -329,7 +339,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) { | |||
"trade": { | |||
"marginMode": "CROSS", | |||
"options": { | |||
"needsMarginMode": false | |||
"needsMarginMode": true |
There was a problem hiding this comment.
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?
…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]>
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]>
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]>
2 fixes included
channel_batch_data
for orders when subscribed tov4_parent_subaccount
hassubaccountNumber
at the top-level of the contents and not within the list oforders
object. Re-introducesubaccountNumber
to the Order object in Abacus.needsLeverage
to false whenTradeInput
is set toMarket + Isolated