Skip to content
LogoLogo

FeeVault

Git Source

Holds and redeems protocol fee claims, never maker escrow.

Constants

poolManager

IPoolManager public immutable poolManager;

hook

IFeeOwner public immutable hook;

Functions

constructor

constructor(IPoolManager manager);

Parameters

NameTypeDescription
managerIPoolManager

collect

The current protocol owner may redeem all fees of one currency.

function collect(Currency currency, address recipient) external;

Parameters

NameTypeDescription
currencyCurrency
recipientaddress

unlockCallback

PoolManager only calls this vault back during its own collection unlock.

function unlockCallback(bytes calldata data) external returns (bytes memory);

Parameters

NameTypeDescription
databytes

Returns

NameTypeDescription
<none>bytes

Events

FeesCollected

event FeesCollected(Currency indexed currency, address indexed recipient, uint256 amount);

Parameters

NameTypeDescription
currencyCurrency
recipientaddress
amountuint256

Errors

Unauthorized

error Unauthorized();

ZeroAddress

error ZeroAddress();