Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
aforaleka committed Apr 11, 2024
1 parent a7e6595 commit 7bcdacb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.6.40"
version = "1.6.41"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ class V4StateManagerAdaptor(
val existingOrder = subaccount?.orders?.firstOrNull { it.id == orderId }
val analyticsPayload = analyticsUtils.cancelOrderAnalyticsPayload(
payload,
existingOrder
existingOrder,
)

submitCancelOrder(orderId, callback, payload, analyticsPayload)
Expand All @@ -1189,13 +1189,13 @@ class V4StateManagerAdaptor(
override fun commitTriggerOrders(callback: TransactionCallback): HumanReadableTriggerOrdersPayload {
val payloads = triggerOrdersPayload()

payloads.cancelOrderPayloads.forEach {payload ->
payloads.cancelOrderPayloads.forEach { payload ->
val subaccount = stateMachine.state?.subaccount(subaccountNumber)
val existingOrder = subaccount?.orders?.firstOrNull { it.id == payload.orderId }
val analyticsPayload = analyticsUtils.cancelOrderAnalyticsPayload(
payload,
existingOrder,
true
true,
)
submitCancelOrder(payload.orderId, callback, payload, analyticsPayload, true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class AnalyticsUtils {
formatPlaceOrderPayload(payload, isClosePosition, fromSlTpDialog),
iMapOf(
"inferredTimeInForce" to calculateOrderTimeInForce(payload),
"midMarketPrice" to midMarketPrice
) as IMap<String, Any>?
"midMarketPrice" to midMarketPrice,
) as IMap<String, Any>?,
)?.toIMap()
}

Expand Down Expand Up @@ -97,7 +97,7 @@ class AnalyticsUtils {
payload: HumanReadableCancelOrderPayload,
existingOrder: SubaccountOrder?,
fromSlTpDialog: Boolean? = false,
): IMap<String,Any>? {
): IMap<String, Any>? {
return ParsingHelper.merge(
formatCancelOrderPayload(payload, fromSlTpDialog),
if (existingOrder != null) formatOrder(existingOrder) else mapOf(),
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.6.40'
spec.version = '1.6.41'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 7bcdacb

Please sign in to comment.