We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb713ab commit 0e0a3e3Copy full SHA for 0e0a3e3
src/domain/proposal.ts
@@ -434,7 +434,7 @@ export function updateProposalExecution(
434
proposal.executedAt = timestamp;
435
// Setting the closingAt field to a far away point in the future so it will be easy to
436
// sort all proposal(open and executed) in ascending order by the closingAt field
437
- if (proposal.genericSchemeMultiCall) {
+ if (proposal.genericSchemeMultiCall !== null && equalStrings(proposal.winningOutcome, 'Pass')) {
438
proposal.closingAt = timestamp.minus(BigInt.fromI32(CLOSING_AT_TIME_DECREASE_GSMC));
439
} else {
440
proposal.closingAt = (BigInt.fromI32(CLOSING_AT_TIME_INCREASE).minus(timestamp)).times(BigInt.fromI32(100));
0 commit comments