Skip to content

Commit

Permalink
chore(provisionPool): simplify defining of governedParamOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge-Lopes committed Dec 9, 2024
1 parent 266d256 commit e98b136
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/vats/src/proposals/upgrade-provisionPool-proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,10 @@ export const upgradeProvisionPool = async (
E(electorateCreatorFacet).getPoserInvitation(),
]);

const readCurrentGovernedParams = async () => {
await null;

const params = await E(ppPublicFacet).getGovernedParams();
return harden({
PerAccountInitialAmount: params.PerAccountInitialAmount.value,
});
};
const governedParamOverrides = await readCurrentGovernedParams();
const params = await E(ppPublicFacet).getGovernedParams();
const governedParamOverrides = harden({
PerAccountInitialAmount: params.PerAccountInitialAmount.value,
});
trace('governedParamOverrides: ', { governedParamOverrides });

const newPrivateArgs = harden({
Expand Down

0 comments on commit e98b136

Please sign in to comment.