@zetamarkets/zeta-merkle-distributor
v0.3.3
Published
[![Crates.io](https://img.shields.io/crates/v/merkle-distributor)](https://crates.io/crates/merkle-distributor) [![License](https://img.shields.io/crates/l/merkle-distributor)](https://github.com/saber-hq/merkle-distributor/blob/master/LICENSE.txt) [![Bui
Downloads
73
Keywords
Readme
merkle-distributor
A program for distributing tokens efficiently via uploading a Merkle root.
This program is largely based off of Uniswap's Merkle Distributor.
Rationale
Although Solana has low fees for executing transactions, it requires staking tokens to pay for storage costs, also known as "rent". These rent costs can add up when sending tokens to thousands or tens of thousands of wallets, making it economically unreasonable to distribute tokens to everyone.
The Merkle distributor, pioneered by Uniswap, solves this issue by deriving a 256-bit "root hash" from a tree of balances. This puts the gas cost on the claimer. Solana has the additional advantage of being able to reclaim rent from closed token accounts, so the net cost to the user should be around 0.000010 SOL
(at the time of writing).
The Merkle distributor is also significantly easier to manage from an operations perspective, since one does not need to send a transaction to each individual address that may be redeeming tokens.
License
The Merkle distributor program and SDK is distributed under the GPL v3.0 license.
Checklist when deploying
- Solana version 1.18.5 to build
- check program id in CPI directory (deps)