Updated on 2026-08-14
This commit is contained in:
parent
d99c4e1405
commit
5bc59f3789
5 changed files with 137 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package com.tangem.domain.staking.model.stakekit
|
||||
|
||||
import com.tangem.domain.models.StatusSource
|
||||
import com.tangem.domain.staking.model.StakingID
|
||||
import com.tangem.domain.staking.model.stakekit.action.StakingActionType
|
||||
import org.joda.time.DateTime
|
||||
import java.math.BigDecimal
|
||||
|
|
@ -19,6 +20,15 @@ sealed class YieldBalance {
|
|||
}
|
||||
}
|
||||
|
||||
fun getStakingId(): StakingID? {
|
||||
val integrationId = integrationId
|
||||
val address = address
|
||||
|
||||
if (integrationId == null || address == null) return null
|
||||
|
||||
return StakingID(integrationId = integrationId, address = address)
|
||||
}
|
||||
|
||||
data class Data(
|
||||
override val integrationId: String?,
|
||||
override val address: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue