Skip to main content

IReleaser

Git Source

Inherits: IResourceManager, INonce

Functions

TOKEN_JAR

function TOKEN_JAR() external view returns (ITokenJar);

Returns

NameTypeDescription
<none>ITokenJarAddress of the Token Jar contract that will release the assets

release

Releases assets to a specified recipient if the resource threshold is met

function release(uint256 _nonce, Currency[] calldata assets, address recipient) external;

Parameters

NameTypeDescription
_nonceuint256The nonce for the release, must equal to the contract nonce otherwise revert
assetsCurrency[]The list of assets (addresses) to release, which may have length limits Native tokens (Ether) are represented as the zero address
recipientaddressThe address to receive the released assets, paid out by Token Jar