fix: Change output number of Angle capabilities from 3 to 2

This commit is contained in:
Ale personal
2024-03-27 15:33:40 +01:00
parent 113afd04fb
commit 17954c3ffe
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ contract AngleAdapter is ISwapAdapter {
override
returns (Capability[] memory capabilities)
{
capabilities = new Capability[](3);
capabilities = new Capability[](2);
capabilities[0] = Capability.SellOrder;
capabilities[1] = Capability.BuyOrder;
}

View File

@@ -176,7 +176,7 @@ contract AngleAdapterTest is Test, ISwapAdapterTypes {
Capability[] memory res =
adapter.getCapabilities(pair, IERC20(t0), IERC20(t1));
assertEq(res.length, 3);
assertEq(res.length, 2);
}
function testGetTokensAngle() public {