Skip to content

Commit

Permalink
Fix Polygon route (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang authored Dec 3, 2024
1 parent 7c5b470 commit f7208a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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.13.38"
version = "1.13.39"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ internal class SkipProcessor(
val cctpChain = cctpChainIds?.find { it.chainId == chainId }
// If one does, then check for a token in the filteredTokens whose denom matches the found cctpChainTokenInfo, if one exists
val filteredCctpToken = filteredTokensForChainId.find {
parser.asString(parser.asNativeMap(it)?.get("denom")) == cctpChain?.tokenAddress
parser.asString(parser.asNativeMap(it)?.get("denom"))?.lowercase() == cctpChain?.tokenAddress?.lowercase()
}
if (filteredCctpToken != null) {
return parser.asString(parser.asNativeMap(filteredCctpToken)?.get("denom"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data class CctpChainTokenInfo(
val tokenAddress: String,
) {
fun isCctpEnabled(transferInput: TransferInput?) =
transferInput?.chain == chainId && transferInput.token == tokenAddress
transferInput?.chain == chainId && transferInput.token?.lowercase() == tokenAddress.lowercase()
}

object CctpConfig {
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.13.38'
spec.version = '1.13.39'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit f7208a2

Please sign in to comment.