-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore: Minor LiquidStone 90 day test cleanup"
This reverts commit 5cd9f52.
- Loading branch information
Showing
2 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
/** | ||
* @title ITimelockOpenEnded | ||
* @dev Interface for managing open-ended token locks with multiple deposit periods. | ||
* Tokens are locked indefinitely, but associated with specific deposit periods for tracking. | ||
*/ | ||
interface ITimelockOpenEnded { | ||
error ITimelockOpenEnded__ExceededMaxUnlock(address account, uint256 amount, uint256 maxUnlock); | ||
|
||
/// @notice Locks `amount` of tokens for `account` at the given `depositPeriod`. | ||
function lock(address account, uint256 depositPeriod, uint256 amount) external; | ||
|
||
/// @notice Unlocks `amount` of tokens for `account` from the given `depositPeriod`. | ||
function unlock(address account, uint256 depositPeriod, uint256 amount) external; | ||
|
||
/// @notice Returns the amount of tokens locked for `account` at the given `depositPeriod`. | ||
/// MUST always be the total amount locked, even if some locks are unlocked | ||
function lockedAmount(address account, uint256 depositPeriod) external view returns (uint256 lockedAmount_); | ||
|
||
/// @notice Returns the amount of tokens locked for `account` at the given `depositPeriod`. | ||
function unlockedAmount(address account, uint256 depositPeriod) external view returns (uint256 unlockedAmount_); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters