projectchicago / gastoken

⛽ Tokenize gas on Ethereum with GasToken ⛽
https://gastoken.io
718 stars 89 forks source link

Can someone help me understand exactly when/how you use this? #11

Closed JohnAllen closed 5 years ago

JohnAllen commented 5 years ago

So I get that this refunds you gas when you free your tokens. But to benefit, do you need to be trying to have another tx confirmed at the same time? When and where does the benefit of the refunded gas actually occur?

lorenzb commented 5 years ago

Yes.

Simple example constructed with the help of the calculator on gastoken.io:

You have a contract transaction that would typically cost 400k gas. As part of the same transaction, you now free 0.10 GST2. As a result, your transaction only costs 242854 gas, a ~40% reduction.