Skip to content

Commit

Permalink
audit: fix inline comment to reference correct issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbennett committed May 2, 2024
1 parent 7bdb2f9 commit be7dd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/test/invariant/handlers/PointTokenVaultHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ contract PointTokenVaultHandler is Test {
uint256 rewardTokenIndex,
uint256 rewardPerPToken,
uint256 amount

) public useRandomActor(actorIndex) {
actorIndex = bound(actorIndex, 0, 12);
dstIndex = bound(dstIndex, 0, 12);
Expand Down Expand Up @@ -308,7 +307,8 @@ contract PointTokenVaultHandler is Test {
assertEq(senderRewardTokenBalanceBefore - rewardToken.balanceOf(currentActor), amount);
assertEq(pToken.balanceOf(actors[dstIndex].addr) - receiverPTokenBalanceBefore, pTokenAmount);

// This can be re-added when issue #x is resolved
// This can be re-added when issue #13 is resolved.
// Tests that pTokenAmount is never 0 if rewardAmount > 0
// if (amount > 0) {
// assertGt(pToken.balanceOf(actors[dstIndex].addr) - receiverPTokenBalanceBefore, 0);
// }
Expand Down

0 comments on commit be7dd98

Please sign in to comment.