FeeVault
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
| Name | Type | Description |
|---|---|---|
| manager | IPoolManager |
collect
The current protocol owner may redeem all fees of one currency.
function collect(Currency currency, address recipient) external;Parameters
| Name | Type | Description |
|---|---|---|
| currency | Currency | |
| recipient | address |
unlockCallback
PoolManager only calls this vault back during its own collection unlock.
function unlockCallback(bytes calldata data) external returns (bytes memory);Parameters
| Name | Type | Description |
|---|---|---|
| data | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes |
Events
FeesCollected
event FeesCollected(Currency indexed currency, address indexed recipient, uint256 amount);Parameters
| Name | Type | Description |
|---|---|---|
| currency | Currency | |
| recipient | address | |
| amount | uint256 |
Errors
Unauthorized
error Unauthorized();ZeroAddress
error ZeroAddress();