Skip to content

Commit

Permalink
don't check price with pinksale parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tsarbuig committed Feb 12, 2022
1 parent c989b4f commit 3716305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sniper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2937,7 +2937,8 @@ def wait_for_open_trade(token, inToken, outToken, parameter):
openTrade = False

# We store the initial token price by running check_price() once
token['_PREVIOUS_QUOTE'] = check_price(inToken, outToken, token['USECUSTOMBASEPAIR'], token['LIQUIDITYINNATIVETOKEN'], int(token['_CONTRACT_DECIMALS']), int(token['_BASE_DECIMALS']))
if parameter != 'pinksale':
token['_PREVIOUS_QUOTE'] = check_price(inToken, outToken, token['USECUSTOMBASEPAIR'], token['LIQUIDITYINNATIVETOKEN'], int(token['_CONTRACT_DECIMALS']), int(token['_BASE_DECIMALS']))

# If we look for Pinksale sales, we look into the Presale Address's transactions for 0x4bb278f3 methodID
if parameter == 'pinksale':
Expand Down

0 comments on commit 3716305

Please sign in to comment.