consensus-shipyard / ipc-actors

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

Mint new funds in subnet without changes in the RewardActor #45

Closed adlrocha closed 1 year ago

adlrocha commented 1 year ago

Placeholder, detailed description in progress

TL;DR: In the MVP we introduced an EXTERNAL_FUNDING_METHOD into the RewardActor to mint new funds in subnets. This may no longer be needed, as subnets will allocate in genesis into the gateway all the circulating supply required to mint new funds. With this new approach we'll have to be careful to double-check that we don't rely on the balance of the actor to perform actions and determine if funds are allowed to be sent or not. A vulnerability here could drain all the circulating supply from the gateway in a subnet.