Custom Integrations
Interface: ICustomIntegration.sol​
Example (Yearn): CustomIntegrationYearn.sol​

Functions

The following functions can be called by anyone. Strategy operations call it to execute them within its context.
1
function enter(
2
address _strategy,
3
bytes calldata _data,
4
uint256 _resultTokensOut,
5
address[] memory _inputTokens,
6
uint256[] memory _maxAmountsIn
7
) external;
8
​
9
function exit(
10
address _strategy,
11
bytes calldata _data,
12
uint256 _resultTokensIn,
13
address[] memory _inputTokens,
14
uint256[] memory _minAmountsOut
15
) external;
16
​
17
function isValid(bytes calldata _data) external view returns (bool);
18
​
19
function getInputTokensAndWeights(bytes calldata _data) external view returns (address[] memory, uint256[] memory);
20
​
21
function getResultToken(address _data) external view returns (address);
22
​
23
function getPriceResultToken(bytes calldata _data, address _tokenAddress) external view returns (uint256);
24
​
25
function getOutputTokensAndMinAmountOut(address _strategy, bytes calldata _data, uint256 _resultTokenAmount)
26
external
27
view
28
returns (address[] memory exitTokens, uint256[] memory _minAmountsOut);
29
​
30
function getRewardTokens(bytes calldata _data) external view returns (address[] memory);
Copied!
Copy link
Contents
Functions