Skip to content

Commit 14cb780

Browse files
committed
fix: rename back to lock for now
1 parent 94e74d0 commit 14cb780

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/0.8.25/vaults/StakingVault.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ contract StakingVault is IStakingVault, OwnableUpgradeable {
287287
* @dev Can only be called by the vault owner; locked amount can only be increased
288288
* @param _locked New amount to lock
289289
*/
290-
function increaseLocked(uint256 _locked) external onlyOwner {
290+
function lock(uint256 _locked) external onlyOwner {
291291
ERC7201Storage storage $ = _getStorage();
292292
if (_locked <= $.locked) revert NewLockedLowerThanCurrent($.locked, _locked);
293293

contracts/0.8.25/vaults/interfaces/IStakingVault.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface IStakingVault {
4141
function fund() external payable;
4242
function withdraw(address _recipient, uint256 _ether) external;
4343

44-
function increaseLocked(uint256 _locked) external;
44+
function lock(uint256 _locked) external;
4545
function rebalance(uint256 _ether) external;
4646
function latestReport() external view returns (Report memory);
4747
function report(uint256 _valuation, int256 _inOutDelta, uint256 _locked) external;

0 commit comments

Comments
 (0)