Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AutomaticWeightStrategy

Git Source

Inherits: WeightStrategy, AccessControlEnumerable, Multicall

A strategy that returns the target weights based on external market cap data. This could be used for other purposes as well such as volume, liquidity, etc as long as the data is available on chain. Setters should not be implemented in this contract as the data is expected to be external and read-only.

Functions

constructor

constructor(address admin) payable;

getTargetWeights

function getTargetWeights(uint256 bitFlag) public view virtual override returns (uint64[] memory targetWeights);

supportsBitFlag

function supportsBitFlag(uint256 bitFlag) public view virtual override returns (bool);