diff --git a/src/mappings/veDelegation.ts b/src/mappings/veDelegation.ts index b4ea890..fa710af 100644 --- a/src/mappings/veDelegation.ts +++ b/src/mappings/veDelegation.ts @@ -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 @@ -42,12 +42,12 @@ export function handleExtendBoost(event: ExtendBoost): void { const _expireTime = event.params._expire_time const veDelegation = getveDelegation(_tokenId.toHex()) - 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.delegator = _delegator veDelegation.receiver = _receiver veDelegation.tokenId = _tokenId