Skip to content

Commit

Permalink
chore: Unskip fixed test files
Browse files Browse the repository at this point in the history
  • Loading branch information
alsco77 committed Aug 16, 2021
1 parent 66bdc11 commit d400c04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/rewards/boosted-dual-vault.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface StakingData {
contractData: ContractData
}

describe.skip("BoostedDualVault", async () => {
describe("BoostedDualVault", async () => {
const ctx: Partial<IRewardsDistributionRecipientContext> = {}

let sa: StandardAccounts
Expand Down
14 changes: 7 additions & 7 deletions test/rewards/boosted-vault.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interface StakingData {
contractData: ContractData
}

describe.skip("BoostedVault", async () => {
describe("BoostedVault", async () => {
const ctx: Partial<IRewardsDistributionRecipientContext> = {}

let sa: StandardAccounts
Expand All @@ -86,7 +86,7 @@ describe.skip("BoostedVault", async () => {
let boostDirector: BoostDirector

const maxVMTA = simpleToExactAmount(300000, 18)
const maxBoost = simpleToExactAmount(4, 18)
const maxBoost = simpleToExactAmount(3, 18)
const minBoost = simpleToExactAmount(1, 18)
const floor = simpleToExactAmount(95, 16)
const coeff = BN.from(45)
Expand Down Expand Up @@ -503,7 +503,7 @@ describe.skip("BoostedVault", async () => {
it("should calculate boost for 10k imUSD stake and 250 vMTA", async () => {
const deposit = simpleToExactAmount(3333, 14)
const stake = simpleToExactAmount(250, 18)
const expectedBoost = simpleToExactAmount(12067, 14)
const expectedBoost = simpleToExactAmount(9999, 14)

await expectSuccessfulStake(deposit)
await stakingContract.setBalanceOf(sa.default.address, stake)
Expand All @@ -514,7 +514,7 @@ describe.skip("BoostedVault", async () => {
assertBNClosePercent(boost(deposit, calcBoost(deposit, stake, priceCoeffOverride)), expectedBoost, "0.1")

const ratio = await savingsVault.getBoost(sa.default.address)
assertBNClosePercent(ratio, simpleToExactAmount(3.621))
assertBNClosePercent(ratio, simpleToExactAmount(3))
})
// 10k imUSD = 1k $ = 0.33 imBTC
it("should calculate boost for 10k imUSD stake and 50 vMTA", async () => {
Expand Down Expand Up @@ -560,7 +560,7 @@ describe.skip("BoostedVault", async () => {
it("should calculate boost for 10k imUSD stake and 250 vMTA", async () => {
const deposit = simpleToExactAmount(10000)
const stake = simpleToExactAmount(250, 18)
const expectedBoost = simpleToExactAmount(36210)
const expectedBoost = simpleToExactAmount(30000)

await expectSuccessfulStake(deposit)
await stakingContract.setBalanceOf(sa.default.address, stake)
Expand All @@ -570,7 +570,7 @@ describe.skip("BoostedVault", async () => {
assertBNClosePercent(balance, expectedBoost)
assertBNClosePercent(boost(deposit, calcBoost(deposit, stake)), expectedBoost, 0.1)
const ratio = await savingsVault.getBoost(sa.default.address)
assertBNClosePercent(ratio, simpleToExactAmount(3.621))
assertBNClosePercent(ratio, simpleToExactAmount(3))
})
it("should calculate boost for 10k imUSD stake and 50 vMTA", async () => {
const deposit = simpleToExactAmount(10000, 18)
Expand Down Expand Up @@ -700,7 +700,7 @@ describe.skip("BoostedVault", async () => {
const aliceData = await snapshotStakingData(alice, alice)
const bobData = await snapshotStakingData(bob, bob)

assertBNClosePercent(aliceData.userRewards[1].rate, bobData.userRewards[1].rate.mul(4), "0.1")
assertBNClosePercent(aliceData.userRewards[1].rate, bobData.userRewards[1].rate.mul(3), "0.1")
})
})
})
Expand Down

0 comments on commit d400c04

Please sign in to comment.