Add received_token_address to liquidation object
This commit is contained in:
parent
f84d192053
commit
aa5a72b189
@ -73,6 +73,7 @@ def get_aave_liquidations(
|
||||
debt_purchase_amount=trace.inputs["_purchaseAmount"],
|
||||
protocol=Protocol.aave,
|
||||
received_amount=received_amount,
|
||||
received_token_address=received_token_address,
|
||||
transaction_hash=trace.transaction_hash,
|
||||
trace_address=trace.trace_address,
|
||||
block_number=trace.block_number,
|
||||
|
File diff suppressed because one or more lines are too long
@ -10,6 +10,7 @@ class Liquidation(BaseModel):
|
||||
debt_token_address: str
|
||||
debt_purchase_amount: int
|
||||
received_amount: int
|
||||
received_token_address: str
|
||||
protocol: Protocol
|
||||
transaction_hash: str
|
||||
trace_address: List[int]
|
||||
|
@ -22,6 +22,7 @@ def test_single_weth_liquidation():
|
||||
debt_token_address="0xdac17f958d2ee523a2206206994597c13d831ec7",
|
||||
debt_purchase_amount=26503300291,
|
||||
received_amount=8182733924513576561,
|
||||
received_token_address="0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
||||
protocol=Protocol.aave,
|
||||
transaction_hash=transaction_hash,
|
||||
trace_address=[1, 1, 6],
|
||||
@ -52,6 +53,7 @@ def test_single_liquidation():
|
||||
debt_token_address="0xdac17f958d2ee523a2206206994597c13d831ec7",
|
||||
debt_purchase_amount=1069206535,
|
||||
received_amount=2657946947610159065393,
|
||||
received_token_address="0x80fb784b7ed66730e8b1dbd9820afd29931aab03",
|
||||
protocol=Protocol.aave,
|
||||
transaction_hash=transaction_hash,
|
||||
trace_address=[0, 7, 1, 0, 6],
|
||||
@ -81,6 +83,7 @@ def test_multiple_liquidations_in_block():
|
||||
debt_token_address="0x4fabb145d64652a948d72533023f6e7a623c7c53",
|
||||
debt_purchase_amount=457700000000000000000,
|
||||
received_amount=10111753901939162887,
|
||||
received_token_address="0x514910771af9ca656af840dff83e8264ecf986ca",
|
||||
protocol=Protocol.aave,
|
||||
transaction_hash=transaction1,
|
||||
trace_address=[],
|
||||
@ -94,6 +97,7 @@ def test_multiple_liquidations_in_block():
|
||||
debt_token_address="0x0000000000085d4780b73119b644ae5ecd22b376",
|
||||
debt_purchase_amount=497030000000000000000,
|
||||
received_amount=21996356316098208090,
|
||||
received_token_address="0x514910771af9ca656af840dff83e8264ecf986ca",
|
||||
protocol=Protocol.aave,
|
||||
transaction_hash=transaction2,
|
||||
trace_address=[],
|
||||
@ -107,6 +111,7 @@ def test_multiple_liquidations_in_block():
|
||||
debt_token_address="0x57ab1ec28d129707052df4df418d58a2d46d5f51",
|
||||
debt_purchase_amount=447810000000000000000,
|
||||
received_amount=121531358145247546,
|
||||
received_token_address="0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
|
||||
protocol=Protocol.aave,
|
||||
transaction_hash=transaction3,
|
||||
trace_address=[],
|
||||
|
Loading…
x
Reference in New Issue
Block a user