Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save erwanor/d22b93f4108e0de90acac792f5d057cd to your computer and use it in GitHub Desktop.
Save erwanor/d22b93f4108e0de90acac792f5d057cd to your computer and use it in GitHub Desktop.
unfilled amount excerpt
2023-05-05T07:38:39.427917Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route: filling along route up to spill price input=Value { amount: 10000000, asset_id: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm } hops=[passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f, passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598, passet1nupu8yg2kua09ec8qxfsl60xhafp7mmpsjv9pgp50t20hm6pkygscjcqn2] spill_price=Some(U128x128 { integral: 1, fractional: 0 })
2023-05-05T07:38:39.428106Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints: executed against position input=10000000 output=1000000000000000000 unfilled=5000000 old_reserves=Reserves { r1: 1000000000000000000, r2: 0 } new_reserves=Reserves { r1: 0, r2: 5000000 } id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr
2023-05-05T07:38:39.428118Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: position=Position { state: Opened, reserves: Reserves { r1: 0, r2: 5000000 }, phi: TradingFunction { component: BareTradingFunction { fee: 0, p: 5000000, q: 1000000000000000000 }, pair: TradingPair { asset_1: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f, asset_2: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm } }, nonce: "e0d3ef525b1827ad1839c7631695e9d5582f926a2cbae0a6f3c06873a4ffb834" }
2023-05-05T07:38:39.428127Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: deindexing position
2023-05-05T07:38:39.428182Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: indexing position for 1=>2 trades
2023-05-05T07:38:39.428276Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints: executed against position input=1000000000000000000 output=20000000 unfilled=999999999999999999 old_reserves=Reserves { r1: 20000000, r2: 0 } new_reserves=Reserves { r1: 0, r2: 1 } id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr
2023-05-05T07:38:39.428288Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr}: position=Position { state: Opened, reserves: Reserves { r1: 0, r2: 1 }, phi: TradingFunction { component: BareTradingFunction { fee: 0, p: 20000000, q: 1000000000000000000 }, pair: TradingPair { asset_1: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598, asset_2: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f } }, nonce: "35826cb9ce8b2728604778f578f035159c47d1dfda7e622b4d5935fda47050a1" }
2023-05-05T07:38:39.428297Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr}: deindexing position
2023-05-05T07:38:39.428368Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr}: indexing position for 1=>2 trades
2023-05-05T07:38:39.428440Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints: executed against position input=20000000 output=20000000 unfilled=0 old_reserves=Reserves { r1: 0, r2: 25000000 } new_reserves=Reserves { r1: 20000000, r2: 5000000 } id=plpid1xjsjxr9hhvh5c2yly0fklf59wf4z24rjl7ln5z6sucmpfrzny0wq4pfm3v
2023-05-05T07:38:39.428453Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1xjsjxr9hhvh5c2yly0fklf59wf4z24rjl7ln5z6sucmpfrzny0wq4pfm3v}: position=Position { state: Opened, reserves: Reserves { r1: 20000000, r2: 5000000 }, phi: TradingFunction { component: BareTradingFunction { fee: 0, p: 1000000, q: 1000000 }, pair: TradingPair { asset_1: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598, asset_2: passet1nupu8yg2kua09ec8qxfsl60xhafp7mmpsjv9pgp50t20hm6pkygscjcqn2 } }, nonce: "d321a9c66f18c85e3a9d41a7beb26f7ee496e59910c201c2a730270e4260ce20" }
2023-05-05T07:38:39.428475Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1xjsjxr9hhvh5c2yly0fklf59wf4z24rjl7ln5z6sucmpfrzny0wq4pfm3v}: deindexing position
2023-05-05T07:38:39.428483Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1xjsjxr9hhvh5c2yly0fklf59wf4z24rjl7ln5z6sucmpfrzny0wq4pfm3v}: indexing position for 1=>2 trades
2023-05-05T07:38:39.428518Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:find_constraints:put_position{id=plpid1xjsjxr9hhvh5c2yly0fklf59wf4z24rjl7ln5z6sucmpfrzny0wq4pfm3v}: indexing position for 2=>1 trades
2023-05-05T07:38:39.428530Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route: effective price across the route effective_price=0.0000000000000000000001
2023-05-05T07:38:39.428594Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route: found constraints num=2
2023-05-05T07:38:39.428669Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route: executed against position input=1 output=200000000000 unfilled=0 old_reserves=Reserves { r1: 1000000000000000000, r2: 0 } new_reserves=Reserves { r1: 999999800000000000, r2: 1 } id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr
2023-05-05T07:38:39.428680Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: position=Position { state: Opened, reserves: Reserves { r1: 999999800000000000, r2: 1 }, phi: TradingFunction { component: BareTradingFunction { fee: 0, p: 5000000, q: 1000000000000000000 }, pair: TradingPair { asset_1: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f, asset_2: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm } }, nonce: "e0d3ef525b1827ad1839c7631695e9d5582f926a2cbae0a6f3c06873a4ffb834" }
2023-05-05T07:38:39.428700Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: deindexing position
2023-05-05T07:38:39.428706Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: indexing position for 1=>2 trades
2023-05-05T07:38:39.428737Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1avr4ww3q073s5fqnaw0nl7fsjxchkpln0sdl0gk6w5rrkknegczsrrq2xr}: indexing position for 2=>1 trades
2023-05-05T07:38:39.428809Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route: executed against position input=200000000000 output=20000000 unfilled=199999999999 old_reserves=Reserves { r1: 20000000, r2: 0 } new_reserves=Reserves { r1: 0, r2: 1 } id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr
2023-05-05T07:38:39.428828Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr}: position=Position { state: Opened, reserves: Reserves { r1: 0, r2: 1 }, phi: TradingFunction { component: BareTradingFunction { fee: 0, p: 20000000, q: 1000000000000000000 }, pair: TradingPair { asset_1: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598, asset_2: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f } }, nonce: "35826cb9ce8b2728604778f578f035159c47d1dfda7e622b4d5935fda47050a1" }
2023-05-05T07:38:39.428863Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr}: deindexing position
2023-05-05T07:38:39.428870Z DEBUG abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route:put_position{id=plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr}: indexing position for 1=>2 trades
2023-05-05T07:38:39.428877Z ERROR abci:EndBlock{height=218}:dex:handle_batch_swaps:route_and_fill:fill_route: residual unfilled amount here pair=DirectedTradingPair { start: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f, end: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598 } unfilled=Value { amount: 199999999999, asset_id: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f } position=Position { state: Opened, reserves: Reserves { r1: 20000000, r2: 0 }, phi: TradingFunction { component: BareTradingFunction { fee: 0, p: 20000000, q: 1000000000000000000 }, pair: TradingPair { asset_1: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598, asset_2: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f } }, nonce: "35826cb9ce8b2728604778f578f035159c47d1dfda7e622b4d5935fda47050a1" } current_value=Value { amount: 200000000000, asset_id: passet1fyq20eaeee33cweq9actqac9ald5h97rw8c2zl9ewa2ydpz0kvxs8uzu4f }
thread 'tokio-runtime-worker' panicked at 'unable to process batch swaps: error filling along best path
Caused by:
internal error: unfilled amount after filling against plpid1f3j9hfg70arlfwh327jnmlsv3k9t2kvdm5vhqegrduyw2mt7fy7qcg5zmr',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment