EOS Crowdsale "Out of Gas" during claimAll SOLUTION

in #eos7 years ago

The claimAll function has to check your balances for all periods that have ended, so as more periods end, it uses more gas. People have regularly had to set gas limits to 5 million at this point to get it to succeed. The solution is to call the "claim" function for the specific period you want to claim, then it'll only use gas for the period you specify. Here's how to do this:

  1. Find the timestamp of the block that your contribution transaction is in. (Example Oct-12-2017 01:54:36 PM +UTC at block https://etherscan.io/block/4359379).
  2. Convert it to a unix Epoch at https://www.epochconverter.com/ where it says "Human date to Timestamp"
  3. Go to the crowdsale read contract page on Etherscan. https://etherscan.io/address/0xd0a6e6c54dbc68db5db3a091b171a77407ff7ccf#readContract
  4. Go down to function #17, dayFor. Enter the timestamp of the block from step 2 and click query. This is the period for your contribution.
  5. Optional: To double check you haven't already claimed this period/you actually have funds in this period, enter the period and your address in function #1 to see if you've already claimed and function #6 to make sure you contributed to that period.
  6. Load MyEtherWallet like you would be calling claimAll on the EOS crowdsale contract, but instead call claim and pass in your period #. You can set gas price somewhere from 2-10 Gwei and gas limit to 500k and it should go through just fine.

Let me know if there are any other questions or if you have issues with this

Sort:  

Congratulations @flygoing! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @flygoing! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You got a First Reply
Award for the number of upvotes
Award for the number of comments

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Thanks for sharing this

The @OriginalWorks bot has determined this post by @flygoing to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

To enter this post into the daily RESTEEM contest, upvote this comment! The user with the most upvotes on their @OriginalWorks comment will win!

For more information, Click Here!
Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place!

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64999.89
ETH 3101.81
USDT 1.00
SBD 3.87