UNPKG

@dydxfoundation/governance

Version:
21 lines (20 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const affected_stakers_1 = require("../../src/lib/affected-stakers"); const impersonate_account_1 = require("../../src/migrations/helpers/impersonate-account"); const get_affected_stakers_for_test_1 = require("../helpers/get-affected-stakers-for-test"); const staking_test_cases_1 = require("./test-cases/staking-test-cases"); describe('SM1Staking with new stakers', () => { (0, staking_test_cases_1.addStakingTestCases)((ctx) => [ ctx.users[0], ctx.users[1], ]); }); describe('SM1Staking with stakers affected by the Safety Module bug', () => { if ((0, get_affected_stakers_for_test_1.getAffectedStakersForTest)().length >= 2) { (0, staking_test_cases_1.addStakingTestCases)(async () => [ await (0, impersonate_account_1.impersonateAccount)(affected_stakers_1.AFFECTED_STAKERS[0]), await (0, impersonate_account_1.impersonateAccount)(affected_stakers_1.AFFECTED_STAKERS[1]), ]); } });