From c0fe3cd6b44792a1a7f2985a6e1a95ba5c9e02fa Mon Sep 17 00:00:00 2001 From: trizin <25263018+trizin@users.noreply.github.com> Date: Thu, 4 May 2023 15:51:48 +0300 Subject: [PATCH] Fix --- src/mappings/veDelegation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()