Skip to content

Commit

Permalink
Add sanction expiry and exit window periods; update contract to Kinto…
Browse files Browse the repository at this point in the history
…IDV10 and fix typo in IKintoID interface.
  • Loading branch information
ylv-io committed Dec 10, 2024
1 parent 369a8e6 commit cf4f7be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/KintoID.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -650,6 +652,6 @@ contract KintoID is
}
}

contract KintoIDV9 is KintoID {
contract KintoIDV10 is KintoID {
constructor(address _walletFactory, address _faucet) KintoID(_walletFactory, _faucet) {}
}
2 changes: 1 addition & 1 deletion src/interfaces/IKintoID.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 ============ */
Expand Down

0 comments on commit cf4f7be

Please sign in to comment.