Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmrodri committed Oct 20, 2023
1 parent 4065714 commit 92fcaa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Revenues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ describe(`Revenues - P${IMPLEMENTATION}`, () => {
expect(await rsr.balanceOf(rsrTrader.address)).to.equal(0)
expect(await rsr.balanceOf(rTokenTrader.address)).to.equal(0)

// Advance to the end of noop period
await advanceTime(Number(ONE_PERIOD))

await expectEvents(backingManager.forwardRevenue([rsr.address]), [
{
contract: rsr,
Expand Down Expand Up @@ -706,6 +709,7 @@ describe(`Revenues - P${IMPLEMENTATION}`, () => {
// 1. StRSR.payoutRewards()
const stRSRBal = await rsr.balanceOf(stRSR.address)
await rsr.connect(owner).mint(rsrTrader.address, issueAmount)
await advanceTime(Number(ONE_PERIOD))
await expect(rsrTrader.distributeTokenToBuy()).to.emit(stRSR, 'RewardsPaid')
const expectedAmountStRSR = stRSRBal.add(issueAmount)
expect(await rsr.balanceOf(stRSR.address)).to.be.closeTo(expectedAmountStRSR, 100)
Expand Down

0 comments on commit 92fcaa2

Please sign in to comment.