Skip to content
LogoLogo

NativeClaims

Git Source

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

NameTypeDescription
managerIPoolManager

redeem

function redeem(address recipient, uint256 amount) external nonReentrant;

Parameters

NameTypeDescription
recipientaddress
amountuint256

unlockCallback

function unlockCallback(bytes calldata data) external returns (bytes memory);

Parameters

NameTypeDescription
databytes

Returns

NameTypeDescription
<none>bytes

Events

NativeRedeemed

event NativeRedeemed(address indexed owner, address indexed recipient, uint256 amount);

Parameters

NameTypeDescription
owneraddress
recipientaddress
amountuint256

Errors

OnlyPoolManager

error OnlyPoolManager();

InvalidRedemption

error InvalidRedemption();

ReentrantRedemption

error ReentrantRedemption();