Timeline for What should be optimal gas limit and gas price for 80 addresses airdrop?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 8, 2018 at 20:43 | comment | added | Ismael♦ |
In your code the mapping airdrops is never used again, but if you use it in another function then you should keep it. Rounding numbers 20k x 80 =1600k = 1.6m.
|
|
Nov 8, 2018 at 12:54 | comment | added | Fariha Abbasi | the storage of receipient record can be compromised. Would you suggest omitting it will help me ? How much gas cost you think it'll save per transaction and for 80? | |
Nov 7, 2018 at 18:22 | comment | added | Ismael♦ |
One problem with your airdrop is that for every recipient you are consuming an extra slot with airdrops[_recipient[i]] = true; , you pay 20k gas to store a single bit. From the successful transaction you use around 125k gas per token transfer which seems a bit high. I'd take a look at to optimize transferFrom.
|
|
Nov 7, 2018 at 3:34 | comment | added | Fariha Abbasi | @Rob Hitchens B9lab Can u please see if that is something you can answer? | |
Nov 6, 2018 at 7:54 | answer | added | petro.sidlovskyy | timeline score: 1 | |
Nov 6, 2018 at 7:05 | history | asked | Fariha Abbasi | CC BY-SA 4.0 |