Skip to main content

JBAllowanceSucker

Git Source

Inherits: JBSucker

Functions

_pullBackingAssets

Cash out the project tokens for the cash out tokens.

function _pullBackingAssets(
IERC20 projectToken,
uint256 count,
address token,
uint256 minTokensReclaimed
)
internal
virtual
override
returns (uint256 receivedAmount);

Parameters

NameTypeDescription
projectTokenIERC20the token to cash out.
countuint256the amount of project tokens to cash out.
tokenaddressthe token to reclaim.
minTokensReclaimeduint256the minimum amount of tokens to receive.

Returns

NameTypeDescription
receivedAmountuint256the amount of tokens received by cashing out.

Errors

JBAllowanceSucker_NoTerminalForToken

error JBAllowanceSucker_NoTerminalForToken(uint256 projectId, address token);

JBAllowanceSucker_TokenNotAccepted

error JBAllowanceSucker_TokenNotAccepted(uint256 projectId, address token);