Skip to main content

OsTokenVaultEscrowAuthMock

Git Source

Inherits: Ownable, IOsTokenVaultEscrowAuth

Author: StakeWise

Mocks the OsTokenVaultEscrowAuth contract for testing purposes

State Variables

_canRegister

mapping(address => bool) public _canRegister;

Functions

constructor

constructor(address _owner) Ownable(_owner);

setCanRegister

function setCanRegister(address user, bool canRegister_) external onlyOwner;

canRegister

Check if the caller can register the exit position

function canRegister(address, address owner, uint256, uint256) external view override returns (bool);

Parameters

NameTypeDescription
<none>address
owneraddressThe address of the assets owner
<none>uint256
<none>uint256

Returns

NameTypeDescription
<none>boolTrue if the caller can register the exit position