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

Fix: fix cumulative rewards calculations #650

Merged
merged 1 commit into from
Dec 4, 2023

Fix: fix cumulative rewards calculations

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

Fix: fix cumulative rewards calculations #650

Fix: fix cumulative rewards calculations
1ef50f5
Select commit
Loading
Failed to load commit list.
GitHub Actions / E2E report yarn test-maintenance succeeded Dec 4, 2023 in 1s

E2E report yarn test-maintenance ✅

Tests passed successfully

✅ e2eTests/reports/junit.xml-3ff4b4b0-9298-11ee-a21a-2342552b8db6.xml

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

Test suite Passed Failed Skipped Time
test/sequential/xyk-pallet.api.maintenance-config.test.ts 4✅ 936s
test/sequential/xyk-pallet.api.maintenance-rules.test.ts 6✅ 420s

✅ 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