Skip to content

Commit

Permalink
fix: remove referrer network check
Browse files Browse the repository at this point in the history
  • Loading branch information
DillonLin authored May 25, 2023
1 parent 3a762c0 commit f85123b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/containers/trade/TradeForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Spinner from '@lyra/ui/components/Spinner'
import Text from '@lyra/ui/components/Text'
import formatBalance from '@lyra/ui/utils/formatBalance'
import formatUSD from '@lyra/ui/utils/formatUSD'
import { Market, Network, Option, Position } from '@lyrafinance/lyra-js'
import { Market, Option, Position } from '@lyrafinance/lyra-js'
import React, { useCallback, useEffect, useMemo, useState } from 'react'

import AmountUpdateText from '@/app/components/common/AmountUpdateText'
Expand Down Expand Up @@ -101,7 +101,7 @@ const TradeForm = withSuspense(
isBaseCollateral,
// TODO: @dappbeast make slippage configurable
slippage: SLIPPAGE,
referrer: network === Network.Arbitrum && !!referrerAddress ? referrerAddress : undefined,
referrer: !!referrerAddress ? referrerAddress : undefined,
})

const pnl = useMemo(() => trade.pnl(), [trade])
Expand Down

0 comments on commit f85123b

Please sign in to comment.