fix more instances of using `!==`

This commit is contained in:
ssallam 2021-01-19 14:02:15 +01:00
parent 6e02738d9b
commit d097ddfd57
2 changed files with 6 additions and 6 deletions

View File

@ -69,7 +69,7 @@ export function handleTransfer(event: Transfer): void {
}
if (
tokenBalanceTo !== null &&
tokenBalanceTo != null &&
tokenBalanceTo.balance.notEqual(ZERO_BD) &&
oldBalanceTo.equals(ZERO_BD)
) {
@ -77,7 +77,7 @@ export function handleTransfer(event: Transfer): void {
}
if (
tokenBalanceFrom !== null &&
tokenBalanceFrom != null &&
tokenBalanceFrom.balance.equals(ZERO_BD) &&
oldBalanceFrom.notEqual(ZERO_BD)
) {
@ -115,7 +115,7 @@ export function handleOrderStarted(event: OrderStarted): void {
order.timestamp = event.params.timestamp.toI32()
if (
event.params.mrktFeeCollector != null &&
event.params.mrktFeeCollector.toHex() !== ZERO_ADDRESS
event.params.mrktFeeCollector.toHex() != ZERO_ADDRESS
) {
order.marketFeeCollector = event.params.mrktFeeCollector.toHexString()
}

View File

@ -86,7 +86,7 @@ export function _handleRebind(
const pool = Pool.load(poolId)
const decimals = BigInt.fromI32(18).toI32()
if (tokenAddress !== OCEAN) {
if (tokenAddress != OCEAN) {
pool.datatokenAddress = tokenAddress
}
pool.tokenCount += BigInt.fromI32(1)
@ -470,7 +470,7 @@ export function handleTransfer(event: Transfer): void {
}
if (
poolShareTo !== null &&
poolShareTo != null &&
poolShareTo.balance.notEqual(ZERO_BD) &&
poolShareToBalance.equals(ZERO_BD)
) {
@ -478,7 +478,7 @@ export function handleTransfer(event: Transfer): void {
}
if (
poolShareFrom !== null &&
poolShareFrom != null &&
poolShareFrom.balance.equals(ZERO_BD) &&
poolShareFromBalance.notEqual(ZERO_BD)
) {