ferrumnet / tokenSupply

MIT License
1 stars 1 forks source link

Create burn tracker to track burns across networks #15

Open taha-abbasi opened 1 year ago

taha-abbasi commented 1 year ago

Create an endpoint to retrieve the number of tokens burned across networks and the total sum of tokens burned.

taha-abbasi commented 1 year ago

Okay, so it turns out this is a bit more involved. Unless the contract broadcasts the burned amount, we need to query transfer events and look for transfers to the burn address and sum them.

This can't be done every time you hit the endpoint, so we'll need to store historical data and then update it periodically with new events.

Will come back to this.