Skip to content

Feature/stable pool mgx 1307 (#838) #739

Feature/stable pool mgx 1307 (#838)

Feature/stable pool mgx 1307 (#838) #739

GitHub Actions / E2E report yarn test-parallel-autocompound failed Nov 26, 2024 in 1s

E2E report yarn test-parallel-autocompound ❌

Tests failed

❌ e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

23 tests were completed in 589s with 6 passed, 17 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts 5❌ 269s
test/parallel/xyk-pallet.API.parachainStacking.activateRewards.test.ts 1✅ 60s
test/parallel/xyk-pallet.API.pool.deactivatedLiq.test.ts 1❌ 107s
test/parallel/xyk-pallet.API.pool.promoting.test.ts 1❌ 53s
test/parallel/xyk-pallet.API.pool.weightedPools.test.ts 4✅ 2❌ 587s
test/parallel/xyk-pallet.API.poolLiqidity.claimReward.test.ts 1✅ 2❌ 227s
test/parallel/xyk-pallet.API.poolLiqidity.mintLiqudity.test.ts 3❌ 71s
test/parallel/xyk-pallet.API.validateStatus.test.ts 3❌ 173s

❌ test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts

Accuracy > Shared pool
  ❌ Each user who minted owns the same % of tokens - one user gets extra token
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
  ❌ Each user who minted onws the same % of tokens - two users gets the extra
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
  ❌ Each user who minted onws the same % of tokens - divisible by 3
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
  ❌ Each user who minted different % of tokens [50k,25k,5k]- get diff amounts
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Given 3 users that minted liquidity WHEN only one activated the rewards THEN all rewards belongs to him on this pool
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')

✅ test/parallel/xyk-pallet.API.parachainStacking.activateRewards.test.ts

✅ Given a user with bonded but not activated liq tokens WHEN he tries to activate THEN the tokens are activated for rewards

❌ test/parallel/xyk-pallet.API.pool.deactivatedLiq.test.ts

❌ GIVEN a disabled pool the user can still interact with it: Burn, deactivate Liq
	TypeError: Cannot read properties of undefined (reading 'burnLiquidity')

❌ test/parallel/xyk-pallet.API.pool.promoting.test.ts

❌ GIVEN a promoted pool WHEN more pools gets activated THEN shares are decreased and equally divided among all the activated pools
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')

❌ test/parallel/xyk-pallet.API.pool.weightedPools.test.ts

✅ Check that we can get the list of promoted pools with proofOfStake.promotedPoolRewards data storage
✅ Validate that weight can be modified by using updatePoolPromotion AND only sudo can update weights
✅ Testing that the sum of the weights can be greater than 100
❌ GIVEN a pool WHEN it has configured with 0 THEN no new issuance will be reserved
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ GIVEN a deactivated pool WHEN its configured with more weight, THEN rewards are now active, new users can get portion of those rewards AND issuance grows
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
✅ GIVEN an activated pool WHEN pool was deactivated THEN check that the user will still get some rewards from the curve, and storage is updated

❌ test/parallel/xyk-pallet.API.poolLiqidity.claimReward.test.ts

❌ Check that rewards are generated and can be claimed on each session, then burn all tokens and rewards wont be available
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Given a pool with 2 users with activated rewards WHEN more than one period last AND the user burn all liquidity THEN pool is destroyed but users can still claim pending rewards
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
✅ Given a pool with user with activated rewards  WHEN it was deactivated AND activated again THEN the user can receive a reward in both a deactivated and activated pool

❌ test/parallel/xyk-pallet.API.poolLiqidity.mintLiqudity.test.ts

❌ Check that a user that mints on a promoted pool liquidity tokens are reserved
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Check that a user that mints on a non-promoted pool liquidity tokens are free
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Given 3 pool: token1-MGX, token2-MGX and token1-token2 WHEN token1-token2 is promoted THEN user can receive rewards from token1-token2 pool
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')

❌ test/parallel/xyk-pallet.API.validateStatus.test.ts

Validate initial status
  ❌ User just minted on a promoted pool
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
  ❌ User just minted and rewards generated
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
  ❌ User just minted on a promoted pool and after rewards being generated mint some more
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts ► Accuracy > Shared pool ► Each user who minted owns the same % of tokens - one user gets extra token

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts ► Accuracy > Shared pool ► Each user who minted onws the same % of tokens - two users gets the extra

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts ► Accuracy > Shared pool ► Each user who minted onws the same % of tokens - divisible by 3

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts ► Accuracy > Shared pool ► Each user who minted different % of tokens [50k,25k,5k]- get diff amounts

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts ► Given 3 users that minted liquidity WHEN only one activated the rewards THEN all rewards belongs to him on this pool

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts:264:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.accuracy.shared.pool.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.pool.deactivatedLiq.test.ts ► GIVEN a disabled pool the user can still interact with it: Burn, deactivate Liq

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
    at burnLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3805:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.pool.promoting.test.ts ► GIVEN a promoted pool WHEN more pools gets activated THEN shares are decreased and equally divided among all the activated pools

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.pool.promoting.test.ts:107:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.pool.promoting.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.pool.weightedPools.test.ts ► GIVEN a pool WHEN it has configured with 0 THEN no new issuance will be reserved

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.pool.weightedPools.test.ts:175:11
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.pool.weightedPools.test.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.pool.weightedPools.test.ts:3:12)
    at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.pool.weightedPools.test.ts:167:101)
    at Promise.then.completed (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:126:9)
    at run (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    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-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.pool.weightedPools.test.ts ► GIVEN a deactivated pool WHEN its configured with more weight, THEN rewards are now active, new users can get portion of those rewards AND issuance grows

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.poolLiqidity.claimReward.test.ts ► Check that rewards are generated and can be claimed on each session, then burn all tokens and rewards wont be available

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-parallel-autocompound

test/parallel/xyk-pallet.API.poolLiqidity.claimReward.test.ts ► Given a pool with 2 users with activated rewards WHEN more than one period last AND the user burn all liquidity THEN pool is destroyed but users can still claim pending rewards

Failed test found in:
  e2eTests/reports/junit.xml-8dceffa0-ac4c-11ef-a46b-f198e563f841.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at Function.mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:27:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.poolLiqidity.claimReward.test.ts:181:11
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/xyk-pallet.API.poolLiqidity.claimReward.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)