fTokenNativeUnderlyingEIP2612Withdrawals ​
Inherits:fTokenNativeUnderlyingActions
fTokens support EIP-2612 permit approvals via signature so withdrawals are possible with signature. This contract implements those withdrawals for a native underlying asset.
Functions ​
withdrawWithSignatureNative ​
Withdraws native assets using an EIP-2612 share permit.
solidity
function withdrawWithSignatureNative(
uint256 sharesToPermit_,
uint256 assets_,
address receiver_,
address owner_,
uint256 maxSharesBurn_,
uint256 deadline_,
bytes calldata signature_
) external nonReentrant returns (uint256 shares_);redeemWithSignatureNative ​
Redeems shares for native assets using an EIP-2612 share permit.
solidity
function redeemWithSignatureNative(
uint256 shares_,
address receiver_,
address owner_,
uint256 minAmountOut_,
uint256 deadline_,
bytes calldata signature_
) external nonReentrant returns (uint256 assets_);