Updated on 2026-08-14
This commit is contained in:
parent
1fdc1d07b2
commit
7a1c799ab7
4 changed files with 0 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ interface SwapRepository {
|
|||
providerId: String,
|
||||
rateType: RateType,
|
||||
toAddress: String,
|
||||
refundAddress: String,
|
||||
): AggregatedSwapDataModel<SwapDataModel>
|
||||
|
||||
fun getNativeTokenForNetwork(networkId: String): CryptoCurrency
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue