From fe60e01e797fcb2d33064c100f5a9d9e7a9f5efb Mon Sep 17 00:00:00 2001 From: trizin <25263018+trizin@users.noreply.github.com> Date: Thu, 4 May 2023 14:04:45 +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 9adac08..29734c4 100644 --- a/src/mappings/veDelegation.ts +++ b/src/mappings/veDelegation.ts @@ -31,7 +31,7 @@ export function handleDelegation(event: DelegateBoost): void { BigInt.fromI32(18).toI32() ) veDelegation.lockedAmount = delegator.lockedAmount - veDelegation.timeLeft = delegator.unlockTime - ts + veDelegation.timeLeft = delegator.unlockTime.minus(ts) veDelegation.cancelTime = _cancelTime veDelegation.expireTime = _expireTime veDelegation.save()