diff --git a/src/mappings/veDelegation.ts b/src/mappings/veDelegation.ts index a89bc34..fbe3a9e 100644 --- a/src/mappings/veDelegation.ts +++ b/src/mappings/veDelegation.ts @@ -30,7 +30,7 @@ export function handleDelegation(event: DelegateBoost): void { BigInt.fromI32(18).toI32() ) veDelegation.lockedAmount = delegator.lockedAmount - veDelegation.timeLeft = delegator.unlockTime.minus(ts) + veDelegation.timeLeft = delegator.unlockTime.toI32().minus(ts) veDelegation.cancelTime = _cancelTime veDelegation.expireTime = _expireTime veDelegation.save()