Skip to content

Commit

Permalink
enable non-cctp deposit and wihtdrawals
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Jun 21, 2024
1 parent 8e9ddcf commit f12fe61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import exchange.dydx.abacus.responses.ParsingError
import exchange.dydx.abacus.responses.StateResponse
import exchange.dydx.abacus.state.changes.Changes
import exchange.dydx.abacus.state.changes.StateChanges
import exchange.dydx.abacus.utils.Logger
import exchange.dydx.abacus.utils.mutable
import exchange.dydx.abacus.utils.mutableMapOf
import exchange.dydx.abacus.utils.safeSet
Expand Down Expand Up @@ -245,7 +246,9 @@ private fun TradingStateMachine.updateTransferToChainType(transfer: MutableMap<S

private fun TradingStateMachine.updateTransferExchangeType(transfer: MutableMap<String, Any>, exchange: String) {
val exchangeDestinationChainId = routerProcessor.exchangeDestinationChainId
Logger.e({ "exchangedestinationchainid:$exchangeDestinationChainId" })
val tokenOptions = routerProcessor.tokenOptions(exchangeDestinationChainId)
Logger.e({ "tokenOptions:$tokenOptions" })
if (transfer["type"] != "TRANSFER_OUT") {
internalState.transfer.tokens = tokenOptions
transfer.safeSet("token", routerProcessor.defaultTokenAddress(exchangeDestinationChainId))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class SkipRouteProcessorTests {
)
assertEquals(expected, result)
}

@Test
fun testReceivedError() {
val payload = skipRouteMock.payloadError
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.7.87'
spec.version = '1.7.88'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit f12fe61

Please sign in to comment.