Feature/stable pool mgx 1307 (#838) #739
E2E report yarn test-parallel-3rdPartyRewards ❌
❌ e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
34 tests were completed in 583s with 19 passed, 15 failed and 0 skipped.
✅ test/parallel/proofOfStake.3rdPartyRewards.accuracy.test.ts
Proof of stake tests › Accuracy rewards scenarios
✅ User liq. is considered on the ongoing session
❌ test/parallel/proofOfStake.3rdPartyRewards.activation.check.test.ts
Proof of stake tests › Added scenarios with reward activation
✅ GIVEN promoted pool AND user with liquidity tokens for this pool WHEN user tries to activate 3rd party rewards for non-promoted liqToken THEN receive error
✅ GIVEN two promoted pool AND user without liquidity tokens for first promoted WHEN user tries to activate 3rd party rewards for reward token THEN receive error
✅ GIVEN promoted two promoted pool AND user with liquidity tokens for first promoted pool WHEN user tries to activate 3rd party rewards for second (reward) token with too many liquidity tokens THEN receive error
✅ GIVEN promoted two promoted pool AND user with liquidity tokens for first promoted pool WHEN user activates 3rd party rewards for non-reward token THEN he cant claim rewards
✅ GIVEN promoted two promoted pool AND user with liquidity tokens for first promoted pool WHEN user activates 3rd party rewards for second (reward) token, waits and claims all rewards THEN operation is successful
❌ GIVEN promoted two promoted pool AND user with liquidity tokens for first promoted pool WHEN user activates 3rd party rewards for second (reward) token , waits more than one period last AND the user burns all his liquidity THEN users can still claim pending rewards
TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
❌ test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts
Proof of stake tests › Activation rewards scenarios
❌ A user can activate some rewards
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ A user can activate twice some rewards
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ A user can activate rewards that were activated on some other schedules
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ test/parallel/proofOfStake.3rdPartyRewards.burning.test.ts
Proof of stake tests › Burn liquidity
❌ GIVEN a user with N tokens activated for 3rd party, WHEN the user wants to burn ( all the existing - N ) THEN the operation works
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
✅ test/parallel/proofOfStake.3rdPartyRewards.calim.activated.test.ts
Proof of stake tests › Scenarios with reward activation for promoted pool MGX-Token1, reward pool MGX-Token2
✅ GIVEN promoted pool MGX-Token1, pool MGX-Token2, pool MGX-Token3 AND user with activated 3rd party rewards of pool MGX-Token1 for Token2 and Token3 WHEN user claim all rewards THEN he receive 2 type of rewards
✅ GIVEN promoted pool MGX-Token1, pool MGX-Token2 AND user with activated 3rd party rewards of pool MGX-Token1 for Token2 WHEN user deactivates 3rd party rewadrs with too many liquidity tokens THEN receive error
❌ test/parallel/proofOfStake.3rdPartyRewards.claim.test.ts
Proof of stake tests › Claim rewards scenarios
✅ When rewards not available, should return error
✅ Rewards are divided in n-sessions
❌ Two users activated, one in one exec, other in two - check balances
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Rewards are not given for the ongoing session it got scheduled
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts
Proof of stake tests › FeeCosts
✅ Reward a pool is not free of cost
❌ Activate - deactivate is free if success
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
✅ Activate - deactivate is not free if fails
❌ Claiming is not free if Zero
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ test/parallel/proofOfStake.3rdPartyRewards.happyPath.test.ts
Proof of stake tests › Happy path
❌ A user can deactivate all the tokens when partial activation / deactivation
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ test/parallel/proofOfStake.3rdPartyRewards.MPL-integration.test.ts
Proof of stake tests › MPL integration
❌ User [testUser1] with: stakedUnactivatedReserves -> stakedAndActivatedReserves -> stakedUnactivatedReserves
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ Bug ? User [testUser2] with: stakedActivatedReserves -> stakedAndActivatedReserves -> stakedAndActivatedReserves
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ User [testUser3] with: activatedUnstakedReserves -> activatedUnstakedReserves -> activatedUnstakedReserves
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ User [testUser4] with: unspentReserves -> activatedUnstakedReserves -> unspentReserves
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ test/parallel/proofOfStake.3rdPartyRewards.reusedActivations.test.ts
Proof of stake tests › Activations are reused if new rewards
❌ A user can activate - finish schedule and get automatically activated for the following schedules
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
✅ test/parallel/proofOfStake.3rdPartyRewards.setup.test.ts
Proof of stake tests › Setup rewards scenarios
✅ Multiple users can reward the same pool - same tokens
✅ Multiple users can reward multiple pools - token does not belong to the promoted pool
✅ A user can reward a pool that is not directly paired with mgx
✅ A user can reward in mgx
✅ Rewards schedule must last at least 1 session ahead
✅ Min liq is required setup rewards
✅ Min liq valuation is required setup rewards
Annotations
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.activation.check.test.ts ► Proof of stake tests › Added scenarios with reward activation ► GIVEN promoted two promoted pool AND user with liquidity tokens for first promoted pool WHEN user activates 3rd party ...
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts ► Proof of stake tests › Activation rewards scenarios ► A user can activate some rewards
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.activation.test.ts:122:13
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts ► Proof of stake tests › Activation rewards scenarios ► A user can activate twice some rewards
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.activation.test.ts:122:13
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts ► Proof of stake tests › Activation rewards scenarios ► A user can activate rewards that were activated on some other schedules
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.activation.test.ts:122:13
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.activation.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.burning.test.ts ► Proof of stake tests › Burn liquidity ► GIVEN a user with N tokens activated for 3rd party, WHEN the user wants to burn ( all the existing - N ) THEN the operation works
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.burning.test.ts:83:13
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.burning.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.claim.test.ts ► Proof of stake tests › Claim rewards scenarios ► Two users activated, one in one exec, other in two - check balances
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.claim.test.ts:224:15
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.claim.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.claim.test.ts ► Proof of stake tests › Claim rewards scenarios ► Rewards are not given for the ongoing session it got scheduled
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.claim.test.ts:368:15
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.claim.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts ► Proof of stake tests › FeeCosts ► Activate - deactivate is free if success
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.fees.test.ts:136:13
at Generator.next (<anonymous>)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts:3:12)
at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts:130:65)
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 _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:121: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-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts ► Proof of stake tests › FeeCosts ► Claiming is not free if Zero
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.fees.test.ts:260:15
at Generator.next (<anonymous>)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts:3:12)
at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.fees.test.ts:255:53)
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 _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:121: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-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.happyPath.test.ts ► Proof of stake tests › Happy path ► A user can deactivate all the tokens when partial activation / deactivation
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.happyPath.test.ts:75:13
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.happyPath.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.xml
github-actions / E2E report yarn test-parallel-3rdPartyRewards
test/parallel/proofOfStake.3rdPartyRewards.MPL-integration.test.ts ► Proof of stake tests › MPL integration ► User [testUser1] with: stakedUnactivatedReserves -> stakedAndActivatedReserves -> stakedUnactivatedReserves
Failed test found in:
e2eTests/reports/junit.xml-8a4a45b0-ac4c-11ef-9ffc-77e8082fc0f4.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/proofOfStake.3rdPartyRewards.MPL-integration.test.ts:87:13
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/proofOfStake.3rdPartyRewards.MPL-integration.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)