Skip to content

Commit

Permalink
Making sure the sender address is oracle_address in fetchDynamicSwapP…
Browse files Browse the repository at this point in the history
…rice()
  • Loading branch information
Vivek Teega committed Apr 24, 2023
1 parent ba80ae4 commit a35b35d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tracktokens_smartcontracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def fetchDynamicSwapPrice(contractStructure, transaction_data, blockinfo):
# and receiver address should be contractAddress
try:
assert transaction_data['receiverAddress'] == contractStructure['contractAddress']
assert transaction_data['senderAddress'] == oracle_address
floData = json.loads(floData)
# Check if the contract name and address are right
assert floData['price-update']['contract-name'] == contractStructure['contractName']
Expand Down

0 comments on commit a35b35d

Please sign in to comment.