Updated on 2026-08-14
This commit is contained in:
parent
0e1e5e3a67
commit
135a8a22f0
5 changed files with 69 additions and 6 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue