Skip to main content

IStrategy

IStrategy​

deposit​

function deposit(address _asset, uint256 _amount) external

Deposit the given asset to platform

Parameters​

NameTypeDescription
_assetaddressasset address
_amountuint256Amount to deposit

depositAll​

function depositAll() external

Deposit the entire balance of all supported assets in the Strategy to the platform

withdraw​

function withdraw(address _recipient, address _asset, uint256 _amount) external

Withdraw given asset from Lending platform

withdrawAll​

function withdrawAll() external

Liquidate all assets in strategy and return them to Vault.

checkBalance​

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

Returns the current balance of the given asset.

supportsAsset​

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

Returns bool indicating whether strategy supports asset.

collectRewardTokens​

function collectRewardTokens() external

Collect reward tokens from the Strategy.

getRewardTokenAddresses​

function getRewardTokenAddresses() external view returns (address[])

The address array of the reward tokens for the Strategy.