NativeClaims
Redeems the caller's PoolManager native ETH claims to a chosen recipient.
Approve this contract for native claim ID 0 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(address recipient, uint256 amount) external nonReentrant;Parameters
| Name | Type | Description |
|---|---|---|
| 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
NativeRedeemed
event NativeRedeemed(address indexed owner, address indexed recipient, uint256 amount);Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| recipient | address | |
| amount | uint256 |
Errors
OnlyPoolManager
error OnlyPoolManager();InvalidRedemption
error InvalidRedemption();ReentrantRedemption
error ReentrantRedemption();