Skip to content

Commit

Permalink
AND-9139 added check is blockchain has zero network fee
Browse files Browse the repository at this point in the history
  • Loading branch information
kozarezvlad committed Nov 29, 2024
1 parent 59b049b commit 24e1329
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,17 @@ enum class Blockchain(
else -> false
}

/**
* Returns is fee in given network is zero
* For now actual only for one network
*/
fun isNetworkFeeZero(): Boolean {
return when (this) {
Xodex -> true
else -> false
}
}

companion object {
private val values = values()

Expand Down

0 comments on commit 24e1329

Please sign in to comment.