From 2decec2bd3aec6c93c30f3d02b49573a545f787e Mon Sep 17 00:00:00 2001 From: domenicodev Date: Thu, 14 Dec 2023 10:30:03 +0100 Subject: [PATCH] feat: Implemented getCapabilities --- evm/src/integral/IntegralSwapAdapter.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/evm/src/integral/IntegralSwapAdapter.sol b/evm/src/integral/IntegralSwapAdapter.sol index 0d47243..b3c7212 100644 --- a/evm/src/integral/IntegralSwapAdapter.sol +++ b/evm/src/integral/IntegralSwapAdapter.sol @@ -40,11 +40,15 @@ contract IntegralSwapAdapter is ISwapAdapter { revert NotImplemented("IntegralSwapAdapter.getLimits"); } + /// @inheritdoc ISwapAdapter function getCapabilities(bytes32 poolId, IERC20 sellToken, IERC20 buyToken) external returns (Capability[] memory capabilities) { - revert NotImplemented("IntegralSwapAdapter.getCapabilities"); + capabilities = new Capability[](3); + capabilities[0] = Capability.SellOrder; + capabilities[1] = Capability.BuyOrder; + capabilities[2] = Capability.PriceFunction; } /// @inheritdoc ISwapAdapter