Skip to main content

Disperse

Git Source Inherits: Ownable Gas optimized bulk transfers of ERC20 and ETH that collects any given amount of fee in ETH. Disclaimer: This is a forked and modified contract from PopPunkLLC/gaslite-core in order to collect fees. Original contract without fees can be found on: https://github.com/PopPunkLLC/gaslite-core/blob/d62de3c70fb53d5a315e2e33bfd61587abdd7212/src/GasliteDrop.sol

State Variables

collector

Functions

constructor

Initializes the contract with a collector address
Parameters

setCollector

Sets the collector address Only the contract owner can call this function
Parameters

airdropERC20

Airdrop ERC20 tokens to a list of addresses
Parameters

airdropETH

Airdrop ETH to a list of addresses
Parameters

collectFees

Sends any received Ether to the collector address.

receive

Allows the contract to receive Ether directly with a call to this function. Any Ether received is stored in the contract’s balance.