MockWeightedPool
Functions
constructor
function constructor(
contract MockVault vault,
address owner
) public
Parameters
Name | Type | Description |
---|---|---|
vault | contract MockVault | |
owner | address |
mockInitApprovals
function mockInitApprovals() external
mockSetNormalizedWeights
function mockSetNormalizedWeights(
uint256[] _weights
) external
Parameters
Name | Type | Description |
---|---|---|
_weights | uint256[] |
getNormalizedWeights
function getNormalizedWeights() external returns (uint256[] _weights)
getRate
function getRate() external returns (uint256)
mockSetRate
function mockSetRate(
uint256 _rate
) external
Parameters
Name | Type | Description |
---|---|---|
_rate | uint256 |
getGradualWeightUpdateParams
function getGradualWeightUpdateParams() external returns (uint256 startTime, uint256 endTime, uint256[] endWeights)
setSwapEnabled
function setSwapEnabled(
bool swapEnabled
) external
Parameters
Name | Type | Description |
---|---|---|
swapEnabled | bool |
updateWeightsGradually
function updateWeightsGradually(
uint256 startTime,
uint256 endTime,
uint256[] endWeights
) external
Parameters
Name | Type | Description |
---|---|---|
startTime | uint256 | |
endTime | uint256 | |
endWeights | uint256[] |
setSwapFeePercentage
function setSwapFeePercentage(
uint256 swapFeePercentage
) external
Parameters
Name | Type | Description |
---|---|---|
swapFeePercentage | uint256 |
setPaused
function setPaused(
bool paused
) external
Parameters
Name | Type | Description |
---|---|---|
paused | bool |