Skip to content

Add MintNativeToken and BurnNativeToken calls #332

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

Closed
wants to merge 2 commits into from
Closed

Conversation

eljobe
Copy link
Member

@eljobe eljobe commented Apr 28, 2025

These will allow arbOwner authorized addresses to mint some amount of the chain's native gas token to or burn some amount of the chain's native gas token from a given address.

Chain owners should deploy a non-upgradable intermediary contract, the address of which is added to the set of arbOwner addresses and then add any addresses which should be allowed to mint and burn the native gas token to call corresponding methods on the proxy contract. The implementation of those intermediary contract methods should not allow to and from address arguments, and instead use the address of the caller as the target for minting and burning.

Resolves: NIT-3297

These will allow arbOwner authorized addresses to mint some amount of the
chain's native gas token to or burn some amount of the chain's native gas token
from a given address.

Chain owners *should* deploy a non-upgradable proxy contract, the address of
which is added to the set of arbOwner addresses and then add any addresses which
should be allowed to mint and burn the native gas token to call corresponding
methods on the proxy contract. The implmentation of those proxy contract methods
should not allow to and from address arguments, and instead use the address of
the caller as the target for minting and burning.

Resolves: NIT-3297
@eljobe eljobe requested a review from diegoximenes April 29, 2025 05:21
@godzillaba
Copy link
Contributor

i think it's worth considering whether we want the burner to be able to burn from any account or only their own account.

currently the only way a contract's balance can be reduced is if it makes external calls with value. having the burner be able to burn from arbitrary accounts would change this. this might be weird for app devs

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.

3 participants