ITokenJar
The interface for releasing assets from the contract
Functions
releaser
The releaser has exclusive access to the release() function
function releaser() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
<none> | address | Address of the current IReleaser |
setReleaser
Set the address of the IReleaser contract
only callabe by owner
function setReleaser(address _releaser) external;
release
Release assets to a specified recipient
only callable by releaser
function release(Currency[] calldata assets, address recipient) external;
Errors
Unauthorized
Thrown when an unauthorized address attempts to call a restricted function
error Unauthorized();