跳到主要内容

V1Allocator

Juicebox split allocator for allocating V1 treasury funds to a V3 treasury

Git Source

Mainnet: 0x1eb759829b1a3d55193472142f18df3091BcAc4B

Goerli: 0x8d9E7ef328A6aa45890Aa9751D45D66a4fd34447

Inherits: ERC165, IModAllocator

Adheres to:

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

Inherits from:

  • ERC165: Introspection on interface adherance.

State Variables

directory

The V3 directory address.

IJBDirectoryV3 public immutable directory;

Functions

constructor

constructor(IJBDirectoryV3 _directory);

Parameters

NameTypeDescription
_directoryIJBDirectoryV3The V3 directory address.

allocate

Allocate hook that will transfer treasury funds to V3.

function allocate(uint256 _projectId, uint256 _forProjectId, address _beneficiary) external payable override;

Parameters

NameTypeDescription
_projectIduint256The project ID where the funds are being transferred from. This is unused.
_forProjectIduint256The project ID where the funds will be transferred to.
_beneficiaryaddressThe address that should be the beneficiary of the allocation. This is unused.

supportsInterface

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

Errors

TERMINAL_NOT_FOUND

error TERMINAL_NOT_FOUND();