Skip to main content

ThreePoolStrategy

ThreePoolStrategy

crvGaugeAddress

address crvGaugeAddress

crvMinterAddress

address crvMinterAddress

constructor

constructor(struct InitializableAbstractStrategy.BaseStrategyConfig _stratConfig) public

initialize

function initialize(address[] _rewardTokenAddress, address[] _assets, address[] _pTokens, address _crvGaugeAddress, address _crvMinterAddress) external

Initializer for setting up strategy internal state. This overrides the InitializableAbstractStrategy initializer as Curve strategies don't fit well within that abstraction.

Parameters

NameTypeDescription
_rewardTokenAddressaddress[]Address of CRV
_assetsaddress[]Addresses of supported assets. MUST be passed in the same order as returned by coins on the pool contract, i.e. DAI, USDC, USDT
_pTokensaddress[]Platform Token corresponding addresses
_crvGaugeAddressaddressAddress of the Curve DAO gauge for this pool
_crvMinterAddressaddressAddress of the CRV minter for rewards

_lpDepositAll

function _lpDepositAll() internal

_lpWithdraw

function _lpWithdraw(uint256 numPTokens) internal

_lpWithdrawAll

function _lpWithdrawAll() internal

checkBalance

function checkBalance(address _asset) public view 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

_approveBase

function _approveBase() internal

collectRewardTokens

function collectRewardTokens() public

Collect accumulated CRV and send to Vault.