Skip to main content

BidEncoding

Git Source

Functions

encode

function encode(
uint64 bidId,
uint96 amountIn,
uint96 minAmountOut
) internal pure returns (bytes32);

decode

function decode(bytes32 data) internal pure returns (uint64, uint96, uint96);

isHigherPriorityThan

function isHigherPriorityThan(
bytes32 alpha,
bytes32 beta,
uint256 baseScale
) internal pure returns (bool);