Hi, is there any airdrop smart contract source code?

Jun 16, 2023, 8:42 AM
@karola96 you know something?
Jun 16, 2023, 10:28 AM
Airdrop is a loop of transfers
Write it
Jun 16, 2023, 10:52 AM
aight, so there is a lot of gas fees usage right ?
Jun 16, 2023, 11:00 AM
Depends on the size and the airdrop type.
If you write it inside the erc20 contract, it's gonna cost way less in gasFees
If it's an external airdrop instead, it may cost a lot due to _transfer function being executed. (Instead if it's internal you can do super._transfer)
Jun 16, 2023, 11:02 AM
depends on the contract
for example dividend contracts
you cant airdrop more than 100 addresses at once
cause it overflows the block size
Jun 16, 2023, 11:02 AM
Aight, so have you got any example of dividend contracts to airdrop 100 at time?
Jun 16, 2023, 12:33 PM
I don't think u want to loop transfers... U might want to loop setting a state variable and let the user claim and process the transfer
Jun 23, 2023, 12:27 AM
that's another way to do airdrops
Jun 23, 2023, 12:40 AM

© 2024 Draquery.com All rights reserved.