ClearStateChange

Git Source

Summary of the vault state changes due to clearing an order. NOT the state changes sent to the interpreter store, these are the LOCAL CHANGES in vault balances. Note that the difference in inputs/outputs overall between the counterparties is the bounty paid to the entity that cleared the order.

struct ClearStateChange {
    uint256 aliceOutput;
    uint256 bobOutput;
    uint256 aliceInput;
    uint256 bobInput;
}

Properties

NameTypeDescription
aliceOutputuint256Amount of counterparty A's output token that moved out of their vault.
bobOutputuint256Amount of counterparty B's output token that moved out of their vault.
aliceInputuint256Amount of counterparty A's input token that moved into their vault.
bobInputuint256Amount of counterparty B's input token that moved into their vault.