Skip to main content

IStrategyManager

LooksRare protocol team (👀,💎)

IStrategyManager

Events​

NewStrategy​

event NewStrategy(uint256 strategyId, uint16 standardProtocolFeeBp, uint16 minTotalFeeBp, uint16 maxProtocolFeeBp, bytes4 selector, bool isMakerBid, address implementation)

It is emitted when a new strategy is added.

Parameters​

NameTypeDescription
strategyIduint256Id of the new strategy
standardProtocolFeeBpuint16Standard protocol fee (in basis point)
minTotalFeeBpuint16Minimum total fee (in basis point)
maxProtocolFeeBpuint16Maximum protocol fee (in basis point)
selectorbytes4Function selector for the transaction to be executed
isMakerBidboolWhether the strategyId is for maker bid
implementationaddressAddress of the implementation of the strategy

StrategyUpdated​

event StrategyUpdated(uint256 strategyId, bool isActive, uint16 standardProtocolFeeBp, uint16 minTotalFeeBp)

It is emitted when an existing strategy is updated.

Parameters​

NameTypeDescription
strategyIduint256Id of the strategy
isActiveboolWhether the strategy is active (or not) after the update
standardProtocolFeeBpuint16Standard protocol fee (in basis point)
minTotalFeeBpuint16Minimum total fee (in basis point)

Errors​

NotV2Strategy​

error NotV2Strategy()

If the strategy has not set properly its implementation contract.

It can only be returned for owner operations.

StrategyHasNoSelector​

error StrategyHasNoSelector()

It is returned if the strategy has no selector.

It can only be returned for owner operations.

StrategyNotUsed​

error StrategyNotUsed()

It is returned if the strategyId is invalid.

StrategyProtocolFeeTooHigh​

error StrategyProtocolFeeTooHigh()

It is returned if the strategy's protocol fee is too high.

It can only be returned for owner operations.