fTokenNativeUnderlying
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
constructor(IFluidLiquidity liquidity_, IFluidLendingFactory lendingFactory_, IWETH9 weth_)
fToken(liquidity_, lendingFactory_, IERC20(address(weth_)));
Parameters
Name | Type | Description |
---|---|---|
liquidity_ | IFluidLiquidity | liquidity contract address |
lendingFactory_ | IFluidLendingFactory | lending factory contract address |
weth_ | IWETH9 | address of wrapped native token (e.g. WETH) |
liquidityCallback
function liquidityCallback(address, uint256, bytes calldata) external virtual override(IFToken, fToken);
receive
receive() external payable;