Skip to content

Commit 2af76dd

Browse files
sunbreak1211telome
andauthored
Fix in test
Co-authored-by: telome <130504305+telome@users.noreply.github.com>
1 parent 26f0645 commit 2af76dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/Configurator.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,11 @@ contract ConfiguratorTest is DssTest {
392392
function testSetRateLimitNoOverflowWhenCurrentMaxAmountIsMax() public {
393393
bytes32 key = keccak256("overflow-key");
394394
_setupCBeam(address(target1), CBEAM1);
395-
_setupDefaultRateLimits(key, address(target1), 1_000 * WAD, 10 * WAD);
395+
_setupDefaultRateLimits(key, address(target1), 500 * WAD, 10 * WAD);
396396
// Current maxAmount is type(uint256).max — would overflow in `current.maxAmount * maxChange / WAD`
397397
_setupRateLimitData(target1, key, type(uint256).max, 10 * WAD, type(uint256).max, block.timestamp);
398398

399-
// Decrease to within defaults — should not overflow
399+
// Decrease to finite value above defaults — should not overflow
400400
vm.prank(CBEAM1);
401401
configurator.setRateLimit(address(target1), key, 1_000 * WAD, 10 * WAD);
402402

0 commit comments

Comments
 (0)