ClearConfig

Git Source

Additional config to a clear that allows two orders to be fully matched to a specific token moment. Also defines the bounty for the clearer.

struct ClearConfig {
    uint256 aliceInputIOIndex;
    uint256 aliceOutputIOIndex;
    uint256 bobInputIOIndex;
    uint256 bobOutputIOIndex;
    uint256 aliceBountyVaultId;
    uint256 bobBountyVaultId;
}

Properties

NameTypeDescription
aliceInputIOIndexuint256The index of the input token in order A.
aliceOutputIOIndexuint256The index of the output token in order A.
bobInputIOIndexuint256The index of the input token in order B.
bobOutputIOIndexuint256The index of the output token in order B.
aliceBountyVaultIduint256The vault ID that the bounty from order A should move to for the clearer.
bobBountyVaultIduint256The vault ID that the bounty from order B should move to for the clearer.