ExecutionManager
It allows adding/removing execution strategies for trading on the Bend exchange.
Methods
addStrategy
Add an execution strategy in the system
Parameters
Name | Type | Description |
---|---|---|
strategy | address | address of the strategy to add |
removeStrategy
Remove an execution strategy from the system
Parameters
Name | Type | Description |
---|---|---|
strategy | address | address of the strategy to remove |
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
View methods
isStrategyWhitelisted
Returns if an execution strategy is in the system
Parameters
Name | Type | Description |
---|---|---|
strategy | address | address of the strategy |
Returns
Name | Type | Description |
---|---|---|
- | bool | whether execution strategy is valid |
owner
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
viewCountWhitelistedStrategies
View number of whitelisted strategies
Returns
Name | Type | Description |
---|---|---|
- | uint256 | number of execution strategies valid on the exchange |
viewWhitelistedStrategies
See whitelisted strategies in the system
Parameters
Name | Type | Description |
---|---|---|
cursor | uint256 | cursor (should start at 0 for first request) |
size | uint256 | size of the response (e.g., 50) |
Returns
Name | Type | Description |
---|---|---|
- | address[] | array of execution strategy addresses |
cursor | uint256 | cursor position |
Events
OwnershipTransferred
Parameters
Name | Type | Description |
---|---|---|
previousOwner | address | address of the previous owner |
newOwner | address | address of the new owner |
StrategyRemoved
Parameters
Name | Type | Description |
---|---|---|
strategy | address | address of the execution strategy |
StrategyWhitelisted
Parameters
Name | Type | Description |
---|---|---|
strategy | address | address of the execution strategy |
Last updated