Skip to content

Commit 76f5132

Browse files
committed
fix: scope orphan transfer lookup
1 parent 2a140df commit 76f5132

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/to/bitkit/usecases/DeriveBalanceStateUseCase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class DeriveBalanceStateUseCase @Inject constructor(
167167
): ULong {
168168
val channelIds = channels.map { it.channelId }.toSet()
169169
val transferChannelIds = mutableSetOf<String>()
170-
for (transfer in transfers) {
170+
for (transfer in transfers.filter { it.type.isToSavings() }) {
171171
transferRepo.resolveChannelIdForTransfer(transfer, channels)?.let { transferChannelIds.add(it) }
172172
}
173173

0 commit comments

Comments
 (0)