Skip to main content

FraxETHStrategy

FraxETHStrategy

weth

address weth

fraxETHMinter

contract IFraxETHMinter fraxETHMinter

constructor

constructor(struct InitializableAbstractStrategy.BaseStrategyConfig _baseConfig, address _assetToken) public

Parameters

NameTypeDescription
_baseConfigstruct InitializableAbstractStrategy.BaseStrategyConfigBase strategy config with platformAddress (sfrxETH) and vaultAddress (OETHVaultProxy)
_assetTokenaddressAddress of the ERC-4626 asset token (frxETH)

initialize

function initialize() external

_deposit

function _deposit(address _asset, uint256 _amount) internal

Deposit assets by converting them to shares

Parameters

NameTypeDescription
_assetaddressAddress of asset to deposit
_amountuint256Amount of asset to deposit

supportsAsset

function supportsAsset(address _asset) public view returns (bool)

Retuns bool indicating whether asset is supported by strategy

Parameters

NameTypeDescription
_assetaddressAddress of the asset

checkBalance

function checkBalance(address _asset) external view virtual returns (uint256 balance)

Get the total asset value held in the platform

Parameters

NameTypeDescription
_assetaddressAddress of the asset

Return Values

NameTypeDescription
balanceuint256Total value of the asset in the platform

depositAll

function depositAll() external virtual

Deposit the entire balance of assetToken to gain shareToken

receive

receive() external payable

Accept ETH