Skip to content

Commit 0e0a3e3

Browse files
authored
Fix closing time for GSMC (#642)
* Fix closing time for GSMC * Update mapping.ts * Update mapping.ts * Update proposal.ts
1 parent cb713ab commit 0e0a3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/domain/proposal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export function updateProposalExecution(
434434
proposal.executedAt = timestamp;
435435
// Setting the closingAt field to a far away point in the future so it will be easy to
436436
// sort all proposal(open and executed) in ascending order by the closingAt field
437-
if (proposal.genericSchemeMultiCall) {
437+
if (proposal.genericSchemeMultiCall !== null && equalStrings(proposal.winningOutcome, 'Pass')) {
438438
proposal.closingAt = timestamp.minus(BigInt.fromI32(CLOSING_AT_TIME_DECREASE_GSMC));
439439
} else {
440440
proposal.closingAt = (BigInt.fromI32(CLOSING_AT_TIME_INCREASE).minus(timestamp)).times(BigInt.fromI32(100));

0 commit comments

Comments
 (0)