TokenClaims
Redeems the caller's PoolManager currency claims to a chosen recipient.
Approve this contract for the currency claim ID on PoolManager before redeeming. Claim ownership and allowances are enforced by PoolManager.burn. No hook escrow is accessible.
Constants
poolManager
IPoolManager public immutable poolManager;State Variables
_redeeming
bool private _redeeming;Functions
nonReentrant
modifier nonReentrant();constructor
constructor(IPoolManager manager);Parameters
| Name | Type | Description |
|---|---|---|
| manager | IPoolManager |
redeem
function redeem(Currency currency, address recipient, uint256 amount) external nonReentrant;Parameters
| Name | Type | Description |
|---|---|---|
| currency | Currency | |
| recipient | address | |
| amount | uint256 |
unlockCallback
function unlockCallback(bytes calldata data) external returns (bytes memory);Parameters
| Name | Type | Description |
|---|---|---|
| data | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes |
Events
ClaimsRedeemed
event ClaimsRedeemed(address indexed owner, address indexed recipient, Currency indexed currency, uint256 amount);Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| recipient | address | |
| currency | Currency | |
| amount | uint256 |
Errors
OnlyPoolManager
error OnlyPoolManager();InvalidRedemption
error InvalidRedemption();ReentrantRedemption
error ReentrantRedemption();