feat: Add balancer v3 to transfer optimization constants

Also added a getForkBlock() on TychoRouterTestSetup.
 Moved the router balancer test inside the Balancer file and created a TychoRouterForBalancerV3Test to wrap it

Took 1 hour 10 minutes


Took 21 seconds
This commit is contained in:
Diana Carvalho
2025-06-06 10:31:37 +01:00
parent 269e328b5f
commit c03df8aa1e
6 changed files with 154 additions and 38 deletions

View File

@@ -70,8 +70,12 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
BalancerV3Executor public balancerV3Executor;
MockERC20[] tokens;
function getForkBlock() public view virtual returns (uint256) {
return 22082754;
}
function setUp() public {
uint256 forkBlock = 22082754;
uint256 forkBlock = getForkBlock();
vm.createSelectFork(vm.rpcUrl("mainnet"), forkBlock);
vm.startPrank(ADMIN);