Balancer swap test

This commit is contained in:
pistomat
2023-12-04 16:30:57 +01:00
parent 7ffee9ac2e
commit 6c6525be2b
5 changed files with 220 additions and 43 deletions

View File

@@ -29,14 +29,15 @@ interface ISwapAdapter is ISwapAdapterTypes {
/// @param pairId The ID of the trading pair.
/// @param sellToken The token being sold.
/// @param buyToken The token being bought.
/// @param sellAmounts The specified amounts used for price calculation.
/// @param specifiedAmounts The specified amounts used for price
/// calculation.
/// @return prices array of prices as fractions corresponding to the
/// provided amounts.
function price(
bytes32 pairId,
IERC20 sellToken,
IERC20 buyToken,
uint256[] memory sellAmounts
uint256[] memory specifiedAmounts
) external view returns (Fraction[] memory prices);
/**