Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Decoupling gateway balance for minting circulating supply #53

Open
adlrocha opened this issue Feb 16, 2023 · 0 comments
Open

Decoupling gateway balance for minting circulating supply #53

adlrocha opened this issue Feb 16, 2023 · 0 comments
Labels

Comments

@adlrocha
Copy link
Contributor

Related: #52

Since #52 the gateway is provided with enough balance to mint new tokens whenever a top-down message injects new circulating supply on a subnet. The issue with this is that if there is a vulnerability in the gateway actor, the attacker could drain the whole circulating supply provided for a subnet.

This probably low priority, and we should discuss it further, but to minimize potential attack vectors, we could maybe decouple subnets circulating supply minting from the gateway's basic operation by deploying a new actor that is responsible for minting new funds when certain signals/events are received. This would isolate the token minting logic and the actor managing all the circulating supply for a subnet, making a bit easier finding potential security flaws and attacks.

@adlrocha adlrocha added the next label Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant