OpenZeppelin / gsn-site

The Ethereum Gas Station Network Alliance Landing Page and Tools
MIT License
12 stars 15 forks source link

The relayer's displayed balance is not the right one #8

Closed nventuro closed 4 years ago

nventuro commented 5 years ago

The relayer tool currently displays the relayer's GSN balance (i.e. the result of relayHub.balanceOf(relayer)), when it should actually display their Ethereum balance (e.g. web3.eth.getBalance(relayer).

A relayer's GSn balance should always be zero, unless someone deposits funds for them by mistake (note that they cannot withdraw these funds because they'd be penalized, so they are locked until the relayer deregisters and unstakes).