Skip to main content

WeightedBalancerPoolManager

an abstract utility class for a contract that manages a Balancer WeightedPool (including LBP) exposes the governable methods to Fei Governors or admins

Functions

constructor

function constructor() internal

setSwapEnabled

function setSwapEnabled(
contract IWeightedPool pool,
bool swapEnabled
) public

Parameters

NameTypeDescription
poolcontract IWeightedPool
swapEnabledbool

updateWeightsGradually

function updateWeightsGradually(
contract IWeightedPool pool,
uint256 startTime,
uint256 endTime,
uint256[] endWeights
) public

Parameters

NameTypeDescription
poolcontract IWeightedPool
startTimeuint256
endTimeuint256
endWeightsuint256[]

_updateWeightsGradually

function _updateWeightsGradually(
contract IWeightedPool pool,
uint256 startTime,
uint256 endTime,
uint256[] endWeights
) internal

Parameters

NameTypeDescription
poolcontract IWeightedPool
startTimeuint256
endTimeuint256
endWeightsuint256[]

withdrawCollectedManagementFees

function withdrawCollectedManagementFees(
contract IWeightedPool pool,
address recipient
) public

Parameters

NameTypeDescription
poolcontract IWeightedPool
recipientaddress