Skip to content

Commit

Permalink
fix lp deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Apr 26, 2024
1 parent 39f9ad0 commit 1a07ef1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions centrifuge-js/src/modules/liquidityPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,8 @@ export function getLiquidityPoolsModule(inst: Centrifuge) {
api.tx.liquidityPools.addPool(poolId, { EVM: chainId }),
...pool.tranches.ids.flatMap((trancheId: string) => [
api.tx.liquidityPools.addTranche(poolId, trancheId, { EVM: chainId }),
// Ensure the domain currencies are enabled
// Using a batch, because theoretically they could have been enabled already for a different domain
api.tx.utility.batch(
currencies.map((cur) => api.tx.liquidityPools.allowInvestmentCurrency(poolId, cur.key))
),
]),
...currencies.map((cur) => api.tx.liquidityPools.allowInvestmentCurrency(poolId, cur.key)),
])
return inst.wrapSignAndSend(api, tx, options)
})
Expand Down

0 comments on commit 1a07ef1

Please sign in to comment.