The goal is to respond to the Flush in the ERC20 Relay contract and withdraw NCT balances to the same wallet on homechain. That way we can shutdown a community and restore NCT to the original owner without user interaction.
~So far, this just adds a route to the http endpoint to get all the balances. Testing to see if looking over the entire history is fast enough.~ Takes about 15 minutes on 8 million blocks, but it should only run once in the lifetime of a community.
TODO:
[x] Respond to Flush event
[x] Send a withdrawal on homechain for all non-contract addrs
The goal is to respond to the
Flush
in the ERC20 Relay contract and withdraw NCT balances to the same wallet on homechain. That way we can shutdown a community and restore NCT to the original owner without user interaction.~So far, this just adds a route to the http endpoint to get all the balances. Testing to see if looking over the entire history is fast enough.~ Takes about 15 minutes on 8 million blocks, but it should only run once in the lifetime of a community.
TODO: