diff --git a/deploy/AllocatorInit.sol b/deploy/AllocatorInit.sol index 6a0ed64..08c3d8d 100644 --- a/deploy/AllocatorInit.sol +++ b/deploy/AllocatorInit.sol @@ -177,6 +177,7 @@ library AllocatorInit { dss.chainlog.setAddress("ALLOCATOR_REGISTRY", sharedInstance.registry); } + // Please note this should be executed by the pause proxy function initIlk( DssInstance memory dss, AllocatorSharedInstance memory sharedInstance, @@ -216,7 +217,7 @@ library AllocatorInit { VaultLike(ilkInstance.vault).file("jug", address(dss.jug)); - // Allow vault and funnels to pull funds from the buffer + // Allow vault to pull funds from the buffer BufferLike(ilkInstance.buffer).approve(VaultLike(ilkInstance.vault).nst(), ilkInstance.vault, type(uint256).max); // Set the allocator proxy as the ilk admin instead of the Pause Proxy @@ -246,8 +247,8 @@ library AllocatorInit { }); } + // Please note this should be executed by the allocator proxy function initIlkFunnel( - DssInstance memory dss, AllocatorSharedInstance memory sharedInstance, AllocatorIlkInstance memory ilkInstance, AllocatorIlkFunnelInstance memory ilkFunnelInstance, diff --git a/test/integration/Deployment.t.sol b/test/integration/Deployment.t.sol index 982f806..35379b8 100644 --- a/test/integration/Deployment.t.sol +++ b/test/integration/Deployment.t.sol @@ -217,7 +217,7 @@ contract DeploymentTest is DssTest { depositTokens : depositTokens, uniV3Factory : UNIV3_FACTORY }); - AllocatorInit.initIlkFunnel(dss, sharedInst, ilkInst, ilkFunnelInst, funnelCfg); + AllocatorInit.initIlkFunnel(sharedInst, ilkInst, ilkFunnelInst, funnelCfg); AllocatorRoles(sharedInst.roles).setUserRole(ILK, address(ilkFunnelInst.conduitMover), automationRole, true);