Comment on page
InterceptorManager
It allows adding/removing interceptor for trading on the Bend exchange.
function addCollectionInterceptor(address interceptor) external nonpayable
Add a interceptor in the system
Name | Type | Description |
---|---|---|
interceptor | address | address of the interceptor to add |
function removeCollectionInterceptor(address interceptor) external nonpayable
Remove a interceptor from the system
Name | Type | Description |
---|---|---|
interceptor | address | address of the interceptor 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 isInterceptorWhitelisted(address currency) external view returns (bool)
Returns if a interceptor is in the system
Name | Type | Description |
---|---|---|
interceptor | address | address of the interceptor |
Name | Type | Description |
---|---|---|
- | bool | whether interceptor is whitelisted |
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function viewCountWhitelistedCurrencies() external view returns (uint256)
View number of whitelisted currencies
Name | Type | Description |
---|---|---|
- | uint256 | number of currencies valid on the exchange |
function viewWhitelistedInterceptors(uint256 cursor, uint256 size) external view returns (address[], uint256)
See whitelisted interceptors 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 currency addresses |
cursor | uint256 | cursor position |
event CollectionInterceptorRemoved(address indexed interceptor)
Name | Type | Description |
---|---|---|
interceptor indexed | address | address of the interceptor |
event CollectionInterceptorWhitelisted(address indexed interceptor)
Name | Type | Description |
---|---|---|
interceptor indexed | address | address of the interceptor |
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 |
Last modified 1yr ago