Skip to content

Instantly share code, notes, and snippets.

@keriat
Created September 24, 2024 17:52
Show Gist options
  • Save keriat/e40304aa73f489f2461ee45daaf555d3 to your computer and use it in GitHub Desktop.
Save keriat/e40304aa73f489f2461ee45daaf555d3 to your computer and use it in GitHub Desktop.
[
{
"in": {
"user_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_chain_id": 8453,
"to_chain_id": 42161,
"from_token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"to_token_address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"amount_in": "0.001335290564107857",
"superpositions_amount_in": "",
"superpositions_chain_id": 0,
"vault_id": "5SUdXKtvBYkCyCxnLfwlM",
"superform_id": "264648886265639676202961577305548718773316272188944394724771925",
"route_type": "output",
"exclude_bridges": [],
"exclude_dexes": [],
"exclude_ambs": [],
"exclude_liquidity_providers": [],
"bridge_slippage": 100,
"swap_slippage": 100,
"positive_slippage": 200,
"is_part_of_multi_vault": true,
"refund_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"need_insurance": false,
"filter_swap_routes": false,
"retain_4626": false,
"is_erc20": false,
"adjusted_amount": "1335290564107857",
"max_slippage": 395,
"permit2": "",
"vault_decimals": 18,
"vault_token": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"contract_address": "0x2b70238022589f17E7b266BC753E74027D57009F",
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_amount": "",
"form_implementation_id": "1",
"superform_address": "0x40499f550E2DfC9Cd41ADEf4fd55B952869F0855",
"destination": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"method": "",
"is_same_route": false,
"is_x_chain": true,
"transaction_type": "deposit",
"has_dst_swap": false,
"output_amount_for_withdraw": "",
"output_amount_normalized": "",
"super_positions": null,
"gas_estimate": {
"gas_price_usd": "0.0000000252",
"estimated_seconds": 10
}
},
"liq": {
"ok": true,
"vault_id": "5SUdXKtvBYkCyCxnLfwlM",
"route": {
"routes": [
{
"route_id": "cbba1e83-dcd4-4b16-ac23-77a35d198371",
"is_erc20": false,
"bridge_id": 101,
"from_chain_id": 8453,
"from_amount": "1335290564107857",
"from_token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chain_id": 8453,
"name": "ETH",
"logo_uri": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"to_chain_id": 42161,
"to_amount": "1308170949104991",
"to_amount_usd": "3.4413",
"to_amount_min": "1308170949104991",
"to_token": {
"address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"symbol": "WETH",
"decimals": 18,
"chain_id": 42161,
"name": "WETH",
"logo_uri": "https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png"
},
"to_address": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"gas_cost_usd": "0.0100",
"cross_chain_fee": 0.0713,
"has_swap": false,
"insurable_route": false,
"interim_token": "",
"interim_token_amount": "",
"erc20_route_approval_target": "",
"super_position": {
"amount": "1216880646966746",
"symbol": "fWETH",
"usd_value": 3.4163800055541214
},
"service": {
"name": "LiFi",
"logo": "https://li.fi/logo192.png"
},
"bridge": {
"name": "Across Via LiFi",
"logo": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
},
"dex": null,
"estimate_time": 15,
"lifi_route_first_step": {
"type": "lifi",
"id": "7c7586bc-c593-4de2-b78b-c8e0789f1ae2:0",
"tool": "across",
"toolDetails": {
"key": "across",
"name": "Across",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
},
"action": {
"fromToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromAmount": "1335290564107857",
"toToken": {
"address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"symbol": "WETH",
"decimals": 18,
"chainId": 42161,
"name": "WETH",
"coinKey": "WETH",
"priceUSD": "2630.6",
"logoURI": "https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png"
},
"fromChainId": 8453,
"toChainId": 42161,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"toAddress": "0x3721B0E122768CedDfB3Dec810E64c361177f826"
},
"estimate": {
"tool": "across",
"approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"toAmountMin": "1308170949104991",
"toAmount": "1308170949104991",
"fromAmount": "1335290564107857",
"feeCosts": [
{
"name": "Relayer fee",
"description": "The fee taken by the relayer",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"amount": "27119615002866",
"amountUSD": "0.0713",
"percentage": "0.0203",
"included": true
}
],
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "67000",
"limit": "210000",
"amount": "639458921000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 15,
"fromAmountUSD": "3.5126",
"toAmountUSD": "3.4413"
},
"includedSteps": [
{
"id": "ed916e0c-fc23-4799-a0bc-f8c3734a6fbf",
"type": "cross",
"action": {
"fromToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromAmount": "1335290564107857",
"toToken": {
"address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"symbol": "WETH",
"decimals": 18,
"chainId": 42161,
"name": "WETH",
"coinKey": "WETH",
"priceUSD": "2630.6",
"logoURI": "https://static.debank.com/image/era_token/logo_url/0x5aea5775959fbc2557cc8789bc1bf90a239d9a91/61844453e63cf81301f845d7864236f6.png"
},
"fromChainId": 8453,
"toChainId": 42161,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5"
},
"estimate": {
"tool": "across",
"approvalAddress": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64",
"toAmountMin": "1308170949104991",
"toAmount": "1308170949104991",
"fromAmount": "1335290564107857",
"feeCosts": [
{
"name": "Relayer fee",
"description": "The fee taken by the relayer",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"amount": "27119615002866",
"amountUSD": "0.0713",
"percentage": "0.0203",
"included": true
}
],
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "67000",
"limit": "487100",
"amount": "639458921000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 15,
"fromAmountUSD": "",
"toAmountUSD": ""
},
"tool": "across",
"toolDetails": {
"key": "across",
"name": "Across",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
}
}
],
"integrator": "superform.xyz",
"routesRequestId": ""
}
}
]
}
}
},
{
"in": {
"user_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_chain_id": 8453,
"to_chain_id": 137,
"from_token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"to_token_address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"amount_in": "0.001335290564107857",
"superpositions_amount_in": "",
"superpositions_chain_id": 0,
"vault_id": "A4XxY5yJNIpKtq7LsQiz6",
"superform_id": "859962937750442285289936294689474265028855193824216492199218",
"route_type": "output",
"exclude_bridges": [],
"exclude_dexes": [],
"exclude_ambs": [],
"exclude_liquidity_providers": [],
"bridge_slippage": 100,
"swap_slippage": 100,
"positive_slippage": 200,
"is_part_of_multi_vault": true,
"refund_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"need_insurance": false,
"filter_swap_routes": false,
"retain_4626": false,
"is_erc20": false,
"adjusted_amount": "1335290564107857",
"max_slippage": 395,
"permit2": "",
"vault_decimals": 6,
"vault_token": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"contract_address": "0x3bd8C987286D8Ad00c05fdb2Ae3E8C9a0f054734",
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_amount": "",
"form_implementation_id": "1",
"superform_address": "0xb021081d3B98b8Db2E087f3980798e74F65ecD32",
"destination": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"method": "",
"is_same_route": false,
"is_x_chain": true,
"transaction_type": "deposit",
"has_dst_swap": false,
"output_amount_for_withdraw": "",
"output_amount_normalized": "",
"super_positions": null,
"gas_estimate": {
"gas_price_usd": "0.0000000252",
"estimated_seconds": 10
}
},
"liq": {
"ok": true,
"vault_id": "A4XxY5yJNIpKtq7LsQiz6",
"route": {
"routes": [
{
"route_id": "b4cb9735-e7b7-4c2a-974a-316cb3a715c4",
"is_erc20": false,
"bridge_id": 5,
"from_chain_id": 8453,
"from_amount": "1335290564107857",
"from_token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chain_id": 8453,
"name": "Ethereum",
"logo_uri": "https://static.debank.com/image/coin/logo_url/eth/6443cdccced33e204d90cb723c632917.png"
},
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"to_chain_id": 137,
"to_amount": "3476594",
"to_amount_usd": "3.47372",
"to_amount_min": "3476594",
"to_token": {
"address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"symbol": "USDT",
"decimals": 6,
"chain_id": 137,
"name": "(PoS) Tether USD",
"logo_uri": ""
},
"to_address": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"gas_cost_usd": "0.0",
"cross_chain_fee": 0.03241426946994641,
"has_swap": false,
"insurable_route": false,
"interim_token": "",
"interim_token_amount": "",
"erc20_route_approval_target": "",
"super_position": {
"amount": "3289845",
"symbol": "ysUSDT",
"usd_value": 3.476563735220158
},
"service": {
"name": "Debridge",
"logo": "https://debridge.finance/blog/content/images/max/1200/1-ZYXa61adSl_QWrC9ftzEWg.png"
},
"bridge": null,
"dex": null,
"estimate_time": 3,
"lifi_route_first_step": null
}
]
}
}
},
{
"in": {
"user_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_chain_id": 8453,
"to_chain_id": 137,
"from_token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"to_token_address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"amount_in": "0.001335290564107857",
"superpositions_amount_in": "",
"superpositions_chain_id": 0,
"vault_id": "BPiZbZpfypJmvdt_2mpzR",
"superform_id": "859962937749575323260613496744337288283536178668600354168525",
"route_type": "output",
"exclude_bridges": [],
"exclude_dexes": [],
"exclude_ambs": [],
"exclude_liquidity_providers": [],
"bridge_slippage": 100,
"swap_slippage": 100,
"positive_slippage": 200,
"is_part_of_multi_vault": true,
"refund_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"need_insurance": false,
"filter_swap_routes": false,
"retain_4626": false,
"is_erc20": false,
"adjusted_amount": "1335290564107857",
"max_slippage": 395,
"permit2": "",
"vault_decimals": 18,
"vault_token": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"contract_address": "0x305F25377d0a39091e99B975558b1bdfC3975654",
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_amount": "",
"form_implementation_id": "1",
"superform_address": "0x18451C199Dea9563DE64A87b43045b0554E05ECD",
"destination": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"method": "",
"is_same_route": false,
"is_x_chain": true,
"transaction_type": "deposit",
"has_dst_swap": false,
"output_amount_for_withdraw": "",
"output_amount_normalized": "",
"super_positions": null,
"gas_estimate": {
"gas_price_usd": "0.0000000252",
"estimated_seconds": 10
}
},
"liq": {
"ok": true,
"vault_id": "BPiZbZpfypJmvdt_2mpzR",
"route": {
"routes": [
{
"route_id": "65f78cc5-7784-4a19-a2a2-fb9f408d6a9a",
"is_erc20": false,
"bridge_id": 101,
"from_chain_id": 8453,
"from_amount": "1335290564107857",
"from_token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chain_id": 8453,
"name": "ETH",
"logo_uri": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"to_chain_id": 137,
"to_amount": "1329377481565623",
"to_amount_usd": "3.4968",
"to_amount_min": "1329377481565623",
"to_token": {
"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"symbol": "WETH",
"decimals": 18,
"chain_id": 137,
"name": "Wrapped Ether",
"logo_uri": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"to_address": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"gas_cost_usd": "0.0100",
"cross_chain_fee": 0.0156,
"has_swap": false,
"insurable_route": false,
"interim_token": "",
"interim_token_amount": "",
"erc20_route_approval_target": "",
"super_position": {
"amount": "1260114950317821",
"symbol": "yvWETH-A",
"usd_value": 3.499848531737018
},
"service": {
"name": "LiFi",
"logo": "https://li.fi/logo192.png"
},
"bridge": {
"name": "Across Via LiFi",
"logo": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
},
"dex": null,
"estimate_time": 15,
"lifi_route_first_step": {
"type": "lifi",
"id": "9e1728c6-f353-4072-8bb6-fb892b9e507f:0",
"tool": "across",
"toolDetails": {
"key": "across",
"name": "Across",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
},
"action": {
"fromToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromAmount": "1335290564107857",
"toToken": {
"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"symbol": "WETH",
"decimals": 18,
"chainId": 137,
"name": "Wrapped Ether",
"coinKey": "WETH",
"priceUSD": "2630.39",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromChainId": 8453,
"toChainId": 137,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"toAddress": "0x3721B0E122768CedDfB3Dec810E64c361177f826"
},
"estimate": {
"tool": "across",
"approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"toAmountMin": "1329377481565623",
"toAmount": "1329377481565623",
"fromAmount": "1335290564107857",
"feeCosts": [
{
"name": "Relayer fee",
"description": "The fee taken by the relayer",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"amount": "5913082542234",
"amountUSD": "0.0156",
"percentage": "0.0044",
"included": true
}
],
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "67000",
"limit": "210000",
"amount": "639458921000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 15,
"fromAmountUSD": "3.5126",
"toAmountUSD": "3.4968"
},
"includedSteps": [
{
"id": "8394999f-1601-4a20-a41d-2c5a748f3189",
"type": "cross",
"action": {
"fromToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromAmount": "1335290564107857",
"toToken": {
"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"symbol": "WETH",
"decimals": 18,
"chainId": 137,
"name": "Wrapped Ether",
"coinKey": "WETH",
"priceUSD": "2630.39",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromChainId": 8453,
"toChainId": 137,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5"
},
"estimate": {
"tool": "across",
"approvalAddress": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64",
"toAmountMin": "1329377481565623",
"toAmount": "1329377481565623",
"fromAmount": "1335290564107857",
"feeCosts": [
{
"name": "Relayer fee",
"description": "The fee taken by the relayer",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"amount": "5913082542234",
"amountUSD": "0.0156",
"percentage": "0.0044",
"included": true
}
],
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "67000",
"limit": "487100",
"amount": "639458921000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 15,
"fromAmountUSD": "",
"toAmountUSD": ""
},
"tool": "across",
"toolDetails": {
"key": "across",
"name": "Across",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
}
}
],
"integrator": "superform.xyz",
"routesRequestId": ""
}
}
]
}
}
},
{
"in": {
"user_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_chain_id": 8453,
"to_chain_id": 137,
"from_token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"to_token_address": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"amount_in": "0.001335290564107857",
"superpositions_amount_in": "",
"superpositions_chain_id": 0,
"vault_id": "QQo0InIWQufEl-AOXJtjQ",
"superform_id": "859962937749970702354453593581771611250126398907192305195364",
"route_type": "output",
"exclude_bridges": [],
"exclude_dexes": [],
"exclude_ambs": [],
"exclude_liquidity_providers": [],
"bridge_slippage": 100,
"swap_slippage": 100,
"positive_slippage": 200,
"is_part_of_multi_vault": true,
"refund_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"need_insurance": false,
"filter_swap_routes": false,
"retain_4626": false,
"is_erc20": false,
"adjusted_amount": "1335290564107857",
"max_slippage": 395,
"permit2": "",
"vault_decimals": 18,
"vault_token": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"contract_address": "0x90b2f54C6aDDAD41b8f6c4fCCd555197BC0F773B",
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"from_amount": "",
"form_implementation_id": "1",
"superform_address": "0x5d868581B8F7Eca0f3d1B34E815889555E2B1964",
"destination": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"method": "",
"is_same_route": false,
"is_x_chain": true,
"transaction_type": "deposit",
"has_dst_swap": false,
"output_amount_for_withdraw": "",
"output_amount_normalized": "",
"super_positions": null,
"gas_estimate": {
"gas_price_usd": "0.0000000252",
"estimated_seconds": 10
}
},
"liq": {
"ok": true,
"vault_id": "QQo0InIWQufEl-AOXJtjQ",
"route": {
"routes": [
{
"route_id": "40a2cb60-0458-47c9-9ae3-065fe3843f15",
"is_erc20": false,
"bridge_id": 101,
"from_chain_id": 8453,
"from_amount": "1335290564107857",
"from_token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chain_id": 8453,
"name": "ETH",
"logo_uri": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"from_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"to_chain_id": 137,
"to_amount": "3516354565739953805",
"to_amount_usd": "3.5164",
"to_amount_min": "3481191020082554267",
"to_token": {
"address": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"symbol": "DAI",
"decimals": 18,
"chain_id": 137,
"name": "(PoS) DAI Stablecoin",
"logo_uri": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"to_address": "0x3721B0E122768CedDfB3Dec810E64c361177f826",
"gas_cost_usd": "0.0100",
"cross_chain_fee": 0.0217,
"has_swap": false,
"insurable_route": false,
"interim_token": "",
"interim_token_amount": "",
"erc20_route_approval_target": "",
"super_position": {
"amount": "3122461909831770624",
"symbol": "yvDAI-A",
"usd_value": 3.516212629131065
},
"service": {
"name": "LiFi",
"logo": "https://li.fi/logo192.png"
},
"bridge": {
"name": "Across Via LiFi",
"logo": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
},
"dex": null,
"estimate_time": 45,
"lifi_route_first_step": {
"type": "lifi",
"id": "a7a1d8f8-0f6b-46a5-af0c-30c15bf5c0ea:0",
"tool": "across",
"toolDetails": {
"key": "across",
"name": "Across",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
},
"action": {
"fromToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromAmount": "1335290564107857",
"toToken": {
"address": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"symbol": "DAI",
"decimals": 18,
"chainId": 137,
"name": "(PoS) DAI Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"fromChainId": 8453,
"toChainId": 137,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5",
"toAddress": "0x3721B0E122768CedDfB3Dec810E64c361177f826"
},
"estimate": {
"tool": "across",
"approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"toAmountMin": "3481191020082554267",
"toAmount": "3516354565739953805",
"fromAmount": "1335290564107857",
"feeCosts": [
{
"name": "Relayer fee",
"description": "The fee taken by the relayer",
"token": {
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"symbol": "DAI",
"decimals": 18,
"chainId": 8453,
"name": "DAI Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"amount": "21737593847602422",
"amountUSD": "0.0217",
"percentage": "0.0061",
"included": true
}
],
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "376000",
"limit": "619000",
"amount": "3588605288000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 45,
"fromAmountUSD": "3.5126",
"toAmountUSD": "3.5164"
},
"includedSteps": [
{
"id": "194550c3-f34c-412c-8ff0-e37b6ad5989e",
"type": "swap",
"action": {
"fromToken": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
},
"fromAmount": "1335290564107857",
"toToken": {
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"symbol": "DAI",
"decimals": 18,
"chainId": 8453,
"name": "DAI Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"fromChainId": 8453,
"toChainId": 8453,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5"
},
"estimate": {
"tool": "kyberswap",
"approvalAddress": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"toAmountMin": "3502711237991680665",
"toAmount": "3538092159587556227",
"fromAmount": "1335290564107857",
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "290000",
"limit": "777000",
"amount": "2767807270000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 30,
"fromAmountUSD": "",
"toAmountUSD": ""
},
"tool": "kyberswap",
"toolDetails": {
"key": "kyberswap",
"name": "Kyberswap",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/kyberswap.png"
}
},
{
"id": "3b504b13-f38b-49e1-88ea-3ad0baa727f3",
"type": "cross",
"action": {
"fromToken": {
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"symbol": "DAI",
"decimals": 18,
"chainId": 8453,
"name": "DAI Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"fromAmount": "3538092159587556227",
"toToken": {
"address": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
"symbol": "DAI",
"decimals": 18,
"chainId": 137,
"name": "(PoS) DAI Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"fromChainId": 8453,
"toChainId": 137,
"slippage": 0.01,
"fromAddress": "0x9bb54B42fA50131905897899873bD15fB3C02ad5"
},
"estimate": {
"tool": "across",
"approvalAddress": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64",
"toAmountMin": "3516354565739953805",
"toAmount": "3516354565739953805",
"fromAmount": "3538092159587556227",
"feeCosts": [
{
"name": "Relayer fee",
"description": "The fee taken by the relayer",
"token": {
"address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"symbol": "DAI",
"decimals": 18,
"chainId": 8453,
"name": "DAI Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png"
},
"amount": "21737593847602422",
"amountUSD": "0.0217",
"percentage": "0.0061",
"included": true
}
],
"gasCosts": [
{
"type": "SEND",
"price": "9544163",
"estimate": "86000",
"limit": "511800",
"amount": "820798018000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"decimals": 18,
"chainId": 8453,
"name": "ETH",
"coinKey": "ETH",
"priceUSD": "2630.6",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png"
}
}
],
"toolData": {
"fromToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toToken": {
"address": "",
"symbol": "",
"decimals": 0,
"chainId": 0,
"name": "",
"coinKey": ""
},
"toTokenAmount": "",
"fromTokenAmount": "",
"estimatedGas": 0
},
"executionDuration": 15,
"fromAmountUSD": "",
"toAmountUSD": ""
},
"tool": "across",
"toolDetails": {
"key": "across",
"name": "Across",
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png"
}
}
],
"integrator": "superform.xyz",
"routesRequestId": ""
}
}
]
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment