Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-03 18:36:02 +05:00
parent 540f27d1c4
commit 353efc2c21
22 changed files with 329 additions and 109 deletions

View file

@ -32,8 +32,18 @@ internal class DefaultPromoRepository(
}.getOrNull()
}
override suspend fun getOkxPromoBanner(): PromoBanner? {
return runCatching(dispatchers.io) {
promoResponseConverter.convert(
tangemApi.getPromotionInfo(OKX)
.getOrThrow(),
)
}.getOrNull()
}
private companion object {
private const val CHANGELLY_NAME = "changelly"
private const val TRAVALA = "travala"
private const val OKX = "okx"
}
}