additive fees; burnSwapAmounts fix

This commit is contained in:
tim
2025-11-04 16:58:16 -04:00
parent 590acdd4dc
commit dc2e186331
10 changed files with 103 additions and 100 deletions

View File

@@ -240,7 +240,8 @@ interface IPartyPool is IERC20Metadata, IOwnable {
/// @param lpAmount amount of LP tokens to burn
/// @param outputTokenIndex index of target asset to receive
/// @param deadline optional deadline
/// @return amountOutUint uint amount of asset outputTokenIndex sent to receiver
/// @return amountOut uint amount of asset outputTokenIndex sent to receiver
/// @return outFee uint amount of output asset kept by the LP's and protocol as a fee
function burnSwap(
address payer,
address receiver,
@@ -248,7 +249,7 @@ interface IPartyPool is IERC20Metadata, IOwnable {
uint256 outputTokenIndex,
uint256 deadline,
bool unwrap
) external returns (uint256 amountOutUint);
) external returns (uint256 amountOut, uint256 outFee);
/// @dev Initiate a flash loan.
/// @param receiver The receiver of the tokens in the loan, and the receiver of the callback.