From cf4f7be39ca10952142e98b5027402abc3de76da Mon Sep 17 00:00:00 2001 From: Igor Yalovoy Date: Tue, 10 Dec 2024 13:54:58 -0600 Subject: [PATCH] Add sanction expiry and exit window periods; update contract to KintoIDV10 and fix typo in IKintoID interface. --- src/KintoID.sol | 4 +++- src/interfaces/IKintoID.sol | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/KintoID.sol b/src/KintoID.sol index fc6772c8..df541ea1 100644 --- a/src/KintoID.sol +++ b/src/KintoID.sol @@ -92,8 +92,10 @@ contract KintoID is /// @notice Role identifier for governance actions bytes32 public constant override GOVERNANCE_ROLE = keccak256("GOVERNANCE_ROLE"); + /// @notice The period of time after which sanction is expired unless approved by governance uint256 public constant SANCTION_EXPIRY_PERIOD = 3 days; + /// @notice The period of time during which additional sanctions can't be applied and user can exit, unless sanctions approved by governance uint256 public constant EXIT_WINDOW_PERIOD = 10 days; /// @notice Address of the wallet factory contract @@ -650,6 +652,6 @@ contract KintoID is } } -contract KintoIDV9 is KintoID { +contract KintoIDV10 is KintoID { constructor(address _walletFactory, address _faucet) KintoID(_walletFactory, _faucet) {} } diff --git a/src/interfaces/IKintoID.sol b/src/interfaces/IKintoID.sol index 044af149..7e694985 100644 --- a/src/interfaces/IKintoID.sol +++ b/src/interfaces/IKintoID.sol @@ -45,7 +45,7 @@ interface IKintoID { /// @notice Thrown when attempting unauthorized token transfers error OnlyMintBurnOrTransfer(); - /// @notice + /// @notice Thrown when attempting to add or removing sanctions during exit widnow period error ExitWindowPeriod(address user, uint256 sanctionedAt); /* ============ Structs ============ */