Minimizing the cost of gas when claiming EOS using MyEtherWallet
Safety First:
Also, please take some time out to read through the Inherent Security Risks of MyEtherWallet, by @sandwich
Understanding the claimAll function
The steps on EOS.IO website suggests you select claimAll
to claim your ERC-20 EOS Tokens.
This function essentially runs the claim()
function in a loop for each contribution period that has ended. And each time it executes the function it needs gas. This is a screenshot of me claiming my tokens at the end of Period #2 when my only contribution was during Period #0:
As you can see it has also tried to claim EOS during Period #1 and Period #2, returning with 0 EOS since I did not make any contributions. This means I have paid 3 times as much gas as I could have paid if I claimed only for a specific window.
Claiming for a specific period
If you are sure in which period you made your contributions, claiming for a specific period is really easy. Most of the steps are taken from @sandwich's The Complete Guide :
Under heading Select Existing Contract is a dropdown, select EOS Contribution
Click
Access
Under the "Read / Write Contract" heading, in the dropdown select
claim
Under day type in the period number in which you made your contribution. Example: for period #7 you would simply type
7
Load your wallet
Click
Unlock
buttonClick
Write
buttonSet Amount to send to
0
and allow the wallet to suggest a Gas Limit. If it does not auto-populate, enter90000
or more. If your TX fails, increase Gas Limit.Click
Generate Transaction
buttonCheck the details of the transaction, and if you are confident with the details you have entered, click
Yes, I am sure! Make transaction.
If all went well, a green bar will appear at the bottom of the page including a link to your transaction on the blockchain.
Below is screenshot of my claim for Period #3. It returns with a single line of 0 EOS Tokens.
Thanks for the great guide on reducing our gas fees when claiming our EOS tokens! :)
It's a shame that a bunch of gas is being wasted each day because of the recommendation to 'claim all'. The total gas price will be even more horrendous closer to the end of the ICO, imagine paying gas 300 times even though you just invested in one of the ICO days - so that 31 cent gas transaction cost would turn into $93 (.31 * 300)!
The recommendation for
claimAll()
is to simplify the already arduous process.If I don't remember which periods I contributed, is there a way to find out without using claimAll ?
Go to: https://etherscan.io/address/xyz
(where xyz is your wallet address) - search for the eth transaction you sent to EOSCrowdSale. See the age column that shows "days ago" that this was sent. For example "4 days ago"
Now go to: https://eosscan.io/ and see what period we're currently at. If its say, 291, then using above example, subtract 4 from the current period and that should be your claim day (or either side of it)
Super post
Damn I wasn't aware of this, no wonder why my gas kept going up. Will resteem and upvote
Thanks for the help! :)
Glad I read this. Thanks!
Wow! This is awesome @koyn. I didn't know about that. Thanks.
thanks, very helpful, otherwise I would waste a lot of fee on claiming my daily contribution.
And does that only work for MyEtherWallet?
I sent ether to EOS contract and I have been trying to claim my token and it has failed to work even when I increase Gas Limit it state (Window blocked) can you give me guideline on how to claim my token or contact EOS
Very late reply but I did this just now using the above instructions except I used the prescribed gas limit which I think was about 87000 and that worked. 90000 hadn't worked before.