-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72c7298
commit 9f5d0cb
Showing
14 changed files
with
272 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 52 additions & 48 deletions
100
router/usecase/routertesting/parsing/quote_amount_in_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,54 @@ | ||
{ | ||
"amount_in": { | ||
"denom": "ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5", | ||
"amount": "10000000" | ||
}, | ||
"amount_out": "40000000", | ||
"route": [ | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 1, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.010000000000000000", | ||
"token_out_denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", | ||
"taker_fee": "0.020000000000000000" | ||
}, | ||
{ | ||
"id": 2, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.030000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.000400000000000000" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
}, | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 3, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.005000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.003000000000000000" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
} | ||
], | ||
"effective_fee": "0.011696000000000000", | ||
"price_impact": "-0.565353638051463862", | ||
"in_base_out_quote_spot_price": "4.500000000000000000" | ||
"amount_in": { | ||
"denom": "ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5", | ||
"amount": "10000000" | ||
}, | ||
"amount_out": "40000000", | ||
"route": [ | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 1, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.010000000000000000", | ||
"token_out_denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", | ||
"taker_fee": "0.020000000000000000", | ||
"liquidity_cap": "1519153195" | ||
}, | ||
{ | ||
"id": 2, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.030000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.000400000000000000", | ||
"liquidity_cap": "85196078" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
}, | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 3, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.005000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.003000000000000000", | ||
"liquidity_cap": "719951" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
} | ||
], | ||
"liquidity_cap": "1605069224", | ||
"effective_fee": "0.011696000000000000", | ||
"price_impact": "-0.565353638051463862", | ||
"in_base_out_quote_spot_price": "4.500000000000000000" | ||
} |
115 changes: 59 additions & 56 deletions
115
router/usecase/routertesting/parsing/quote_amount_in_response_base_fee.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,60 @@ | ||
{ | ||
"amount_in": { | ||
"denom": "ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5", | ||
"amount": "10000000" | ||
}, | ||
"amount_out": "40000000", | ||
"route": [ | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 1, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.010000000000000000", | ||
"token_out_denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", | ||
"taker_fee": "0.020000000000000000" | ||
}, | ||
{ | ||
"id": 2, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.030000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.000400000000000000" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
}, | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 3, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.005000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.003000000000000000" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
} | ||
], | ||
"effective_fee": "0.011696000000000000", | ||
"price_impact": "-0.565353638051463862", | ||
"in_base_out_quote_spot_price": "4.500000000000000000", | ||
"price_info": { | ||
"fee_coin": { | ||
"amount": "0" | ||
}, | ||
"base_fee": "0.500000000000000000" | ||
} | ||
} | ||
|
||
"amount_in": { | ||
"denom": "ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5", | ||
"amount": "10000000" | ||
}, | ||
"amount_out": "40000000", | ||
"route": [ | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 1, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.010000000000000000", | ||
"token_out_denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", | ||
"taker_fee": "0.020000000000000000", | ||
"liquidity_cap": "1519153195" | ||
}, | ||
{ | ||
"id": 2, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.030000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.000400000000000000", | ||
"liquidity_cap": "85196078" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
}, | ||
{ | ||
"pools": [ | ||
{ | ||
"id": 3, | ||
"type": 0, | ||
"balances": [], | ||
"spread_factor": "0.005000000000000000", | ||
"token_out_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", | ||
"taker_fee": "0.003000000000000000", | ||
"liquidity_cap": "719951" | ||
} | ||
], | ||
"has-cw-pool": false, | ||
"out_amount": "20000000", | ||
"in_amount": "5000000" | ||
} | ||
], | ||
"liquidity_cap": "1605069224", | ||
"effective_fee": "0.011696000000000000", | ||
"price_impact": "-0.565353638051463862", | ||
"in_base_out_quote_spot_price": "4.500000000000000000", | ||
"price_info": { | ||
"fee_coin": { | ||
"amount": "0" | ||
}, | ||
"base_fee": "0.500000000000000000" | ||
} | ||
} |
Oops, something went wrong.