consensus-shipyard / ipc-actors

Rust implementation of the IPC actors for FVM
MIT License
6 stars 3 forks source link

Returning funds to gateway balance instead of burning? #54

Open adlrocha opened 1 year ago

adlrocha commented 1 year ago

When a bottom-up message releases circulating supply from a subnet to propagate a cross-net message up, the amount of tokens included in the message are burnt in the subnetby sending a message to the BURNT_ADDRESS. This means that the maximum circulating supply that the gateway can mint in a subnet is reduced with every bottom-up message.

Ideally, I don't think this should be the case, and when some tokens are released, instead of burning them in the subnet, they should be returned to the gateway actor so they are available for future token minting. This should be quite a simple fix easy to implement.