return fee taken
This commit is contained in:
@@ -93,7 +93,7 @@ interface IPartyPool is IERC20Metadata {
|
||||
uint256 j,
|
||||
uint256 maxAmountIn,
|
||||
int128 limitPrice
|
||||
) external view returns (uint256 amountIn, uint256 amountOut);
|
||||
) external view returns (uint256 amountIn, uint256 amountOut, uint256 fee);
|
||||
|
||||
function swap(
|
||||
address payer,
|
||||
@@ -103,14 +103,14 @@ interface IPartyPool is IERC20Metadata {
|
||||
uint256 maxAmountIn,
|
||||
int128 limitPrice,
|
||||
uint256 deadline
|
||||
) external returns (uint256 amountIn, uint256 amountOut);
|
||||
) external returns (uint256 amountIn, uint256 amountOut, uint256 fee);
|
||||
|
||||
/// @notice External view to quote swap-to-limit amounts (gross input incl. fee and output), matching swapToLimit() computations
|
||||
function swapToLimitAmounts(
|
||||
uint256 i,
|
||||
uint256 j,
|
||||
int128 limitPrice
|
||||
) external view returns (uint256 amountIn, uint256 amountOut);
|
||||
) external view returns (uint256 amountIn, uint256 amountOut, uint256 fee);
|
||||
|
||||
function swapToLimit(
|
||||
address payer,
|
||||
@@ -119,7 +119,7 @@ interface IPartyPool is IERC20Metadata {
|
||||
uint256 j,
|
||||
int128 limitPrice,
|
||||
uint256 deadline
|
||||
) external returns (uint256 amountInUsed, uint256 amountOut);
|
||||
) external returns (uint256 amountInUsed, uint256 amountOut, uint256 fee);
|
||||
|
||||
/// @notice Single-token mint: deposit a single token, charge swap-LMSR cost, and mint LP.
|
||||
/// @param payer who transfers the input token
|
||||
|
||||
Reference in New Issue
Block a user