Functions and Usage
function lockTokens(uint256 amount, uint256 duration) public {
// Function implementation
}
// Usage
/**
* @notice Lock tokens in the vault for a specified duration.
* @param amount The number of tokens to lock.
* @param duration The period for which the tokens will be locked.
* @example
* vault.lockTokens(1000, 365); // Locks 1000 tokens for 365 days
*/Last updated