ExecutionManager
It allows adding/removing execution strategies for trading on the Bend exchange.
function addStrategy(address strategy) external nonpayable
Add an execution strategy in the system
Name | Type | Description |
---|---|---|
strategy | address | address of the strategy to add |
function removeStrategy(address strategy) external nonpayable
Remove an execution strategy from the system
Name | Type | Description |
---|---|---|
strategy | address | address of the strategy to remove |
function renounceOwnership() external nonpayable
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.function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
function isStrategyWhitelisted(address strategy) external view returns (bool)
Returns if an execution strategy is in the system
Name | Type | Description |
---|---|---|
strategy | address | address of the strategy |
Name | Type | Description |
---|---|---|
- | bool | whether execution strategy is valid |
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function viewCountWhitelistedStrategies() external view returns (uint256)
View number of whitelisted strategies
Name | Type | Description |
---|---|---|
- | uint256 | number of execution strategies valid on the exchange |
function viewWhitelistedStrategies(uint256 cursor, uint256 size) external view returns (address[], uint256)
See whitelisted strategies in the system
Name | Type | Description |
---|---|---|
cursor | uint256 | cursor (should start at 0 for first request) |
size | uint256 | size of the response (e.g., 50) |
Name | Type | Description |
---|---|---|
- | address[] | array of execution strategy addresses |
cursor | uint256 | cursor position |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Name | Type | Description |
---|---|---|
previousOwner indexed | address | address of the previous owner |
newOwner indexed | address | address of the new owner |
event StrategyRemoved(address indexed strategy)
Name | Type | Description |
---|---|---|
strategy indexed | address | address of the execution strategy |
event StrategyWhitelisted(address indexed strategy)
Name | Type | Description |
---|---|---|
strategy indexed | address | address of the execution strategy |
Last modified 10mo ago