Skip to main content

V2Allocator

Juicebox split allocator for allocating V2 treasury funds to a V3 treasury.

Git Source

Mainnet: 0x6aaF7afeF64c6852EE507876f9D25F92bd9A1aE7

Goerli: 0xBA8a866Dd1f7195dB6205d3b8826273ba1EF49cc

Inherits: ERC165, IJBSplitAllocator

Adheres to:

  • IJBSplitAllocator: Adhere to Allocator pattern to receive payout distributions for allocation.

Inherits from:

  • ERC165: Introspection on interface adherance.

State Variables

directory

The V3 directory address.

IJBDirectory public immutable directory;

Functions

constructor

constructor(IJBDirectory _directory);

Parameters

NameTypeDescription
_directoryIJBDirectoryThe V3 directory address.

allocate

Allocate hook that will transfer treasury funds to V3.

function allocate(JBSplitAllocationData calldata _data) external payable override;

Parameters

NameTypeDescription
_dataJBSplitAllocationDataThe allocation config which specifies the destination of the funds.

supportsInterface

function supportsInterface(bytes4 _interfaceId) public view override(IERC165, ERC165) returns (bool);

Errors

TERMINAL_NOT_FOUND

error TERMINAL_NOT_FOUND();