Skip to content

Deprecate Governed Gas Pool for transaction_fee::collect_fee #180

@0xmovses

Description

@0xmovses

Description

As part of the framework upgrade described in L1 Migration we want to deprecate the Governed Gas Pool as part of the framework and instead use transation_fee::collect_fee(). This was done here (along with the old native and atomic bridge modules) https://github.com/movementlabsxyz/aptos-core/pull/156/files.

We need to keep the invariant of our network the constant supply of 10 Billion MOVE tokens. This is one differentiating characteristic with Aptos where they do not have a fixed supply.

The Governed Gas Pool was designed as part of the Biartiz Model (see the relevant MIP if you want more info) and was implemented in this PR #114

Note specifically how the previous burn call is replaced by a deposit to the GGP module here: https://github.com/movementlabsxyz/aptos-core/pull/114/files#r2164296427

Instead we want to call the framework function transcation_fee::collect_fee() for this the feature needs to be enabled

fun is_fees_collection_enabled(): bool {

  1. Make the change in the framework to use the method instead of call governed gas pool.

  2. Enable the Feature using the release testing method, use this PR as a means to test it locally: feat: pre-l1-merge framework upgrade + e2e tests movement#1212 and issue the upgrade for the new framework version.

  3. Write an e2e test that tests that fees are being collected in the way we expect them to, similar to the GGP test e2e test coverage https://github.com/movementlabsxyz/movement/pull/998/files

Success Criteria

Have the new test in the movement repo which enables the feature, issues the upgrade and checks that fees are being accrued as we expect them to be

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions