Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-14 18:01:49 +05:00
parent 5988ef1834
commit bdaa181aec
13 changed files with 790 additions and 0 deletions

View file

@ -13,4 +13,12 @@ import com.tangem.domain.swap.models.SwapDirection.Reverse
enum class SwapDirection {
Direct,
Reverse,
;
companion object {
inline fun <T> SwapDirection.withSwapDirection(onDirect: () -> T, onReverse: () -> T): T = when (this) {
Direct -> onDirect()
Reverse -> onReverse()
}
}
}