JBAllowanceSucker
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
Name | Type | Description |
---|---|---|
projectToken | IERC20 | the token to cash out. |
count | uint256 | the amount of project tokens to cash out. |
token | address | the token to reclaim. |
minTokensReclaimed | uint256 | the minimum amount of tokens to receive. |
Returns
Name | Type | Description |
---|---|---|
receivedAmount | uint256 | the 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);