This commit is contained in:
trizin 2023-05-04 13:53:39 +03:00 committed by GitHub
parent af4d273798
commit e14f78e1ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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")

View File

@ -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