IPriceChecker
Interface for price checker contracts used by Milkman to validate swaps
Functions
checkPrice
Check if a swap price is acceptable
function checkPrice(
uint256 amountIn,
address fromToken,
address toToken,
uint256 feeAmount,
uint256 minOut,
bytes calldata data
)
external
view
returns (bool);
Parameters
Name | Type | Description |
---|---|---|
amountIn | uint256 | The amount of input tokens (including fee) |
fromToken | address | The input token address |
toToken | address | The output token address |
feeAmount | uint256 | The fee amount in input tokens |
minOut | uint256 | The minimum output amount from the solver |
data | bytes | Additional data for price checking |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | True if the price is acceptable |