Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AirdropSupply option #8

Open
lumtis opened this issue Dec 22, 2022 · 0 comments
Open

Add AirdropSupply option #8

lumtis opened this issue Dec 22, 2022 · 0 comments

Comments

@lumtis
Copy link
Contributor

lumtis commented Dec 22, 2022

Most of the time, the total amount to be distributed for airdrop will not be calculated dynamically from the sum of all claim records obtained from the snapshots and formula, but each claim record will be calculated from a fixed airdrop supply

airdrop.yml:

AirdropSupply: 1000000udrop

Invariant:

AirdropSupply == (DustWallet * NbClaimRecords) + Σ(ClaimRecord)

There should be an additional step in the claim records creation that calculate the final claim record from the processed data and airdrop supply:

(naming not definitive, just ideas)

- [BlockchainState]

-> snapshot()

- [RawSnapshotData]

-> filter(addresses)

- [FilteredSnapshotData]

-> process(formula)

- [ProcessedSnapshotData]

-> finalize(airdropSupply)

- [ClaimRecords] + [WalletBalances] (dust wallets)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant