InterceptorManager

It allows adding/removing interceptor for trading on the Bend exchange.

Methods

addCollectionInterceptor

function addCollectionInterceptor(address interceptor) external nonpayable

Add a interceptor in the system

Parameters

NameTypeDescription

interceptor

address

address of the interceptor to add

removeCollectionInterceptor

function removeCollectionInterceptor(address interceptor) external nonpayable

Remove a interceptor from the system

Parameters

NameTypeDescription

interceptor

address

address of the interceptor to remove

renounceOwnership

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.

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription

newOwner

address

address of the new owner

View methods

isInterceptorWhitelisted

function isInterceptorWhitelisted(address currency) external view returns (bool)

Returns if a interceptor is in the system

Parameters

NameTypeDescription

interceptor

address

address of the interceptor

Returns

NameTypeDescription

-

bool

whether interceptor is whitelisted

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription

owner

address

address of the current owner

viewCountWhitelistedCurrencies

function viewCountWhitelistedCurrencies() external view returns (uint256)

View number of whitelisted currencies

Returns

NameTypeDescription

-

uint256

number of currencies valid on the exchange

viewWhitelistedInterceptors

function viewWhitelistedInterceptors(uint256 cursor, uint256 size) external view returns (address[], uint256)

See whitelisted interceptors in the system

Parameters

NameTypeDescription

cursor

uint256

cursor (should start at 0 for first request)

size

uint256

size of the response (e.g., 50)

Returns

NameTypeDescription

-

address[]

array of currency addresses

cursor

uint256

cursor position

Events

CollectionInterceptorRemoved

event CollectionInterceptorRemoved(address indexed interceptor)

Parameters

NameTypeDescription

interceptor indexed

address

address of the interceptor

CollectionInterceptorWhitelisted

event CollectionInterceptorWhitelisted(address indexed interceptor)

Parameters

NameTypeDescription

interceptor indexed

address

address of the interceptor

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription

previousOwner indexed

address

address of the previous owner

newOwner indexed

address

address of the new owner

Last updated