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! receiver: VeOCEAN!
tokenId: BigInt! tokenId: BigInt!
amount: BigDecimal! amount: BigDecimal!
lockedAmount BigDecimal! lockedAmount: BigDecimal!
lockedAmountinVe: BigDecimal!
cancelTime: BigInt! cancelTime: BigInt!
expireTime: BigInt! expireTime: BigInt!
updates: [VeDelegationUpdate!] @derivedFrom(field: "veDelegation") updates: [VeDelegationUpdate!] @derivedFrom(field: "veDelegation")

View File

@ -136,6 +136,8 @@ export function getveDelegation(
veDelegation.amount = BigDecimal.zero() veDelegation.amount = BigDecimal.zero()
veDelegation.receiver = '' veDelegation.receiver = ''
veDelegation.delegator = '' veDelegation.delegator = ''
veDelegation.lockedAmount = BigDecimal.zero()
veDelegation.lockedAmountinVe = BigDecimal.zero()
veDelegation.save() veDelegation.save()
} }
return veDelegation return veDelegation