Strategist Role
Strategist Parameters
//Key Parameters that a 'Strategist / Keeper' will be able to change
int256[] deltaIds; // The bins you want to add liquidity to. Each value is relative to the active bin ID
uint256[] distributionX; // The percentage of X you want to add to each bin in deltaIds
uint256[] distributionY; // The percentage of Y you want to add to each bin in deltaIds
uint256 idSlippage; // The slippage tolerance in case active bin moves during time it takes to transactExecute Rebalance
/// -----------------------------------------------------------
/// Rebalance function
/// -----------------------------------------------------------
/// @notice point of call to execute a rebalance of the strategy
/// @param _deltaIds the distibution of liquidity around the active bin
/// @param _distributionX the distibution of tokenX liquidity around the active bin
/// @param _distributionY the distibution of tokenY liquidity around the active bin
/// @param _idSlippage slippage of bins acceptable
/// @return amountX total amountX supplied after the rebalance
/// @return amountY total amountY supplied after the rebalance
function executeRebalance(
int256[] memory _deltaIds,
uint256[] memory _distributionX,
uint256[] memory _distributionY,
uint256 _idSlippage
) external onlyManager returns (uint256 amountX, uint256 amountY)Harvesting
Earn (Placing Funds to Work)
Advanced Usage
Last updated