check that swaps involve both pool assets (#328)
Co-authored-by: pintail <you@example.com>
This commit is contained in:
parent
297afec364
commit
b6777a25dc
@ -94,6 +94,9 @@ def create_swap_from_pool_transfers(
|
||||
transfer_in = transfers_to_pool[-1]
|
||||
transfer_out = transfers_from_pool_to_recipient[0]
|
||||
|
||||
if transfer_in.token_address == transfer_out.token_address:
|
||||
return None
|
||||
|
||||
return Swap(
|
||||
abi_name=trace.abi_name,
|
||||
transaction_hash=trace.transaction_hash,
|
||||
|
Loading…
x
Reference in New Issue
Block a user