Skip to main content

Events

Core events

Deposit

Emitted when a user deposits a stablecoin.

event Deposit(
address indexed user,
address indexed stablecoin,
uint256 amount,
uint256 dlrsMinted
);
ParameterDescription
userAddress that deposited
stablecoinStablecoin deposited
amountAmount deposited
dlrsMintedDLRS minted (equals amount)

Withdraw

Emitted when a user withdraws a stablecoin.

event Withdraw(
address indexed user,
address indexed stablecoin,
uint256 amount,
uint256 dlrsBurned
);
ParameterDescription
userAddress that withdrew
stablecoinStablecoin withdrawn
amountAmount withdrawn
dlrsBurnedDLRS burned (equals amount)

Swap events

Swap

Emitted on any swap operation.

event Swap(
address indexed user,
address indexed fromStablecoin,
address indexed toStablecoin,
uint256 amountIn,
uint256 amountOut,
uint256 amountQueued
);
ParameterDescription
userAddress that swapped
fromStablecoinInput token (or DLRS address for swapFromDLRS)
toStablecoinOutput token
amountInTotal input amount
amountOutAmount received instantly
amountQueuedAmount sent to queue (0 if fully filled)

Queue events

QueueJoined

Emitted when a user joins a queue.

event QueueJoined(
uint256 indexed positionId,
address indexed user,
address indexed stablecoin,
uint256 amount,
uint256 timestamp
);
ParameterDescription
positionIdUnique position identifier
userAddress that joined
stablecoinStablecoin being waited for
amountDLRS locked
timestampWhen position was created

QueueCancelled

Emitted when a user cancels their queue position.

event QueueCancelled(
uint256 indexed positionId,
address indexed user,
uint256 amountReturned
);
ParameterDescription
positionIdPosition that was cancelled
userPosition owner
amountReturnedDLRS returned (may be less if partially filled)

QueueFilled

Emitted when a queue position receives funds (full or partial).

event QueueFilled(
uint256 indexed positionId,
address indexed user,
address indexed stablecoin,
uint256 amountFilled,
uint256 amountRemaining
);
ParameterDescription
positionIdPosition that was filled
userPosition owner
stablecoinStablecoin received
amountFilledAmount filled in this transaction
amountRemainingAmount still waiting (0 if fully filled)

Admin events

StablecoinAdded

Emitted when a stablecoin is added to supported list.

event StablecoinAdded(address indexed stablecoin);

StablecoinRemoved

Emitted when a stablecoin is removed from supported list.

event StablecoinRemoved(address indexed stablecoin);

AdminTransferInitiated

Emitted when admin transfer is initiated.

event AdminTransferInitiated(
address indexed currentAdmin,
address indexed pendingAdmin
);

AdminTransferCompleted

Emitted when admin transfer is accepted.

event AdminTransferCompleted(
address indexed previousAdmin,
address indexed newAdmin
);