Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MGX-1239] remove Mangata from error name #814

Merged
merged 1 commit into from
Sep 24, 2024

rename 'NotMangataLiquidityAsset' => 'NotPairedWithNativeAsset'

3747c66
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

[MGX-1239] remove Mangata from error name #814

rename 'NotMangataLiquidityAsset' => 'NotPairedWithNativeAsset'
3747c66
Select commit
Loading
Failed to load commit list.
GitHub Actions / E2E report yarn test-poolliquidity succeeded Sep 24, 2024 in 1s

E2E report yarn test-poolliquidity ✅

Tests passed successfully

✅ e2eTests/reports/junit.xml-5265ad20-7a8c-11ef-b369-7be9f5583082.xml

17 tests were completed in 463s with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/parallel/xyk-pallet.API.pool.deactivatedPool.test.ts 8✅ 359s
test/parallel/xyk-pallet.API.pool.deactivatedPromotedPool.test.ts 2✅ 233s
test/parallel/xyk-pallet.API.poolLiqidity.activateLiqudity.test.ts 2✅ 119s
test/parallel/xyk-pallet.API.poolLiqudity.burnTokens.test.ts 2✅ 125s
test/parallel/xyk-pallet.API.poolLiqudity.multipleUserRewards.test.ts 2✅ 209s
test/parallel/xyk-pallet.API.poolLiqudity.sepClaimRewards.test.ts 1✅ 461s

✅ test/parallel/xyk-pallet.API.pool.deactivatedPool.test.ts

✅ GIVEN deactivated pool WHEN another user tries to create an equal pool THEN error returns
✅ GIVEN deactivated pool WHEN another user tries to mint liquidity in the pool THEN user can do this
✅ GIVEN deactivated pool WHEN the user mints liquidity in the pool again THEN liquidity IDs are equal
✅ GIVEN deactivated pool WHEN the user tries to swap/multiswap tokens on the deactivated pool THEN error returns
✅ GIVEN deactivated pool WHEN sudo try to promote a pool THEN poolPromotion is updated
✅ GIVEN deactivated pool WHEN a bootstrap is scheduled for the existing pair THEN the operation fail with pool already exist.
✅ GIVEN deactivated pool WHEN call RPCs that work with the pools (e.g., calculate_buy_price_id) THEN zero returns
✅ GIVEN deactivated pool WHEN user tries to activate the pool THEN error returns

✅ test/parallel/xyk-pallet.API.pool.deactivatedPromotedPool.test.ts

✅ GIVEN user create a pool, wait for rewards and then deactivate the pool WHEN call RPC calculate_rewards_amount for this user AND user tries to claim rewards THEN value of amount returns AND rewards are claimed
✅ GIVEN  user create a pool, wait for rewards and then deactivate the pool WHEN the user tries to compound reward on a deactivated pool THEN error returns

✅ test/parallel/xyk-pallet.API.poolLiqidity.activateLiqudity.test.ts

✅ GIVEN a proofOfStake.updatePoolPromotion WHEN the liq token is a regular token, extrinsic fail
✅ Check that a user that deactivate some tokens, put liquidity tokens from frozen to free, then activate some tokens and put liquidity tokens from free to frozen

✅ test/parallel/xyk-pallet.API.poolLiqudity.burnTokens.test.ts

✅ Check that a user can burn tokens when they are activated, and when burning the free, those subtracted first
✅ Check that a user can burn some tokens on a non-promoted pool

✅ test/parallel/xyk-pallet.API.poolLiqudity.multipleUserRewards.test.ts

✅ Users minted a different number of tokens THEN they receive an equivalent amount of rewards
✅ One user mints X tokens, other mints those X tokens but splitted in 5 mints at the same block, rewards are equal

✅ test/parallel/xyk-pallet.API.poolLiqudity.sepClaimRewards.test.ts

✅ One user claim all the rewards on every session and other user claim them at the 3rd session, the sum of rewards are equal