Skip to content

Commit c1841e9

Browse files
committed
small change, rm deployTranches event for v3
1 parent f74b539 commit c1841e9

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

projects/centrifuge/index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,8 @@ const getTokens = async (api, block, factories) => {
6565
}
6666

6767
if (factory.TOKEN_FACTORY_V3) {
68-
const [tranches, shareClasses] = await Promise.all([
69-
api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.deployTranches, onlyArgs: true }),
70-
api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.addShareClass, onlyArgs: true })
71-
])
72-
73-
allTranches.push(
74-
...tranches.map(({ tranche }) => tranche),
75-
...shareClasses.map(({ token }) => token)
76-
)
68+
const shareClasses = await api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.addShareClass, onlyArgs: true })
69+
allTranches.push(...shareClasses.map(({ token }) => token))
7770
}
7871

7972
return allTranches

0 commit comments

Comments
 (0)