Skip to content

Commit 792b5fb

Browse files
committed
Refactor code formatting in PolymarketRedemption service
1 parent 848b460 commit 792b5fb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/services/redemption.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,11 @@ export class PolymarketRedemption {
127127
const conditionIdBytes32 = this.formatConditionId(conditionId);
128128

129129
// Get payout numerators for both outcomes (0 and 1)
130-
const [numerator0, numerator1]: [BigNumber, BigNumber] = await Promise.all(
131-
[
130+
const [numerator0, numerator1]: [BigNumber, BigNumber] =
131+
await Promise.all([
132132
ctf.payoutNumerators(conditionIdBytes32, 0),
133133
ctf.payoutNumerators(conditionIdBytes32, 1),
134-
],
135-
);
134+
]);
136135

137136
// Build array of winning index sets
138137
// Index set 1 = outcome 0, Index set 2 = outcome 1
@@ -249,7 +248,8 @@ export class PolymarketRedemption {
249248
});
250249
} else {
251250
// For regular CTF markets
252-
const winningIndexSets = await this.getWinningIndexSets(conditionIdBytes32);
251+
const winningIndexSets =
252+
await this.getWinningIndexSets(conditionIdBytes32);
253253

254254
if (winningIndexSets.length === 0) {
255255
return {

0 commit comments

Comments
 (0)