Skip to main content

QueueProcessor

Git Source

Inherits: IProcessor, Context

Title: QueueProcessor

Author: SocksNFlops

The QueueProcessor contract is a contract that processes withdrawal requests from LenderQueues, enforcing any ordering restrictions between the queues.

Functions

process

Processes the withdrawal requests from a source

function process(address queue, uint256 iterations) external override;

Parameters

NameTypeDescription
queueaddress
iterationsuint256The number of iterations to process

isBlocked

Checks if the source is blocked by another source

function isBlocked(address) external pure override returns (address blocker, bool blocked);

Parameters

NameTypeDescription
<none>address

Returns

NameTypeDescription
blockeraddressAnother source that is blocking the source
blockedboolWhether the source is blocked by another source