diff --git a/schema.graphql b/schema.graphql index 6198669..913d56f 100644 --- a/schema.graphql +++ b/schema.graphql @@ -468,7 +468,8 @@ type VeDelegation @entity { receiver: VeOCEAN! tokenId: BigInt! amount: BigDecimal! - lockedAmount BigDecimal! + lockedAmount: BigDecimal! + lockedAmountinVe: BigDecimal! cancelTime: BigInt! expireTime: BigInt! updates: [VeDelegationUpdate!] @derivedFrom(field: "veDelegation") diff --git a/src/mappings/utils/veUtils.ts b/src/mappings/utils/veUtils.ts index 792e7cf..1b4e616 100644 --- a/src/mappings/utils/veUtils.ts +++ b/src/mappings/utils/veUtils.ts @@ -136,6 +136,8 @@ export function getveDelegation( veDelegation.amount = BigDecimal.zero() veDelegation.receiver = '' veDelegation.delegator = '' + veDelegation.lockedAmount = BigDecimal.zero() + veDelegation.lockedAmountinVe = BigDecimal.zero() veDelegation.save() } return veDelegation