Skip to content

Mint-Burn gas token privileged contract #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: mb-arbowner-dev
Choose a base branch
from

Conversation

TucksonDev
Copy link
Contributor

This PR adds a contract that will serve as a proxy for certain privileged accounts to call the new mintNativeToken and burnNativeToken functions of the ArbOwner precompile.

This privileged accounts will be managed by the chain owner, who must be the deployer of this contract.

This contract must be set as a chain owner of the chain to be able to call ArbOwner functions

Closes BLK-331

@cla-bot cla-bot bot added the s label Apr 29, 2025
@TucksonDev TucksonDev marked this pull request as ready for review April 29, 2025 14:52
Comment on lines 43 to 47
function mintNativeToken(
uint256 amount
) external onlyRole(MINTER_ROLE) {
ARB_OWNER.mintNativeToken(msg.sender, amount);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should do this to burn too

Suggested change
function mintNativeToken(
uint256 amount
) external onlyRole(MINTER_ROLE) {
ARB_OWNER.mintNativeToken(msg.sender, amount);
}
function mintNativeToken(
address to,
uint256 amount
) external onlyRole(MINTER_ROLE) {
ARB_OWNER.mintNativeToken(to, amount);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants