This commit is contained in:
trizin 2023-08-22 13:29:28 +03:00 committed by GitHub
parent 014b4f3299
commit c4e8add944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -174,7 +174,13 @@ export function handleTruevalSubmitted(event: TruevalSubmitted): void {
event.params.roundSumStakes.toBigDecimal(),
BigInt.fromI32(decimals).toI32()
)
predictSlot.status = event.status
if (event.status == 1) {
predictSlot.status = "Paying";
}
if (event.status == 2) {
predictSlot.status = "Canceled";
}
predictSlot.save()
}