Skip to content

[MGX-522] Simplify XYK RPC api (#535) #1111

[MGX-522] Simplify XYK RPC api (#535)

[MGX-522] Simplify XYK RPC api (#535) #1111

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / E2E report yarn test-maintenance succeeded Sep 22, 2023 in 0s

E2E report yarn test-maintenance ✔️

Tests passed successfully

✔️ e2eTests/reports/junit-20ee6590-5934-11ee-8d76-579cae3be5be.xml

10 tests were completed in 1328s with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/sequential/xyk-pallet.api.maintenance-config.test.ts 4✔️ 920s
test/sequential/xyk-pallet.api.maintenance-rules.test.ts 6✔️ 408s

✔️ test/sequential/xyk-pallet.api.maintenance-config.test.ts

✔️ maintenance- try to change Maintenance Mode with a non-foundation account THEN it failed
✔️ check UpgradabilityOn can only be set after MaintenanceModeOn is set and MaintenanceMode works without UpgradabilityOn
✔️ maintenance- check we can sell MGX tokens and compoundRewards THEN switch maintenanceMode to on, repeat the operation and receive error
✔️ maintenance- validate that when UpgradabilityON, Sudo or council can only run upgradability extrinsics

✔️ test/sequential/xyk-pallet.api.maintenance-rules.test.ts

On Maintenance mode - multiSwaps / swaps / compound / prov liq are not allowed
  ✔️ multiswapSellAsset operation is not allowed in mm
  ✔️ multiswapBuyAsset operation is not allowed in mm
  ✔️ sellAsset operation is not allowed in mm
  ✔️ buyAsset operation is not allowed in mm
  ✔️ provideLiquidity operation is not allowed in mm
On Maintenance mode - aggregators and candidates are allowed
  ✔️ Join as candidate , Aggregate metadata and update CandidateAgg runs on Mm