This commit is contained in:
alexcos20 2023-05-13 15:18:52 +03:00
parent 746dabdc49
commit fad47e70de
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ export function getveDelegation(
veDelegation.receiver = ''
veDelegation.delegator = ''
veDelegation.lockedAmount = BigDecimal.zero()
veDelegation.timeLeft = BigInt.zero()
veDelegation.timeLeftUnlock = 0
veDelegation.save()
}
return veDelegation

View File

@ -30,7 +30,7 @@ export function handleDelegation(event: DelegateBoost): void {
BigInt.fromI32(18).toI32()
)
veDelegation.lockedAmount = delegator.lockedAmount
veDelegation.timeLeft = delegator.unlockTime.toI32().minus(ts)
veDelegation.timeLeftUnlock = delegator.unlockTime.toI32() - ts
veDelegation.cancelTime = _cancelTime
veDelegation.expireTime = _expireTime
veDelegation.save()