diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipProcessor.kt index b0e88c24a..4180dc51e 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipProcessor.kt @@ -12,7 +12,8 @@ import exchange.dydx.abacus.state.manager.CctpConfig.cctpChainIds import exchange.dydx.abacus.utils.mutable import exchange.dydx.abacus.utils.safeSet -@Suppress("NotImplementedDeclaration") + +@Suppress("NotImplementedDeclaration", "ForbiddenComment") internal class SkipProcessor( parser: ParserProtocol, private val internalState: InternalTransferInputState diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessor.kt index 3692c7b29..6c8e15967 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessor.kt @@ -5,6 +5,7 @@ import exchange.dydx.abacus.protocols.ParserProtocol import exchange.dydx.abacus.utils.safeSet import kotlin.math.pow +@Suppress("ForbiddenComment") internal class SkipRouteProcessor(internal val parser: ParserProtocol) { private val keyMap = mapOf( "string" to mapOf( @@ -23,7 +24,7 @@ internal class SkipRouteProcessor(internal val parser: ParserProtocol) { private fun findFee(payload: Map, key: String): Double? { val estimatedFees = parser.asList(parser.value(payload, "route.estimated_fees")) - val foundFeeObj = estimatedFees?.find { it -> + val foundFeeObj = estimatedFees?.find { parser.asString(parser.asNativeMap(it)?.get("fee_type")) == key } val feeInUSD = parser.asDouble(parser.asNativeMap(foundFeeObj)?.get("usd_amount"))