fix
This commit is contained in:
parent
746dabdc49
commit
fad47e70de
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue