mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
fix more instances of using !==
This commit is contained in:
parent
6e02738d9b
commit
d097ddfd57
@ -69,7 +69,7 @@ export function handleTransfer(event: Transfer): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
tokenBalanceTo !== null &&
|
tokenBalanceTo != null &&
|
||||||
tokenBalanceTo.balance.notEqual(ZERO_BD) &&
|
tokenBalanceTo.balance.notEqual(ZERO_BD) &&
|
||||||
oldBalanceTo.equals(ZERO_BD)
|
oldBalanceTo.equals(ZERO_BD)
|
||||||
) {
|
) {
|
||||||
@ -77,7 +77,7 @@ export function handleTransfer(event: Transfer): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
tokenBalanceFrom !== null &&
|
tokenBalanceFrom != null &&
|
||||||
tokenBalanceFrom.balance.equals(ZERO_BD) &&
|
tokenBalanceFrom.balance.equals(ZERO_BD) &&
|
||||||
oldBalanceFrom.notEqual(ZERO_BD)
|
oldBalanceFrom.notEqual(ZERO_BD)
|
||||||
) {
|
) {
|
||||||
@ -115,7 +115,7 @@ export function handleOrderStarted(event: OrderStarted): void {
|
|||||||
order.timestamp = event.params.timestamp.toI32()
|
order.timestamp = event.params.timestamp.toI32()
|
||||||
if (
|
if (
|
||||||
event.params.mrktFeeCollector != null &&
|
event.params.mrktFeeCollector != null &&
|
||||||
event.params.mrktFeeCollector.toHex() !== ZERO_ADDRESS
|
event.params.mrktFeeCollector.toHex() != ZERO_ADDRESS
|
||||||
) {
|
) {
|
||||||
order.marketFeeCollector = event.params.mrktFeeCollector.toHexString()
|
order.marketFeeCollector = event.params.mrktFeeCollector.toHexString()
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ export function _handleRebind(
|
|||||||
const pool = Pool.load(poolId)
|
const pool = Pool.load(poolId)
|
||||||
const decimals = BigInt.fromI32(18).toI32()
|
const decimals = BigInt.fromI32(18).toI32()
|
||||||
|
|
||||||
if (tokenAddress !== OCEAN) {
|
if (tokenAddress != OCEAN) {
|
||||||
pool.datatokenAddress = tokenAddress
|
pool.datatokenAddress = tokenAddress
|
||||||
}
|
}
|
||||||
pool.tokenCount += BigInt.fromI32(1)
|
pool.tokenCount += BigInt.fromI32(1)
|
||||||
@ -470,7 +470,7 @@ export function handleTransfer(event: Transfer): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
poolShareTo !== null &&
|
poolShareTo != null &&
|
||||||
poolShareTo.balance.notEqual(ZERO_BD) &&
|
poolShareTo.balance.notEqual(ZERO_BD) &&
|
||||||
poolShareToBalance.equals(ZERO_BD)
|
poolShareToBalance.equals(ZERO_BD)
|
||||||
) {
|
) {
|
||||||
@ -478,7 +478,7 @@ export function handleTransfer(event: Transfer): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
poolShareFrom !== null &&
|
poolShareFrom != null &&
|
||||||
poolShareFrom.balance.equals(ZERO_BD) &&
|
poolShareFrom.balance.equals(ZERO_BD) &&
|
||||||
poolShareFromBalance.notEqual(ZERO_BD)
|
poolShareFromBalance.notEqual(ZERO_BD)
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user