Skip to main content

MockWeightedPool

Functions

constructor

function constructor(
contract MockVault vault,
address owner
) public

Parameters

NameTypeDescription
vaultcontract MockVault
owneraddress

mockInitApprovals

function mockInitApprovals() external

mockSetNormalizedWeights

function mockSetNormalizedWeights(
uint256[] _weights
) external

Parameters

NameTypeDescription
_weightsuint256[]

getNormalizedWeights

function getNormalizedWeights() external returns (uint256[] _weights)

getRate

function getRate() external returns (uint256)

mockSetRate

function mockSetRate(
uint256 _rate
) external

Parameters

NameTypeDescription
_rateuint256

getGradualWeightUpdateParams

function getGradualWeightUpdateParams() external returns (uint256 startTime, uint256 endTime, uint256[] endWeights)

setSwapEnabled

function setSwapEnabled(
bool swapEnabled
) external

Parameters

NameTypeDescription
swapEnabledbool

updateWeightsGradually

function updateWeightsGradually(
uint256 startTime,
uint256 endTime,
uint256[] endWeights
) external

Parameters

NameTypeDescription
startTimeuint256
endTimeuint256
endWeightsuint256[]

setSwapFeePercentage

function setSwapFeePercentage(
uint256 swapFeePercentage
) external

Parameters

NameTypeDescription
swapFeePercentageuint256

setPaused

function setPaused(
bool paused
) external

Parameters

NameTypeDescription
pausedbool