Skip to content

fixes the symbol naming for liq pools (#860) #813

fixes the symbol naming for liq pools (#860)

fixes the symbol naming for liq pools (#860) #813

GitHub Actions / E2E report yarn test-multiswap failed Dec 8, 2024 in 0s

E2E report yarn test-multiswap ❌

Tests failed

❌ e2eTests/reports/junit.xml-d1204570-b557-11ef-9a6e-7f13cb6cfbcf.xml

19 tests were completed in 157s with 15 passed, 2 failed and 2 skipped.

Test suite Passed Failed Skipped Time
test/parallel/xyk-pallet.multiswap.errors.test.ts 3✅ 2❌ 2⚪ 138s
test/parallel/xyk-pallet.multiswap.test.ts 7✅ 155s
test/parallel/xyk-pallet.multiswap2hops.test.ts 5✅ 119s

❌ test/parallel/xyk-pallet.multiswap.errors.test.ts

Multiswap - error cases: disabled tokens
  ✅ [gasless] disabled on token of the chained polls
  ✅ [gasless] disabled on token of the chained polls - Fail on tx execution-2
  ✅ [gasless] disabled on token of the chained polls - Fail on tx execution-4
Multiswap - error cases: pool status & gasless integration
  ⚪ [gasless] High value swaps are disabled on multiswap
  ❌ [gasless] Fail on client when not enough MGAs to lock AND tokens that exist whitelist
	Error: thrown: Object {
  ⚪ [gasless] Fail on swap when selling remove all MGAs
  ❌ [gasless] Fails on client when pool does not exist
	Error: thrown: Object {

✅ test/parallel/xyk-pallet.multiswap.test.ts

Multiswap - happy paths
  ✅ [gasless] Happy path - multi-swap - buy
  ✅ [gasless] Happy path - multi-swap - sell
  ✅ [gasless] Happy path - multi-swap uses feeLocks
  ✅ [gasless] Fees - multi-swap roll backs all the swaps when one fail but we take fees in GASP tokens
  ✅ [gasless] accuracy - Sum of calculate_sell_asset chained is equal to the multiswap operation
  ✅ [gasless] accuracy - Sum of calculate_buy_asset chained is equal to the multiswap operation
  ✅ [gasless] alternative scenario - one pool is highly unbalanced -> zero swap output

✅ test/parallel/xyk-pallet.multiswap2hops.test.ts

Multiswap [2 hops] - happy paths
  ✅ [gasless] Happy path - multi-swap - buy
  ✅ [gasless] Happy path - multi-swap - sell
  ✅ [gasless] Happy path - multi-swap uses feeLocks
  ✅ [gasless] Fees - multi-swap roll backs all the swaps when one fail but 0.3% is charged
  ✅ [gasless] accuracy - Sum of calculate_sell_asset chained is equal to the multiswap operation

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-d1204570-b557-11ef-9a6e-7f13cb6cfbcf.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-multiswap

test/parallel/xyk-pallet.multiswap.errors.test.ts ► Multiswap - error cases: pool status & gasless integration ► [gasless] Fail on client when not enough MGAs to lock AND tokens that exist whitelist

Failed test found in:
  e2eTests/reports/junit.xml-d1204570-b557-11ef-9a6e-7f13cb6cfbcf.xml
Error:
  Error: thrown: Object {
Raw output
Error: thrown: Object {
  "data": "1010: Invalid Transaction: Transaction is outdated",
}
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.multiswap.errors.test.ts:106:3
    at _dispatchDescribe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:91:26)
    at describe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:55:5)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.multiswap.errors.test.ts:105:1
    at SourceTextModule.evaluate (node:internal/vm/module:226:23)
    at Runtime.linkAndEvaluateModule (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runtime/build/index.js:710:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:75:5)
    at runTestInternal (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 0 in e2eTests/reports/junit.xml-d1204570-b557-11ef-9a6e-7f13cb6cfbcf.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-multiswap

test/parallel/xyk-pallet.multiswap.errors.test.ts ► Multiswap - error cases: pool status & gasless integration ► [gasless] Fails on client when pool does not exist

Failed test found in:
  e2eTests/reports/junit.xml-d1204570-b557-11ef-9a6e-7f13cb6cfbcf.xml
Error:
  Error: thrown: Object {
Raw output
Error: thrown: Object {
  "data": "1010: Invalid Transaction: Transaction is outdated",
}
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.multiswap.errors.test.ts:106:3
    at _dispatchDescribe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:91:26)
    at describe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:55:5)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.multiswap.errors.test.ts:105:1
    at SourceTextModule.evaluate (node:internal/vm/module:226:23)
    at Runtime.linkAndEvaluateModule (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runtime/build/index.js:710:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:75:5)
    at runTestInternal (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/testWorker.js:106:12)