Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Reordered to call registrar task with correct arg, renamed for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieraykatz committed Sep 29, 2023
1 parent cd6a041 commit c144ccb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
24 changes: 8 additions & 16 deletions tasks/deploy/integrations/helpers/fullStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,20 @@ export async function deployStrategySet(
hre
);

// establish registrar config on primary chain and this chain
await hre.run("manage:registrar:setStratParams", {
stratConfig: {
...config,
params: {
approvalState: config.params.approvalState,
network: config.params.network,
lockedVaultAddr: Locked.contract.address,
liquidVaultAddr: Liquid.contract.address,
},
},
modifyExisting: true,
apTeamSignerPkey: signerPkey,
});

// Store addresses
// Store addresses - do this before updating registrar so that lookup is complete
writeStrategyAddresses(strategyName, {
locked: Locked.contract.address,
liquid: Liquid.contract.address,
strategy: Strategy.contract.address,
});

// establish registrar config on primary chain and this chain
await hre.run("manage:registrar:setStratParams", {
stratName: strategyName,
modifyExisting: true,
apTeamSignerPkey: signerPkey,
});

// Verify
const deployments: Deployment<ContractFactory>[] = [Locked, Liquid, Strategy];
for (const deployment of deployments) {
Expand Down
2 changes: 1 addition & 1 deletion tasks/manage/registrar/setStratParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ subtask(
"Updates strat params on the network specified by the 'chainId' param"
)
.addParam(
"stratConfig",
"stratName",
`The name of the strategy according to StratConfig, possible values: ${Object.keys(
allStrategyConfigs
).join(", ")}`,
Expand Down

0 comments on commit c144ccb

Please sign in to comment.