Skip to content

Instantly share code, notes, and snippets.

@lfrocha12
Created September 11, 2024 02:22
Show Gist options
  • Save lfrocha12/26d7db60ca7d1d3c000a2295643f6f5d to your computer and use it in GitHub Desktop.
Save lfrocha12/26d7db60ca7d1d3c000a2295643f6f5d to your computer and use it in GitHub Desktop.
BitFlow SDK -- getQuoteForRoute('token-stx', 'token-ststx', 1)
{
"bestRoute": {
"route": {
"dex_path": [
"BITFLOW_XYK_YX",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"shareFeeContract": null,
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "get-quote-a",
"parameters": {
"amount": "1000000",
"id": 8,
"order": [
"amount",
"pool-trait",
"xyk-reversed",
"id",
"swap-fee-den",
"swap-fee-num",
"velar-reversed"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"swap-fee": {
"den": 1000,
"num": 997
},
"velar-reversed": true,
"xyk-reversed": false
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "swap-helper-a",
"parameters": {
"amount": "1000000",
"id": 8,
"min-received": "970010",
"order": [
"amount",
"min-received",
"pool-trait",
"x-token-trait",
"y-token-trait",
"xyk-reversed",
"id",
"token0",
"token1",
"token-in",
"token-out",
"share-fee-to"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-in": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-out": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token0": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token1": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"x-token-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.token-stx-v-1-1",
"xyk-reversed": false,
"y-token-trait": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"dx": "1000000",
"dy": "1000000",
"amt-in": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-dy": "970010",
"min-dz": "970010",
"min-dw": "970010",
"amt-out": "970010",
"amt-out-min": "970010",
"min-x-amount": "970010",
"min-dv": "970010",
"min-y-amount": "970010",
"min-dx": "970010"
}
},
"token_path": [
"token-stx",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.97001,
"params": {
"amount": "1000000",
"id": 8,
"order": [
"amount",
"pool-trait",
"xyk-reversed",
"id",
"swap-fee-den",
"swap-fee-num",
"velar-reversed"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"swap-fee": {
"den": 1000,
"num": 997
},
"velar-reversed": true,
"xyk-reversed": false
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "get-quote-a",
"parameters": {
"amount": "1000000",
"id": 8,
"order": [
"amount",
"pool-trait",
"xyk-reversed",
"id",
"swap-fee-den",
"swap-fee-num",
"velar-reversed"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"swap-fee": {
"den": 1000,
"num": 997
},
"velar-reversed": true,
"xyk-reversed": false
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "swap-helper-a",
"parameters": {
"amount": "1000000",
"id": 8,
"min-received": "970010",
"order": [
"amount",
"min-received",
"pool-trait",
"x-token-trait",
"y-token-trait",
"xyk-reversed",
"id",
"token0",
"token1",
"token-in",
"token-out",
"share-fee-to"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-in": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-out": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token0": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token1": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"x-token-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.token-stx-v-1-1",
"xyk-reversed": false,
"y-token-trait": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"dx": "1000000",
"dy": "1000000",
"amt-in": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-dy": "970010",
"min-dz": "970010",
"min-dw": "970010",
"amt-out": "970010",
"amt-out-min": "970010",
"min-x-amount": "970010",
"min-dv": "970010",
"min-y-amount": "970010",
"min-dx": "970010"
}
},
"dexPath": [
"BITFLOW_XYK_YX",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
"allRoutes": [
{
"route": {
"dex_path": [
"BITFLOW_XYK_YX",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"shareFeeContract": null,
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "get-quote-a",
"parameters": {
"amount": "1000000",
"id": 8,
"order": [
"amount",
"pool-trait",
"xyk-reversed",
"id",
"swap-fee-den",
"swap-fee-num",
"velar-reversed"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"swap-fee": {
"den": 1000,
"num": 997
},
"velar-reversed": true,
"xyk-reversed": false
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "swap-helper-a",
"parameters": {
"amount": "1000000",
"id": 8,
"min-received": "970010",
"order": [
"amount",
"min-received",
"pool-trait",
"x-token-trait",
"y-token-trait",
"xyk-reversed",
"id",
"token0",
"token1",
"token-in",
"token-out",
"share-fee-to"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-in": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-out": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token0": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token1": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"x-token-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.token-stx-v-1-1",
"xyk-reversed": false,
"y-token-trait": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"dx": "1000000",
"dy": "1000000",
"amt-in": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-dy": "970010",
"min-dz": "970010",
"min-dw": "970010",
"amt-out": "970010",
"amt-out-min": "970010",
"min-x-amount": "970010",
"min-dv": "970010",
"min-y-amount": "970010",
"min-dx": "970010"
}
},
"token_path": [
"token-stx",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.97001,
"params": {
"amount": "1000000",
"id": 8,
"order": [
"amount",
"pool-trait",
"xyk-reversed",
"id",
"swap-fee-den",
"swap-fee-num",
"velar-reversed"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"swap-fee": {
"den": 1000,
"num": 997
},
"velar-reversed": true,
"xyk-reversed": false
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "get-quote-a",
"parameters": {
"amount": "1000000",
"id": 8,
"order": [
"amount",
"pool-trait",
"xyk-reversed",
"id",
"swap-fee-den",
"swap-fee-num",
"velar-reversed"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"swap-fee": {
"den": 1000,
"num": 997
},
"velar-reversed": true,
"xyk-reversed": false
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1",
"function": "swap-helper-a",
"parameters": {
"amount": "1000000",
"id": 8,
"min-received": "970010",
"order": [
"amount",
"min-received",
"pool-trait",
"x-token-trait",
"y-token-trait",
"xyk-reversed",
"id",
"token0",
"token1",
"token-in",
"token-out",
"share-fee-to"
],
"pool-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1",
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-in": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-out": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token0": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"token1": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"x-token-trait": "SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.token-stx-v-1-1",
"xyk-reversed": false,
"y-token-trait": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"dx": "1000000",
"dy": "1000000",
"amt-in": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-dy": "970010",
"min-dz": "970010",
"min-dw": "970010",
"amt-out": "970010",
"amt-out-min": "970010",
"min-x-amount": "970010",
"min-dv": "970010",
"min-y-amount": "970010",
"min-dx": "970010"
}
},
"dexPath": [
"BITFLOW_XYK_YX",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"ALEX",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-vault-v2-01",
"shareFeeContract": null,
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "get-quote-a",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-waeusdc"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"b": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "swap-helper-a",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-waeusdc"
},
"amount": "100000000",
"min-received": "968952",
"order": [
"amount",
"min-received",
"swaps-reversed",
"v-tokens",
"v-share-fee-to",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"v-tokens": {
"a": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"b": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"dx": "100000000",
"dy": "100000000",
"amt-in": "100000000",
"amt-in-max": "100000000",
"y-amount": "100000000",
"x-amount": "100000000",
"min-dy": "968952",
"min-dz": "968952",
"min-dw": "968952",
"amt-out": "968952",
"amt-out-min": "968952",
"min-x-amount": "968952",
"min-dv": "968952",
"min-y-amount": "968952",
"min-dx": "968952"
}
},
"token_path": [
"token-stx",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.968952,
"params": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-waeusdc"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"b": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "get-quote-a",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-waeusdc"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"b": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "swap-helper-a",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-waeusdc"
},
"amount": "100000000",
"min-received": "968952",
"order": [
"amount",
"min-received",
"swaps-reversed",
"v-tokens",
"v-share-fee-to",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"v-tokens": {
"a": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"b": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"dx": "100000000",
"dy": "100000000",
"amt-in": "100000000",
"amt-in-max": "100000000",
"y-amount": "100000000",
"x-amount": "100000000",
"min-dy": "968952",
"min-dz": "968952",
"min-dw": "968952",
"amt-out": "968952",
"amt-out-min": "968952",
"min-x-amount": "968952",
"min-dv": "968952",
"min-y-amount": "968952",
"min-dx": "968952"
}
},
"dexPath": [
"ALEX",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 8,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"BITFLOW_STABLE_STSTX_XY"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-stx-ststx-v-1-2",
"shareFeeContract": null,
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-stx-ststx-v-1-2",
"function": "get-dy",
"parameters": {
"StxToken": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"lp-token": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stx-ststx-lp-token-v-1-2",
"order": [
"y-token",
"lp-token",
"x-amount"
],
"stStxToken": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"x-amount": "1000000",
"y-token": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-stx-ststx-v-1-2",
"function": "swap-x-for-y",
"parameters": {
"lp-token": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stx-ststx-lp-token-v-1-2",
"min-y-amount": "968460",
"order": [
"y-token",
"lp-token",
"x-amount",
"min-y-amount"
],
"x-amount": "1000000",
"y-token": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"min-received": "968460",
"min-dy": "968460",
"min-dz": "968460",
"min-dw": "968460",
"amt-out": "968460",
"amt-out-min": "968460",
"min-x-amount": "968460",
"min-dv": "968460",
"min-dx": "968460"
}
},
"token_path": [
"token-stx",
"token-ststx"
]
},
"quote": 0.96846,
"params": {
"StxToken": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"lp-token": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stx-ststx-lp-token-v-1-2",
"order": [
"y-token",
"lp-token",
"x-amount"
],
"stStxToken": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"x-amount": "1000000",
"y-token": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-stx-ststx-v-1-2",
"function": "get-dy",
"parameters": {
"StxToken": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"lp-token": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stx-ststx-lp-token-v-1-2",
"order": [
"y-token",
"lp-token",
"x-amount"
],
"stStxToken": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"x-amount": "1000000",
"y-token": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-stx-ststx-v-1-2",
"function": "swap-x-for-y",
"parameters": {
"lp-token": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stx-ststx-lp-token-v-1-2",
"min-y-amount": "968460",
"order": [
"y-token",
"lp-token",
"x-amount",
"min-y-amount"
],
"x-amount": "1000000",
"y-token": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"min-received": "968460",
"min-dy": "968460",
"min-dz": "968460",
"min-dw": "968460",
"amt-out": "968460",
"amt-out-min": "968460",
"min-x-amount": "968460",
"min-dv": "968460",
"min-dx": "968460"
}
},
"dexPath": [
"BITFLOW_STABLE_STSTX_XY"
],
"tokenPath": [
"token-stx",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"VELAR",
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"tokenDecimals": 6,
"tokenName": "velar"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"tokenDecimals": 6,
"tokenName": "velar"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"4": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"5": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
21,
22,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "967529",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "967529",
"min-dy": "967529",
"min-dz": "967529",
"min-dw": "967529",
"amt-out": "967529",
"min-x-amount": "967529",
"min-dv": "967529",
"min-y-amount": "967529",
"min-dx": "967529"
}
},
"token_path": [
"token-stx",
"token-velar",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.967529,
"params": {
"amt-in": "1000000",
"ids": [
21,
22,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
21,
22,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "967529",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.velar-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "967529",
"min-dy": "967529",
"min-dz": "967529",
"min-dw": "967529",
"amt-out": "967529",
"min-x-amount": "967529",
"min-dv": "967529",
"min-y-amount": "967529",
"min-dx": "967529"
}
},
"dexPath": [
"VELAR",
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-velar",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-3",
"parameters": {
"amt-in": "1000000",
"order": [
"amt-in",
"token-a",
"token-b",
"token-c"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-3",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "965425",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "965425",
"min-dy": "965425",
"min-dz": "965425",
"min-dw": "965425",
"amt-out": "965425",
"min-x-amount": "965425",
"min-dv": "965425",
"min-y-amount": "965425",
"min-dx": "965425"
}
},
"token_path": [
"token-stx",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.965425,
"params": {
"amt-in": "1000000",
"order": [
"amt-in",
"token-a",
"token-b",
"token-c"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-3",
"parameters": {
"amt-in": "1000000",
"order": [
"amt-in",
"token-a",
"token-b",
"token-c"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-3",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "965425",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "965425",
"min-dy": "965425",
"min-dz": "965425",
"min-dw": "965425",
"amt-out": "965425",
"min-x-amount": "965425",
"min-dv": "965425",
"min-y-amount": "965425",
"min-dx": "965425"
}
},
"dexPath": [
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"VELAR",
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"tokenDecimals": 6,
"tokenName": "leo"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"tokenDecimals": 6,
"tokenName": "leo"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"4": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"5": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
28,
9,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "963575",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "963575",
"min-dy": "963575",
"min-dz": "963575",
"min-dw": "963575",
"amt-out": "963575",
"min-x-amount": "963575",
"min-dv": "963575",
"min-y-amount": "963575",
"min-dx": "963575"
}
},
"token_path": [
"token-stx",
"token-leo",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.963575,
"params": {
"amt-in": "1000000",
"ids": [
28,
9,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
28,
9,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "963575",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "963575",
"min-dy": "963575",
"min-dz": "963575",
"min-dw": "963575",
"amt-out": "963575",
"min-x-amount": "963575",
"min-dv": "963575",
"min-y-amount": "963575",
"min-dx": "963575"
}
},
"dexPath": [
"VELAR",
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-leo",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"ALEX",
"ALEX",
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-vault-v2-01",
"shareFeeContract": null,
"tokenContract": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"tokenDecimals": 8,
"tokenName": "alex"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"tokenDecimals": 8,
"tokenName": "alex"
},
"3": {
"dikoStx": null,
"senderAddress": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-vault-v2-01",
"shareFeeContract": null,
"tokenContract": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"tokenDecimals": 6,
"tokenName": "leo"
},
"4": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"tokenDecimals": 6,
"tokenName": "leo"
},
"5": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"6": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"7": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "get-quote-f",
"parameters": {
"a-factors": {
"a": 100000000,
"b": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"c": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wleo"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "swap-helper-f",
"parameters": {
"a-factors": {
"a": 100000000,
"b": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"c": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wleo"
},
"amount": "100000000",
"min-received": "956859",
"order": [
"amount",
"min-received",
"swaps-reversed",
"v-tokens",
"v-share-fee-to",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"v-tokens": {
"a": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"dx": "100000000",
"dy": "100000000",
"amt-in": "100000000",
"amt-in-max": "100000000",
"y-amount": "100000000",
"x-amount": "100000000",
"min-dy": "956859",
"min-dz": "956859",
"min-dw": "956859",
"amt-out": "956859",
"amt-out-min": "956859",
"min-x-amount": "956859",
"min-dv": "956859",
"min-y-amount": "956859",
"min-dx": "956859"
}
},
"token_path": [
"token-stx",
"token-alex",
"token-leo",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.956859,
"params": {
"a-factors": {
"a": 100000000,
"b": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"c": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wleo"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "get-quote-f",
"parameters": {
"a-factors": {
"a": 100000000,
"b": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"c": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wleo"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "swap-helper-f",
"parameters": {
"a-factors": {
"a": 100000000,
"b": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex",
"c": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wleo"
},
"amount": "100000000",
"min-received": "956859",
"order": [
"amount",
"min-received",
"swaps-reversed",
"v-tokens",
"v-share-fee-to",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"v-tokens": {
"a": "SP1AY6K3PQV5MRT6R4S671NWW2FRVPKM0BR162CT6.leo-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"dx": "100000000",
"dy": "100000000",
"amt-in": "100000000",
"amt-in-max": "100000000",
"y-amount": "100000000",
"x-amount": "100000000",
"min-dy": "956859",
"min-dz": "956859",
"min-dw": "956859",
"amt-out": "956859",
"amt-out-min": "956859",
"min-x-amount": "956859",
"min-dv": "956859",
"min-y-amount": "956859",
"min-dx": "956859"
}
},
"dexPath": [
"ALEX",
"ALEX",
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-alex",
"token-leo",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 8,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"ALEX",
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": null,
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-vault-v2-01",
"shareFeeContract": null,
"tokenContract": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"tokenDecimals": 6,
"tokenName": "welshcorgicoin"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"tokenDecimals": 6,
"tokenName": "welshcorgicoin"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"4": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"5": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "get-quote-e",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wcorgi"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "swap-helper-e",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wcorgi"
},
"amount": "100000000",
"min-received": "954609",
"order": [
"amount",
"min-received",
"swaps-reversed",
"v-tokens",
"v-share-fee-to",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"v-tokens": {
"a": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"dx": "100000000",
"dy": "100000000",
"amt-in": "100000000",
"amt-in-max": "100000000",
"y-amount": "100000000",
"x-amount": "100000000",
"min-dy": "954609",
"min-dz": "954609",
"min-dw": "954609",
"amt-out": "954609",
"amt-out-min": "954609",
"min-x-amount": "954609",
"min-dv": "954609",
"min-y-amount": "954609",
"min-dx": "954609"
}
},
"token_path": [
"token-stx",
"token-welsh",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.954609,
"params": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wcorgi"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"quoteData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "get-quote-e",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wcorgi"
},
"amount": "100000000",
"order": [
"amount",
"swaps-reversed",
"v-tokens",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-tokens": {
"a": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2",
"function": "swap-helper-e",
"parameters": {
"a-factors": {
"a": 100000000
},
"a-tokens": {
"a": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2",
"b": "SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wcorgi"
},
"amount": "100000000",
"min-received": "954609",
"order": [
"amount",
"min-received",
"swaps-reversed",
"v-tokens",
"v-share-fee-to",
"a-tokens",
"a-factors"
],
"swaps-reversed": true,
"v-share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"v-tokens": {
"a": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"b": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"c": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"dx": "100000000",
"dy": "100000000",
"amt-in": "100000000",
"amt-in-max": "100000000",
"y-amount": "100000000",
"x-amount": "100000000",
"min-dy": "954609",
"min-dz": "954609",
"min-dw": "954609",
"amt-out": "954609",
"amt-out-min": "954609",
"min-x-amount": "954609",
"min-dv": "954609",
"min-y-amount": "954609",
"min-dx": "954609"
}
},
"dexPath": [
"ALEX",
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-welsh",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 8,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"VELAR",
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"tokenDecimals": 6,
"tokenName": "welshcorgicoin"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"tokenDecimals": 6,
"tokenName": "welshcorgicoin"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"4": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"5": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
27,
10,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "951206",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "951206",
"min-dy": "951206",
"min-dz": "951206",
"min-dw": "951206",
"amt-out": "951206",
"min-x-amount": "951206",
"min-dv": "951206",
"min-y-amount": "951206",
"min-dx": "951206"
}
},
"token_path": [
"token-stx",
"token-welsh",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.951206,
"params": {
"amt-in": "1000000",
"ids": [
27,
10,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
27,
10,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "951206",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "951206",
"min-dy": "951206",
"min-dz": "951206",
"min-dw": "951206",
"amt-out": "951206",
"min-x-amount": "951206",
"min-dv": "951206",
"min-y-amount": "951206",
"min-dx": "951206"
}
},
"dexPath": [
"VELAR",
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-welsh",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
},
{
"route": {
"dex_path": [
"VELAR",
"VELAR",
"VELAR"
],
"postConditions": {
"0": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "token-stx",
"tokenDecimals": "token-stx",
"tokenName": "token-stx"
},
"1": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"tokenDecimals": 8,
"tokenName": "bridged-btc"
},
"2": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"tokenDecimals": 8,
"tokenName": "bridged-btc"
},
"3": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"4": {
"dikoStx": null,
"senderAddress": "tx-sender",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"tokenDecimals": 6,
"tokenName": "aeUSDC"
},
"5": {
"dikoStx": null,
"senderAddress": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"shareFeeContract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-core",
"tokenContract": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"tokenDecimals": 6,
"tokenName": "ststx"
}
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
3,
7,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "941357",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "941357",
"min-dy": "941357",
"min-dz": "941357",
"min-dw": "941357",
"amt-out": "941357",
"min-x-amount": "941357",
"min-dv": "941357",
"min-y-amount": "941357",
"min-dx": "941357"
}
},
"token_path": [
"token-stx",
"token-abtc-leg",
"token-aeusdc",
"token-ststx"
]
},
"quote": 0.941357,
"params": {
"amt-in": "1000000",
"ids": [
3,
7,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
},
"quoteData": {
"contract": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-path2",
"function": "get-amount-out-4",
"parameters": {
"amt-in": "1000000",
"ids": [
3,
7,
8
],
"order": [
"amt-in",
"token-a",
"token-b",
"token-c",
"token-d",
"ids"
],
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token"
}
},
"swapData": {
"contract": "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1",
"function": "swap-4",
"parameters": {
"amt-in": "1000000",
"amt-out-min": "941357",
"order": [
"amt-in",
"amt-out-min",
"token-a",
"token-b",
"token-c",
"token-d",
"share-fee-to"
],
"share-fee-to": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-share-fee-to",
"token-a": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.wstx",
"token-b": "SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.token-abtc",
"token-c": "SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc",
"token-d": "SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token",
"amount": "1000000",
"dx": "1000000",
"dy": "1000000",
"amt-in-max": "1000000",
"y-amount": "1000000",
"x-amount": "1000000",
"min-received": "941357",
"min-dy": "941357",
"min-dz": "941357",
"min-dw": "941357",
"amt-out": "941357",
"min-x-amount": "941357",
"min-dv": "941357",
"min-y-amount": "941357",
"min-dx": "941357"
}
},
"dexPath": [
"VELAR",
"VELAR",
"VELAR"
],
"tokenPath": [
"token-stx",
"token-abtc-leg",
"token-aeusdc",
"token-ststx"
],
"tokenXDecimals": 6,
"tokenYDecimals": 6
}
],
"inputData": {
"tokenX": "token-stx",
"tokenY": "token-ststx",
"amountInput": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment