Skip to content

Commit

Permalink
Enable stake for smartchain
Browse files Browse the repository at this point in the history
  • Loading branch information
furenster committed Jun 4, 2024
1 parent 92ba82a commit abb02fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.wallet.core.primitives.StakeChain
fun StakeChain.Companion.isStaked(chain: Chain): Boolean = byChain(chain) != null

fun StakeChain.Companion.byChain(chain: Chain): StakeChain?
= StakeChain.entries.filter { it != StakeChain.SmartChain }.firstOrNull { it.string == chain.string }
= StakeChain.entries.firstOrNull { it.string == chain.string }

fun StakeChain.lockTime(): Long = when (this) {
StakeChain.Cosmos,
Expand Down

0 comments on commit abb02fc

Please sign in to comment.