Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(provisionPool): allow overriding PerAccountInitialAmount during…
… contract upgrade (#10638) closes: #10562 ## Description This PR introduces changes to the provisionPool contract to allow the overriding of the PerAccountInitialAmount parameter, governed by the Economic Committee, during a contract upgrade. To achieve the above functionality, this PR introduces the following changes: - The PerAccountInitialAmount can now be injected into the contract through privateArgs by defining governedParamOverrides. - The handleParamGovernance method from the governance package was updated to include an aditional optional argument called `overrides` so it can be passed to the makeParamManagerFromTerms to manage the governed parameter during contract upgrades. The core-eval proposal used to upgrade provisionPool was also updated to fetch the current value of PerAccountInitialAmount set on Vstorage and include it on the new privateArgs. If the governedParamOverrides is not provided to the privateArgs during the contract upgrade, the value of PerAccountInitialAmount will reset to the default one set on the contract terms. ### Security Considerations ### Scaling Considerations ### Documentation Considerations ### Testing Considerations The existing unit tests for the inter-protocol and vats packages, as well as the a3p-integration tests, have been verified to continue passing with these changes. Additionally, these changes were tested against the governance acceptance tests in the a3p-integration which ensures that governed parameter values remain intact after a contract upgrade, as well as testing that, if not included in the governedParamOverrides on the core-eval proposal, the value of PerAccountInitialAmount will reset to the default one set on the contract terms. To maintain the scope of this PR, that test is not included here, however, it will be introduced in PR #10555, which is planned to be opened once this is merged. ### Upgrade Considerations
- Loading branch information