Skip to content

Instantly share code, notes, and snippets.

@erwanor
Created May 31, 2023 21:15
Show Gist options
  • Save erwanor/740651cce6410ff7fc9ceae9064e6c9e to your computer and use it in GitHub Desktop.
Save erwanor/740651cce6410ff7fc9ceae9064e6c9e to your computer and use it in GitHub Desktop.
swap execution log
---- component::router::tests::fill_route_constraint_1 stdout ----
asset ids:
gm: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598
gn: passet1nupu8yg2kua09ec8qxfsl60xhafp7mmpsjv9pgp50t20hm6pkygscjcqn2
penumbra: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm
pusd: passet14h46dmcyy6fl5vyz7xx933n8l7jy202ahrxg92kad6yfladsvcyqczcwda
delta_1: Value {
amount: 4000000,
asset_id: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598,
}
trade 0:
input: Value {
amount: 500000,
asset_id: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598,
}
Value {
amount: 10000000000,
asset_id: passet1nupu8yg2kua09ec8qxfsl60xhafp7mmpsjv9pgp50t20hm6pkygscjcqn2,
}
Value {
amount: 1000000,
asset_id: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm,
}
output: Value {
amount: 500000,
asset_id: passet14h46dmcyy6fl5vyz7xx933n8l7jy202ahrxg92kad6yfladsvcyqczcwda,
}
trade 1:
input: Value {
amount: 500000,
asset_id: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598,
}
Value {
amount: 3100000000,
asset_id: passet1nupu8yg2kua09ec8qxfsl60xhafp7mmpsjv9pgp50t20hm6pkygscjcqn2,
}
Value {
amount: 1000000,
asset_id: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm,
}
output: Value {
amount: 500000,
asset_id: passet14h46dmcyy6fl5vyz7xx933n8l7jy202ahrxg92kad6yfladsvcyqczcwda,
}
trade 2:
input: Value {
amount: 3000000,
asset_id: passet1r4kcf2m4r92jqmdks5c9yt7v2tgnht4aj3fml4qln56x72nm8qrsm9d598,
}
Value {
amount: 3000000,
asset_id: passet1nupu8yg2kua09ec8qxfsl60xhafp7mmpsjv9pgp50t20hm6pkygscjcqn2,
}
Value {
amount: 6000000,
asset_id: passet1984fctenw8m2fpl8a9wzguzp7j34d7vravryuhft808nyt9fdggqxmanqm,
}
output: Value {
amount: 18000000000,
asset_id: passet14h46dmcyy6fl5vyz7xx933n8l7jy202ahrxg92kad6yfladsvcyqczcwda,
}
MANUAL OUTPUT: 18001000000
DESIRED OUTPUT: 31100000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment