From 7dca13f9e0dd7b1d1ee2b6b73b51aab50d5f9dca Mon Sep 17 00:00:00 2001 From: domenicodev Date: Thu, 25 Jan 2024 11:53:40 +0100 Subject: [PATCH] fix: fixed price type in price function --- evm/src/integral/IntegralSwapAdapter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/integral/IntegralSwapAdapter.sol b/evm/src/integral/IntegralSwapAdapter.sol index a394d26..4797132 100644 --- a/evm/src/integral/IntegralSwapAdapter.sol +++ b/evm/src/integral/IntegralSwapAdapter.sol @@ -34,7 +34,7 @@ contract IntegralSwapAdapter is ISwapAdapter { uint256[] memory _specifiedAmounts ) external view override returns (Fraction[] memory _prices) { _prices = new Fraction[](_specifiedAmounts.length); - uint256 price = getPriceAt(address(_sellToken), address(_buyToken)); + Fraction memory price = getPriceAt(address(_sellToken), address(_buyToken)); for (uint256 i = 0; i < _specifiedAmounts.length; i++) { _prices[i] = price;