This commit is contained in:
trizin 2023-05-04 15:51:48 +03:00 committed by GitHub
parent 950bf9ebfe
commit c0fe3cd6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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