@@ -89,7 +89,7 @@ describe("mintReward", function () {
8989 . div ( HUNDRED_PERCENT ) ;
9090 await expect ( api3Pool . connect ( roles . randomPerson ) . mintReward ( ) )
9191 . to . emit ( api3Pool , "MintedReward" )
92- . withArgs ( nextEpoch , rewardAmount , newApr ) ;
92+ . withArgs ( nextEpoch , rewardAmount , newApr , totalStake . add ( rewardAmount ) ) ;
9393 expect ( await api3Pool . totalStake ( ) ) . to . equal (
9494 totalStake . add ( rewardAmount )
9595 ) ;
@@ -153,7 +153,7 @@ describe("mintReward", function () {
153153 . div ( HUNDRED_PERCENT ) ;
154154 await expect ( api3Pool . connect ( roles . randomPerson ) . mintReward ( ) )
155155 . to . emit ( api3Pool , "MintedReward" )
156- . withArgs ( nextEpoch , rewardAmount , newApr ) ;
156+ . withArgs ( nextEpoch , rewardAmount , newApr , totalStake . add ( rewardAmount ) ) ;
157157 expect ( await api3Pool . totalStake ( ) ) . to . equal (
158158 totalStake . add ( rewardAmount )
159159 ) ;
@@ -254,7 +254,7 @@ describe("mintReward", function () {
254254 . div ( HUNDRED_PERCENT ) ;
255255 await expect ( api3Pool . connect ( roles . randomPerson ) . mintReward ( ) )
256256 . to . emit ( api3Pool , "MintedReward" )
257- . withArgs ( genesisEpochPlusFive , rewardAmount , newApr ) ;
257+ . withArgs ( genesisEpochPlusFive , rewardAmount , newApr , totalStake . add ( rewardAmount ) ) ;
258258 expect ( await api3Pool . totalStake ( ) ) . to . equal (
259259 totalStake . add ( rewardAmount )
260260 ) ;
0 commit comments