{"repo":"banteg/disperse","free":true,"listed":false,"github":"https://github.com/banteg/disperse","clone":"git clone https://github.com/banteg/disperse.git","description":"distribute ether or tokens to multiple addresses","language":"TypeScript","stars":25,"topics":["ethereum","web3","erc20","riotjs"],"license":null,"category":"blockchain-web3","readme_excerpt":"disperse verb distribute erc-20 tokens to many addresses in just two transactions what's in this repo - wagmi-disperse: 2025 rewrite that's currently deployed to https://disperse.app - riot-disperse: original 2018 version preserved for historical purposes and referencing - brownie-disperse: 2018 contract and test scripts - disperse.pdf: 2018 paper and research interface optimizations disperseToken first transfers the tokens to the contract addresses using transferFrom and then uses transfer to distribute them. this reduces gas costs by 1/3 as transfer updates state only twice (balances) without updating allowance as transferFrom does. disperseTokenSimple uses transferFrom only, use it if you prefer the transfers to come from your address. gas usage also depends on each recipient's balance, previous zero balance being the worst case. caveats tokens with missing return values are not supported for simplicity's sake. read more about this problem here.","default_branch":null,"files":null,"tree":[],"storefront":"/r/banteg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/banteg/disperse/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}