Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-25 02:45:38 +02:00
parent 1fdc1d07b2
commit 7a1c799ab7
4 changed files with 0 additions and 5 deletions

View file

@ -48,7 +48,6 @@ interface TangemExpressApi {
@Query("providerId") providerId: String,
@Query("rateType") rateType: String,
@Query("toAddress") toAddress: String,
@Query("refundAddress") refundAddress: String,
): ApiResponse<ExchangeDataResponse>
@GET("exchange-result")

View file

@ -188,7 +188,6 @@ internal class SwapRepositoryImpl @Inject constructor(
providerId: String,
rateType: RateType,
toAddress: String,
refundAddress: String
): AggregatedSwapDataModel<SwapDataModel> {
return withContext(coroutineDispatcher.io) {
try {
@ -202,7 +201,6 @@ internal class SwapRepositoryImpl @Inject constructor(
providerId = providerId,
rateType = rateType.name.lowercase(),
toAddress = toAddress,
refundAddress = refundAddress
).getOrThrow()
AggregatedSwapDataModel(
dataModel = expressDataConverter.convert(response)

View file

@ -635,7 +635,6 @@ internal class SwapInteractorImpl @Inject constructor(
providerId = provider.providerId,
rateType = RateType.FLOAT,
toAddress = toToken.value.networkAddress?.defaultAddress ?: "",
refundAddress = fromToken.value.networkAddress?.defaultAddress ?: "",
).let {
val swapData = it.dataModel
if (swapData != null) {

View file

@ -68,7 +68,6 @@ interface SwapRepository {
providerId: String,
rateType: RateType,
toAddress: String,
refundAddress: String,
): AggregatedSwapDataModel<SwapDataModel>
fun getNativeTokenForNetwork(networkId: String): CryptoCurrency