removing comments
This commit is contained in:
parent
a5a60a4579
commit
8133e78b84
|
@ -465,7 +465,7 @@ type VeDelegation @entity {
|
|||
receiver: VeOCEAN!
|
||||
tokenId: BigInt!
|
||||
amount: BigInt!
|
||||
# amountFraction: BigDecimal!
|
||||
amountFraction: BigDecimal!
|
||||
cancelTime: BigInt!
|
||||
expireTime: BigInt!
|
||||
block: Int!
|
||||
|
|
|
@ -18,12 +18,12 @@ export function handleDelegation(event: DelegateBoost): void {
|
|||
const veDelegation = getveDelegation(_tokenId.toHex())
|
||||
veDelegation.delegator = _delegator
|
||||
getveOCEAN(_receiver)
|
||||
// const delegatorVeOcean = getveOCEAN(_delegator)
|
||||
// if (_amount && delegatorVeOcean.lockedAmount) {
|
||||
// veDelegation.amountFraction = _amount.divDecimal(
|
||||
// delegatorVeOcean.lockedAmount
|
||||
// )
|
||||
// }
|
||||
const delegatorVeOcean = getveOCEAN(_delegator)
|
||||
if (_amount && delegatorVeOcean.lockedAmount) {
|
||||
veDelegation.amountFraction = _amount.divDecimal(
|
||||
delegatorVeOcean.lockedAmount
|
||||
)
|
||||
}
|
||||
veDelegation.receiver = _receiver
|
||||
veDelegation.tokenId = _tokenId
|
||||
veDelegation.amount = _amount
|
||||
|
|
Loading…
Reference in New Issue