Skip to content

fTokenNativeUnderlying ​

Git Source

Inherits:fTokenNativeUnderlyingEIP2612Withdrawals

Same as the {fToken} contract but with support for native token as underlying asset. Actual underlying asset is the wrapped native ERC20 version (e.g. WETH), which acts like any other fToken. But in addition the fTokenNativeUnderlying also has methods for doing all the same actions via the native token.

Functions ​

constructor ​

solidity
constructor(IFluidLiquidity liquidity_, IFluidLendingFactory lendingFactory_, IWETH9 weth_)
    fToken(liquidity_, lendingFactory_, IERC20(address(weth_)));

Parameters

NameTypeDescription
liquidity_IFluidLiquidityliquidity contract address
lendingFactory_IFluidLendingFactorylending factory contract address
weth_IWETH9address of wrapped native token (e.g. WETH)

liquidityCallback ​

solidity
function liquidityCallback(address, uint256, bytes calldata) external virtual override(IFToken, fToken);

receive ​

solidity
receive() external payable;