Skip to content

Commit

Permalink
chore: remove evm swaps ff [OTE-801] (dydxprotocol#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam authored Sep 12, 2024
1 parent 532581a commit 905bf90
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 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.11.1"
version = "1.11.2"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ class V4Environment(
@JsExport
@Suppress("PropertyName")
data object StatsigConfig {
var ff_enable_evm_swaps: Boolean = true
var dc_max_safe_bridge_fees: Float = Float.POSITIVE_INFINITY
var ff_enable_limit_close: Boolean = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import exchange.dydx.abacus.state.manager.HumanReadableTransferPayload
import exchange.dydx.abacus.state.manager.HumanReadableWithdrawPayload
import exchange.dydx.abacus.state.manager.Platform
import exchange.dydx.abacus.state.manager.RpcConfigs
import exchange.dydx.abacus.state.manager.StatsigConfig
import exchange.dydx.abacus.state.manager.SystemUtils
import exchange.dydx.abacus.state.manager.pendingCctpWithdraw
import exchange.dydx.abacus.state.model.TradingStateMachine
Expand Down Expand Up @@ -114,9 +113,7 @@ internal class OnboardingSupervisor(
retrieveSkipTransferChains()
}
retrieveSkipTransferTokens()
if (StatsigConfig.ff_enable_evm_swaps) {
retrieveSkipEvmSwapVenues()
}
retrieveSkipEvmSwapVenues()
retrieveCctpChainIds()
}

Expand Down Expand Up @@ -272,7 +269,7 @@ internal class OnboardingSupervisor(
)
val evmSwapVenues = stateMachine.internalState.input.transfer.evmSwapVenues
val swapVenues = evmSwapVenues + nonEvmSwapVenues
val evmSwapEnabledOptions = mapOf(
val options = mapOf(
"bridges" to listOf(
IBC_BRIDGE_ID,
AXELAR_BRIDGE_ID,
Expand All @@ -281,14 +278,6 @@ internal class OnboardingSupervisor(
"smart_swap_options" to SMART_SWAP_OPTIONS,
"swap_venues" to swapVenues,
)
val evmSwapDisabledOptions = mapOf(
"bridges" to listOf(
IBC_BRIDGE_ID,
AXELAR_BRIDGE_ID,
),
"swap_venues" to nonEvmSwapVenues,
)
val options = if (StatsigConfig.ff_enable_evm_swaps) evmSwapEnabledOptions else evmSwapDisabledOptions
if (fromAmount != null && fromAmount > 0) {
val body: Map<String, Any> = mapOf(
"amount_in" to fromAmountString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import exchange.dydx.abacus.output.input.TransferInputChainResource
import exchange.dydx.abacus.output.input.TransferInputTokenResource
import exchange.dydx.abacus.state.internalstate.InternalTransferInputState
import exchange.dydx.abacus.state.manager.RpcConfigs
import exchange.dydx.abacus.state.manager.StatsigConfig
import exchange.dydx.abacus.tests.payloads.RpcMock
import exchange.dydx.abacus.tests.payloads.SkipChainsMock
import exchange.dydx.abacus.tests.payloads.SkipRouteMock
Expand Down Expand Up @@ -421,7 +420,6 @@ class SkipProcessorTests {

@Test
fun receivedEvmSwapVenuesEvmSwaps() {
StatsigConfig.ff_enable_evm_swaps = true
skipProcessor.receivedEvmSwapVenues(
existing = mapOf(),
payload = templateToMap(SkipVenuesMock.venues),
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.11.1'
spec.version = '1.11.2'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 905bf90

Please sign in to comment.