Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-14 18:40:28 +04:00
parent 0e1e5e3a67
commit 135a8a22f0
5 changed files with 69 additions and 6 deletions

View file

@ -21,5 +21,19 @@ interface MultiYieldBalanceFetcher : FlowFetcher<MultiYieldBalanceFetcher.Params
data class Params(
val userWalletId: UserWalletId,
val currencyIdWithNetworkMap: Map<CryptoCurrency.ID, Network>,
)
) {
override fun toString(): String {
val currencyIdWithNetworkMap = currencyIdWithNetworkMap.entries.joinToString {
"${it.key.value} - ${it.value}"
}
return """
MultiYieldBalanceFetcher.Params(
userWalletId = $userWalletId,
currencyIdWithNetworkMap: $currencyIdWithNetworkMap
)
""".trimIndent()
}
}
}

View file

@ -17,7 +17,18 @@ interface SingleYieldBalanceProducer : FlowProducer<YieldBalance> {
val userWalletId: UserWalletId,
val currencyId: CryptoCurrency.ID,
val network: Network,
)
) {
override fun toString(): String {
return """
SingleYieldBalanceProducer.Params(
userWalletId = $userWalletId,
currencyId = $currencyId,
network = $network
)
""".trimIndent()
}
}
interface Factory : FlowProducer.Factory<Params, SingleYieldBalanceProducer>
}