Skip to content

Commit

Permalink
chore: added zero mBPT stake fork test
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed May 10, 2022
1 parent 1550965 commit 34177f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test-fork/governance/bpt-staked-token-upgrade.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,4 +423,15 @@ context("StakedToken deployments and vault upgrades", () => {
expect(await BAL.balanceOf(stkBPT.address), "stkmBPT's BAL rewards after").to.eq(0)
})
})
describe("fail to", () => {
before(async () => {
await setup(14612990)
await upgradeStkMbpt()
})
it("stake zero amount", async () => {
const tx = stkBPT.connect(mbptWhale.signer)["stake(uint256)"](0)

await expect(tx).to.revertedWith("INVALID_ZERO_AMOUNT")
})
})
})

0 comments on commit 34177f0

Please sign in to comment.