Skip to content

Commit b52745b

Browse files
committed
fix(pools): use updated metadata for resolve from get
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent d386d87 commit b52745b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/flipcash/shared/pools/src/main/kotlin/com/flipcash/app/pools/PoolsCoordinator.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import com.flipcash.services.user.UserManager
2525
import com.getcode.ed25519.Ed25519.KeyPair
2626
import com.getcode.opencode.controllers.AccountController
2727
import com.getcode.opencode.model.accounts.AccountFilter
28-
import com.getcode.opencode.model.accounts.AccountInfo
29-
import com.getcode.opencode.model.accounts.AccountType
3028
import com.getcode.opencode.model.core.ID
3129
import com.getcode.opencode.model.financial.Fiat
3230
import kotlinx.coroutines.ExperimentalCoroutinesApi
@@ -47,7 +45,6 @@ class PoolsCoordinator @Inject constructor(
4745
private val dataSource: PoolDataSource,
4846
private val entityToDomainMapper: PoolEntityToPoolMapper,
4947
private val networkToDomainMapper: NetworkPoolToDomainMapper,
50-
private val domainToNetworkMapper: PoolToMetadataMapper,
5148
private val userManager: UserManager,
5249
) {
5350
private val pagingConfig = PagingConfig(pageSize = 20)
@@ -178,7 +175,7 @@ class PoolsCoordinator @Inject constructor(
178175
.fold(
179176
onSuccess = {
180177
controller.resolvePool(
181-
pool = domainToNetworkMapper.map(pool),
178+
pool = it.metadata,
182179
rendezvous = rendezvous,
183180
resolution = PoolResolutionConverter.toPoolResolution(resolution as PoolResolution),
184181
)

0 commit comments

Comments
 (0)