Updated on 2026-08-14
This commit is contained in:
parent
8b0a7f01cf
commit
9c81f9ca51
4 changed files with 27 additions and 22 deletions
|
|
@ -16,7 +16,9 @@ sealed class YieldBalance {
|
|||
return when (this) {
|
||||
is Data -> copy(source = source)
|
||||
is Empty -> copy(source = source)
|
||||
is Error -> this
|
||||
is Error,
|
||||
is Unsupported,
|
||||
-> this
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -42,6 +44,12 @@ sealed class YieldBalance {
|
|||
override val source: StatusSource,
|
||||
) : YieldBalance()
|
||||
|
||||
data object Unsupported : YieldBalance() {
|
||||
override val integrationId: String? = null
|
||||
override val address: String? = null
|
||||
override val source: StatusSource = StatusSource.ACTUAL
|
||||
}
|
||||
|
||||
data class Error(override val integrationId: String?, override val address: String?) : YieldBalance() {
|
||||
override val source: StatusSource = StatusSource.ACTUAL
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue