Skip to content

Commit

Permalink
pass in ff_enable_timestamp_nonce flag for validator config (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
aforaleka authored Oct 14, 2024
1 parent f35a73e commit 5d87baf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.12.22"
version = "1.12.23"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ class V4Environment(
data object StatsigConfig {
var dc_max_safe_bridge_fees: Float = Float.POSITIVE_INFINITY
var ff_enable_limit_close: Boolean = false
var ff_enable_timestamp_nonce: Boolean = false
}

@JsExport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import exchange.dydx.abacus.protocols.TransactionType
import exchange.dydx.abacus.state.manager.GasToken
import exchange.dydx.abacus.state.manager.IndexerURIs
import exchange.dydx.abacus.state.manager.NetworkState
import exchange.dydx.abacus.state.manager.StatsigConfig
import exchange.dydx.abacus.state.manager.SystemUtils
import exchange.dydx.abacus.state.model.TradingStateMachine
import exchange.dydx.abacus.utils.AnalyticsUtils
Expand Down Expand Up @@ -243,6 +244,9 @@ internal class ConnectionsSupervisor(
params.safeSet("CHAINTOKEN_DENOM", chainTokenDenom)
params.safeSet("CHAINTOKEN_DECIMALS", chainTokenDecimals)
params.safeSet("txnMemo", "dYdX Frontend (${SystemUtils.platform.rawValue})")

params.safeSet("enableTimestampNonce", StatsigConfig.ff_enable_timestamp_nonce)

val jsonString = JsonEncoder().encode(params) ?: return

helper.ioImplementations.threading?.async(ThreadingType.main) {
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.12.22'
spec.version = '1.12.23'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 5d87baf

Please sign in to comment.