Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Aug 20, 2024
1 parent fdf0b68 commit b762485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions deploy/AllocatorInit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Deployment.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b762485

Please sign in to comment.