JBRedeemParamsData
Codeβ
Definitionβ
/**
@member terminal The terminal that is facilitating the redemption.
@member holder The holder of the tokens being redeemed.
@member projectId The ID of the project whos tokens are being redeemed.
@member currentFundingCycleConfiguration The configuration of the funding cycle during which the redemption is being made.
@member tokenCount The proposed number of tokens being redeemed, as a fixed point number with 18 decimals.
@member totalSupply The total supply of tokens used in the calculation, as a fixed point number with 18 decimals.
@member overflow The amount of overflow used in the reclaim amount calculation.
@member reclaimAmount The amount that should be reclaimed by the redeemer using the protocol's standard bonding curve redemption formula. Includes the token being reclaimed, the reclaim value, the number of decimals included, and the currency of the reclaim amount.
@member useTotalOverflow If overflow across all of a project's terminals is being used when making redemptions.
@member redemptionRate The redemption rate of the funding cycle during which the redemption is being made.
@member ballotRedemptionRate The ballot redemption rate of the funding cycle during which the redemption is being made.
@member memo The proposed memo that is being emitted alongside the redemption.
@member metadata Arbitrary metadata provided by the redeemer.
*/
struct JBRedeemParamsData {
IJBPaymentTerminal terminal;
address holder;
uint256 projectId;
uint256 currentFundingCycleConfiguration;
uint256 tokenCount;
uint256 totalSupply;
uint256 overflow;
JBTokenAmount reclaimAmount;
bool useTotalOverflow;
uint256 redemptionRate;
uint256 ballotRedemptionRate;
string memo;
bytes metadata;
}
terminalis the terminal that is facilitating the redemption.holderis the holder of the tokens being redeemed.projectIdis the ID of the project whos tokens are being redeemed.currentFundingCycleConfigurationis the configuration of the funding cycle during which the payment is being made.tokenCountis the proposed number of tokens being redeemed, as a fixed point number with 18 decimals.totalSupplyis the total supply of tokens used in the calculation, as a fixed point number with 18 decimals.overflowis the amount of overflow used in the reclaim amount calculation.reclaimAmountis the amount that should be reclaimed by the redeemer using the protocol's standard bonding curve redemption formula. Includes the token being reclaimed, the reclaim value, the number of decimals included, and the currency of the reclaim amount.useTotalOverflowis if overflow across all of a project's terminals is being used when making redemptions.redemptionRateis the redemption rate of the funding cycle during which the redemption is being made.ballotRedemptionRateis the ballot redemption rate of the funding cycle during which the redemption is being made.memois the proposed memo that is being emitted alongside the redemption.metadatais extra data provided by the redeemer.