mirror of
https://github.com/vacp2p/staking-reward-streamer.git
synced 2026-01-09 13:08:03 -05:00
Most of the reasoning has been discussed in #208. Primarily what's happening here is: - `StakeManager.VaultData.lockUntil` has been removed - `StakeVault.lockUntil` has been introduced - `StakeVault.updateLockUntil(uint256 value)` has been introduced - `StakeVault.leave()` performs normal `leave()` action but keeps funds in vault if lockup period hasn't expired - `StakeVault.withdrawFromVault()` has been introduced to withdraw remaining *stake* funds in vault BREAKING CHANGE: - `StakeManager.VaultData.lockUntil` has been removed - `StakeVault.lockUntil` has been introduced - `StakeVault.leave()` performs normal `leave()` action but keeps funds in vault if lockup period hasn't expired Closes #208
14 lines
367 B
Solidity
14 lines
367 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity 0.8.26;
|
|
|
|
import { StakeManager } from "../../src/StakeManager.sol";
|
|
import { IStakeVault } from "../../src/interfaces/IStakeVault.sol";
|
|
|
|
contract StakeManagerHarness is StakeManager {
|
|
function getVaultLockUntil(address vault) public view returns (uint256) {
|
|
return IStakeVault(vault).lockUntil();
|
|
}
|
|
}
|
|
|