Skip to main content

TokenJar

Git Source

Inherits: Owned, ITokenJar

A singular destination for protocol fees

Fees accumulate passively in this contract from external sources. Stored fees can be released by an authorized releaser contract.

Note: security-contact: security@uniswap.org

State Variables

releaser

The releaser has exclusive access to the release() function

address public releaser

Functions

onlyReleaser

Ensures only the releaser can call the release function

modifier onlyReleaser() ;

constructor

creates an token jar where the deployer is the initial owner during deployment, the deployer SHOULD set the releaser address and transfer ownership

constructor() Owned(msg.sender);

release

Release assets to a specified recipient

only callable by releaser

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

setReleaser

Set the address of the IReleaser contract

only callabe by owner

function setReleaser(address _releaser) external onlyOwner;

receive

receive() external payable;