Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix (#999)
  • Loading branch information
ivandzen authored Oct 26, 2022
commit ef4421759329ddce1384bbb0b4a751c753651de7
7 changes: 5 additions & 2 deletions proxy/airdropper/airdropper.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def __init__(self,
self.failed_attempts = FailedAttempts()
self.airdrop_scheduled = SQLDict(tablename="airdrop_scheduled")
self.wrapper_whitelist = wrapper_whitelist
if isinstance(self.wrapper_whitelist, list):
self.wrapper_whitelist = [str(entry).lower() for entry in self.wrapper_whitelist]

self.faucet_url = faucet_url
self.recent_price = None

Expand Down Expand Up @@ -119,10 +122,10 @@ def try_update_pyth_mapping(self):
return True

# helper function checking if given contract address is in whitelist
def is_allowed_wrapper_contract(self, contract_addr):
def is_allowed_wrapper_contract(self, contract_addr: str):
if self.wrapper_whitelist == 'ANY':
return True
return contract_addr in self.wrapper_whitelist
return contract_addr.lower() in self.wrapper_whitelist


# helper function checking if given 'approve' corresponds to 'call' instruction
Expand Down