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

removeCollectionInterceptor

function removeCollectionInterceptor(address interceptor) external nonpayable

Remove a interceptor from the system

Parameters

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

View methods

isInterceptorWhitelisted

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

Returns if a interceptor is in the system

Parameters

Returns

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

viewCountWhitelistedCurrencies

function viewCountWhitelistedCurrencies() external view returns (uint256)

View number of whitelisted currencies

Returns

viewWhitelistedInterceptors

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

See whitelisted interceptors in the system

Parameters

Returns

Events

CollectionInterceptorRemoved

event CollectionInterceptorRemoved(address indexed interceptor)

Parameters

CollectionInterceptorWhitelisted

event CollectionInterceptorWhitelisted(address indexed interceptor)

Parameters

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

Last updated