From 108224def286db0d904b1848b3dfd5a6accce058 Mon Sep 17 00:00:00 2001 From: katzman Date: Thu, 15 Aug 2024 22:40:40 -0700 Subject: [PATCH] Constant change for minimum duration (#87) --- src/L2/RegistrarController.sol | 2 +- test/Integration/IntegrationTestBase.t.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/L2/RegistrarController.sol b/src/L2/RegistrarController.sol index 7b888956..4c35c9b5 100644 --- a/src/L2/RegistrarController.sol +++ b/src/L2/RegistrarController.sol @@ -97,7 +97,7 @@ contract RegistrarController is Ownable { /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @notice The minimum registration duration, specified in seconds. - uint256 public constant MIN_REGISTRATION_DURATION = 28 days; + uint256 public constant MIN_REGISTRATION_DURATION = 365 days; /// @notice The minimum name length. uint256 public constant MIN_NAME_LENGTH = 3; diff --git a/test/Integration/IntegrationTestBase.t.sol b/test/Integration/IntegrationTestBase.t.sol index 3c3d8abd..9acd2630 100644 --- a/test/Integration/IntegrationTestBase.t.sol +++ b/test/Integration/IntegrationTestBase.t.sol @@ -123,7 +123,7 @@ contract IntegrationTestBase is Test { vm.startPrank(alice); string memory name = "alice"; - uint256 duration = 90 days; + uint256 duration = 365.25 days; uint256 registerPrice = registrarController.registerPrice(name, duration); vm.deal(alice, registerPrice);