Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-10 11:23:37 +01:00
parent 8adc179449
commit d5f9410905
35 changed files with 892 additions and 324 deletions

View file

@ -213,10 +213,10 @@ interface TangemTechApi {
@Query("page") page: String? = null,
@Query("limit") limit: Int? = null,
@Query("type") type: String? = null,
@Query("network") network: String? = null,
@Query("networkIds") networks: List<String>? = null,
): ApiResponse<EarnListResponse>
@GET("v1/earn/networks")
suspend fun getEarnNetworks(@Query("type") type: String): ApiResponse<EarnNetworkListResponse>
suspend fun getEarnNetworks(@Query("type") type: String? = null): ApiResponse<EarnNetworkListResponse>
// endregion
}

View file

@ -23,7 +23,7 @@ data class EarnTokenResponse(
@Json(name = "id") val id: String,
@Json(name = "symbol") val symbol: String,
@Json(name = "name") val name: String,
@Json(name = "address") val address: String,
@Json(name = "address") val address: String? = null,
@Json(name = "decimalCount") val decimalCount: Int? = null,
)