You are viewing a single comment's thread from:

RE: Minimizing the cost of gas when claiming EOS using MyEtherWallet

in #eos7 years ago

Thanks for the tip. Just claimed my tokens on 17th period.

I'm curious though. Some of the claimAll() do not seem to execute in a loop.

For instance this transaction ran in a loop and cost $3.19, whereas this one ran only once and cost only $0.43, though both used claimAll. Why is it?

Sort:  

You make a good point. My guess is that the claimAll() function will not claim from the same window twice. For example, suppose period #10 has just ended. If this is the first time I'm running claimAll() it will run in a loop for every period between period #10 to period #0. Then 3 days later when period #13 has ended, claimAll() will run in a loop between period #13 to period #11. It will not bother running through periods #0 to #10 again.

At least this is my guess anyway, someone else may be able to confirm

Yes, that is exactly how it works. claimAll will only attempt to claim unclaimed periods

pseudocode: periods[n] === false

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 68487.80
ETH 2454.84
USDT 1.00
SBD 2.61