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 1s

E2E report yarn test-multiswap ❌

Tests failed

❌ e2eTests/reports/junit.xml-bbb80cc0-b5a4-11ef-9d7b-af1081966bcb.xml

36 tests were completed in 642s with 31 passed, 2 failed and 3 skipped.

Test suite Passed Failed Skipped Time
test/parallel/utility-pallet.swapOperations.test.ts 16✅ 1⚪ 228s
test/parallel/xyk-pallet.multiswap.errors.test.ts 3✅ 2❌ 2⚪ 156s
test/parallel/xyk-pallet.multiswap.test.ts 7✅ 150s
test/parallel/xyk-pallet.multiswap2hops.test.ts 5✅ 108s

✅ test/parallel/utility-pallet.swapOperations.test.ts

⚪ Validate that the error enum is about filtered call
Utility - batched swaps are not allowed
  ✅ multiswapSellAsset operation is not allowed in batchAll
  ✅ multiswapBuyAsset operation is not allowed in batchAll
  ✅ sellAsset operation is not allowed in batchAll
  ✅ buyAsset operation is not allowed in batchAll
  ✅ multiswapSellAsset operation is not allowed in batch
  ✅ multiswapBuyAsset operation is not allowed in batch
  ✅ sellAsset operation is not allowed in batch
  ✅ buyAsset operation is not allowed in batch
  ✅ multiswapSellAsset operation is not allowed in forceBatch
  ✅ multiswapBuyAsset operation is not allowed in forceBatch
  ✅ sellAsset operation is not allowed in forceBatch
  ✅ buyAsset operation is not allowed in forceBatch
  ✅ multiswapSellAsset operation is not allowed in singleBatch with some allowed
  ✅ multiswapBuyAsset operation is not allowed in singleBatch with some allowed
  ✅ sellAsset operation is not allowed in singleBatch with some allowed
  ✅ buyAsset operation is not allowed in singleBatch with some allowed

❌ 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: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
  ⚪ [gasless] Fail on swap when selling remove all MGAs
  ❌ [gasless] Fails on client when pool does not exist
	Error:

✅ 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-bbb80cc0-b5a4-11ef-9d7b-af1081966bcb.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-bbb80cc0-b5a4-11ef-9d7b-af1081966bcb.xml
Error:
  Error: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
Raw output
Error: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.multiswap.errors.test.ts:160:17
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-bbb80cc0-b5a4-11ef-9d7b-af1081966bcb.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-bbb80cc0-b5a4-11ef-9d7b-af1081966bcb.xml
Error:
  Error: 
Raw output
Error: 
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.multiswap.errors.test.ts:199:15
    at processTicksAndRejections (node:internal/process/task_queues:95:5)