Skip to content

Commit

Permalink
fix fuzz failures on protocol rewards test (#347)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## Does this change the ABI/API?

- [ ] This changes the ABI/API

<!-- If so, please describe how and what potential impact this may have -->

## What tests did you add/modify to account for these changes

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New module / feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] i added a changeset to account for this change

## Reviewer Checklist:

- [ ] My review includes a symposis of the changes and potential issues
- [ ] The code style is enforced
- [ ] There are no risky / concerning changes / additions to the PR
  • Loading branch information
oveddan authored Apr 10, 2024
1 parent 9a16b81 commit 28486bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol-rewards/test/unit/ERC1155Rewards.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ contract ERC1155RewardsTest is ProtocolRewardsTest {
);
}

function testRemainderSentToZoraPaidMint(uint256 rewardPrice, uint256 numTokens, uint256 tokenPrice) public {
vm.assume(rewardPrice > 0.0000002 ether && rewardPrice < 2 ether);
function testRemainderSentToZoraPaidMint(uint128 rewardPrice, uint256 numTokens, uint256 tokenPrice) public {
vm.assume(rewardPrice > 0.0000002 ether && rewardPrice < 100 ether);
vm.assume(tokenPrice > 0 ether && tokenPrice < 5 ether);
vm.assume(numTokens > 0 && numTokens < 100_000);

Expand Down

0 comments on commit 28486bf

Please sign in to comment.