Skip to content

Commit

Permalink
test: add assumptions that addresses do not clash
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Dec 16, 2024
1 parent 6426396 commit ba1eb1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/large/ReservoirPriceOracleLarge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ contract ReservoirPriceOracleLargeTest is ReservoirPriceOracleTest {
assumeNotForgeAddress(aTokenBAddress);
assumeNotForgeAddress(aTokenCAddress);
assumeNotForgeAddress(aTokenDAddress);
vm.assume(
aTokenAAddress != aTokenBAddress && aTokenAAddress != aTokenCAddress && aTokenAAddress != aTokenDAddress
&& aTokenBAddress != aTokenCAddress && aTokenBAddress != aTokenDAddress && aTokenBAddress != aTokenDAddress
);
uint256 lPrice1 = bound(aPrice1, 1e12, 1e24);
uint256 lPrice2 = bound(aPrice2, 1e12, 1e24);
uint256 lPrice3 = bound(aPrice3, 1e12, 1e24);
Expand Down

0 comments on commit ba1eb1b

Please sign in to comment.