跳到主要内容

IJBFundingCycleDataSource3_1_1

Git Source

Inherits: IERC165

The datasource is called by JBPayoutRedemptionPaymentTerminals on pay and redemption, and provide an extra layer of logic to use a custom weight, a custom memo and/or a pay/redeem delegate

Functions

payParams

The datasource implementation for JBPaymentTerminal.pay(..)

function payParams(JBPayParamsData calldata data)
external
view
returns (
uint256 weight,
string memory memo,
JBPayDelegateAllocation3_1_1[] memory delegateAllocations
);

Parameters

NameTypeDescription
dataJBPayParamsDatathe data passed to the data source in terminal.pay(..), as a JBPayParamsData struct:

Returns

NameTypeDescription
weightuint256the weight to use to override the funding cycle weight
memostringthe memo to override the pay(..) memo
delegateAllocationsJBPayDelegateAllocation3_1_1[]The amount to send to delegates instead of adding to the local balance.

redeemParams

The datasource implementation for JBPaymentTerminal.redeemTokensOf(..)

function redeemParams(JBRedeemParamsData calldata data)
external
view
returns (
uint256 reclaimAmount,
string memory memo,
JBRedemptionDelegateAllocation3_1_1[] memory delegateAllocations
);

Parameters

NameTypeDescription
dataJBRedeemParamsDatathe data passed to the data source in terminal.redeemTokensOf(..), as a JBRedeemParamsData struct:

Returns

NameTypeDescription
reclaimAmountuint256The amount to claim, overriding the terminal logic.
memostringThe memo to override the redeemTokensOf(..) memo.
delegateAllocationsJBRedemptionDelegateAllocation3_1_1[]The amount to send to delegates instead of adding to the beneficiary.