fTokenNativeUnderlyingActions ​
Inherits:fTokenNativeUnderlyingOverrides
implements deposit / mint / withdraw / redeem actions with Native token being used as interaction token.
Functions ​
depositNative ​
Deposits native assets and mints shares.
solidity
function depositNative(address receiver_) public payable nonReentrant returns (uint256 shares_);depositNative ​
Deposits native assets with a minimum shares check.
solidity
function depositNative(address receiver_, uint256 minAmountOut_) external payable returns (uint256 shares_);mintNative ​
Mints shares using native assets. Refunds any msg.value above the cost to msg.sender.
solidity
function mintNative(uint256 shares_, address receiver_) public payable nonReentrant returns (uint256 assets_);mintNative ​
Mints shares using native assets with a max asset check.
solidity
function mintNative(uint256 shares_, address receiver_, uint256 maxAssets_)
external
payable
returns (uint256 assets_);withdrawNative ​
Withdraws native assets and burns owner shares.
solidity
function withdrawNative(uint256 assets_, address receiver_, address owner_)
public
nonReentrant
returns (uint256 shares_);withdrawNative ​
Withdraws native assets with a max shares-burn check.
solidity
function withdrawNative(uint256 assets_, address receiver_, address owner_, uint256 maxSharesBurn_)
external
returns (uint256 shares_);redeemNative ​
Redeems owner shares for native assets.
solidity
function redeemNative(uint256 shares_, address receiver_, address owner_)
public
nonReentrant
returns (uint256 assets_);redeemNative ​
Redeems shares for native assets with a min output check.
solidity
function redeemNative(uint256 shares_, address receiver_, address owner_, uint256 minAmountOut_)
external
returns (uint256 assets_);