StrategyManager
This contract handles the addition and the update of execution strategies.
strategyInfo
mapping(uint256 => struct IStrategyManager.Strategy) strategyInfo
This returns the strategy information for a strategy id.
constructor
constructor(address _owner) public
Constructor
Parameters
Name | Type | Description |
---|---|---|
_owner | address | Owner address |
addStrategy
function addStrategy(uint16 standardProtocolFeeBp, uint16 minTotalFeeBp, uint16 maxProtocolFeeBp, bytes4 selector, bool isMakerBid, address implementation) external
This function allows the owner to add a new execution strategy to the protocol.
Strategies have an id that is incremental. Only callable by owner.
Parameters
Name | Type | Description |
---|---|---|
standardProtocolFeeBp | uint16 | Standard protocol fee (in basis point) |
minTotalFeeBp | uint16 | Minimum total fee (in basis point) |
maxProtocolFeeBp | uint16 | Maximum protocol fee (in basis point) |
selector | bytes4 | Function selector for the strategy |
isMakerBid | bool | Whether the function selector is for maker bid |
implementation | address | Implementation address |
updateStrategy
function updateStrategy(uint256 strategyId, bool isActive, uint16 newStandardProtocolFee, uint16 newMinTotalFee) external
This function allows the owner to update parameters for an existing execution strategy.
Only callable by owner.
Parameters
Name | Type | Description |
---|---|---|
strategyId | uint256 | Strategy id |
isActive | bool | Whether the strategy must be active |
newStandardProtocolFee | uint16 | New standard protocol fee (in basis point) |
newMinTotalFee | uint16 | New minimum total fee (in basis point) |