Revert "ENG-3406: Add new bytes parameter to swap"
This commit is contained in:
@@ -18,7 +18,6 @@ contract AngleAdapterTest is Test, ISwapAdapterTypes {
|
||||
ITransmuter(0x00253582b2a3FE112feEC532221d9708c64cEFAb);
|
||||
|
||||
uint256 constant TEST_ITERATIONS = 100;
|
||||
bytes32 mockData;
|
||||
|
||||
function setUp() public {
|
||||
uint256 forkBlock = 18921770;
|
||||
@@ -56,7 +55,7 @@ contract AngleAdapterTest is Test, ISwapAdapterTypes {
|
||||
uint256 agEUR_balance = agEUR.balanceOf(address(this));
|
||||
|
||||
Trade memory trade = adapter.swap(
|
||||
pair, address(EURC), address(agEUR), side, specifiedAmount, mockData
|
||||
pair, address(EURC), address(agEUR), side, specifiedAmount
|
||||
);
|
||||
|
||||
if (trade.calculatedAmount > 0) {
|
||||
@@ -107,7 +106,7 @@ contract AngleAdapterTest is Test, ISwapAdapterTypes {
|
||||
uint256 agEUR_balance = agEUR.balanceOf(address(this));
|
||||
|
||||
Trade memory trade = adapter.swap(
|
||||
pair, address(agEUR), address(EURC), side, specifiedAmount, mockData
|
||||
pair, address(agEUR), address(EURC), side, specifiedAmount
|
||||
);
|
||||
|
||||
if (trade.calculatedAmount > 0) {
|
||||
@@ -160,7 +159,7 @@ contract AngleAdapterTest is Test, ISwapAdapterTypes {
|
||||
agEUR.approve(address(adapter), type(uint256).max);
|
||||
}
|
||||
trades[i] = adapter.swap(
|
||||
pair, address(agEUR), address(EURC), side, amounts[i], mockData
|
||||
pair, address(agEUR), address(EURC), side, amounts[i]
|
||||
);
|
||||
vm.revertTo(beforeSwap);
|
||||
}
|
||||
@@ -179,20 +178,19 @@ contract AngleAdapterTest is Test, ISwapAdapterTypes {
|
||||
|
||||
function testGetCapabilitiesAngle(bytes32 pair, address t0, address t1)
|
||||
public
|
||||
view
|
||||
{
|
||||
Capability[] memory res = adapter.getCapabilities(pair, t0, t1);
|
||||
|
||||
assertEq(res.length, 2);
|
||||
}
|
||||
|
||||
function testGetTokensAngle() public view {
|
||||
function testGetTokensAngle() public {
|
||||
address[] memory tokens = adapter.getTokens(bytes32(0));
|
||||
|
||||
assertGe(tokens.length, 2);
|
||||
}
|
||||
|
||||
function testGetLimitsAngle() public view {
|
||||
function testGetLimitsAngle() public {
|
||||
bytes32 pair = bytes32(0);
|
||||
uint256[] memory limits =
|
||||
adapter.getLimits(pair, address(agEUR), address(EURC));
|
||||
|
||||
Reference in New Issue
Block a user