Skip to content

Commit

Permalink
Add swap transaction data for WETH to USDM on Arbitrum including rout…
Browse files Browse the repository at this point in the history
…e, fees, and transaction details.
  • Loading branch information
ylv-io committed Jan 7, 2025
1 parent b981eac commit 3af76f4
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions test/data/swap-weth-to-usdm-arb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"blockNumber": "21408912",
"buyAmount": "3895183627890566214383",
"buyToken": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c",
"fees": {
"integratorFee": null,
"zeroExFee": null,
"gasFee": null
},
"issues": {
"allowance": {
"actual": "83217",
"spender": "0x0000000000001ff3684f28c67538d4d072c22734"
},
"balance": {
"token": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"actual": "67412",
"expected": "1000000000000000000"
},
"simulationIncomplete": false,
"invalidSourcesPassed": []
},
"liquidityAvailable": true,
"minBuyAmount": "3856231791611660547900",
"route": {
"fills": [
{
"from": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"to": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
"source": "Uniswap_V3",
"proportionBps": "10000"
},
{
"from": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
"to": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"source": "WOOFi_V2",
"proportionBps": "10000"
},
{
"from": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"to": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c",
"source": "Curve",
"proportionBps": "10000"
}
],
"tokens": [
{
"address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"symbol": "WETH"
},
{
"address": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
"symbol": "WBTC"
},
{
"address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"symbol": "USDC"
},
{
"address": "0x59d9356e565ab3a36dd77763fc0d87feaf85508c",
"symbol": "USDM"
}
]
},
"sellAmount": "1000000000000000000",
"sellToken": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"tokenMetadata": {
"buyToken": {
"buyTaxBps": "0",
"sellTaxBps": "0"
},
"sellToken": {
"buyTaxBps": "0",
"sellTaxBps": "0"
}
},
"totalNetworkFee": "14007900000000",
"transaction": {
"to": "0x0000000000001ff3684f28c67538d4d072c22734",
"data": "0x2213bc0b000000000000000000000000f3e01012ce60bb95ae294d5b24a9fc3af245b53b00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000f3e01012ce60bb95ae294d5b24a9fc3af245b53b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000006641fff991f000000000000000000000000b7dfe09cf3950141dfb7db8abca90ddef8d06ec000000000000000000000000059d9356e565ab3a36dd77763fc0d87feaf85508c0000000000000000000000000000000000000000000000d10bf76f477531373c00000000000000000000000000000000000000000000000000000000000000a0d948b97cdacfe9371a1f156100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000018422ce6ede000000000000000000000000f3e01012ce60bb95ae294d5b24a9fc3af245b53b000000000000000000000000000000000000000000000000000000000000010000000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000675efb7f00000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c82af49447d8a07e3bd95bd0d56f35241523fbab1000001f42f2a2543b76a4166549f7aab2e75bef0aefc5b0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a438c9c1470000000000000000000000002f2a2543b76a4166549f7aab2e75bef0aefc5b0f00000000000000000000000000000000000000000000000000000000000027100000000000000000000000004c4af8dbc524681930a27b2f1af5bcc8062e6fb7000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c47dc203820000000000000000000000002f2a2543b76a4166549f7aab2e75bef0aefc5b0f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000003a1d060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f3e01012ce60bb95ae294d5b24a9fc3af245b53b0000000000000000000000005e01d320e95133d80dd59a2191c95728fa69036d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016438c9c147000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000027100000000000000000000000004bd135524897333bec344e50ddd85126554e58b4000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000843df021240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gas": "1400790",
"gasPrice": "10000000",
"value": "0"
},
"zid": "0xd948b97cdacfe9371a1f1561"
}

0 comments on commit 3af76f4

Please sign in to comment.