Skip to content

Commit 70f8f45

Browse files
committed
fix(EGLDSender.py): reduce the egld margin
1 parent 2cc24ca commit 70f8f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EGLDSender.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
eligible_holders = data_df[data_df.Address.apply(lambda x: "qqqqqq" not in x)]
3636

3737
# Compute the total of token per address (not taking into account the number of NFT hold)
38-
# TMP FIX : Remove 0.0001 token per holder to avoid "insufficient funds" (due to Python's loss of precision)
39-
airdrop_per_holder = float(args.amount_airdrop) / (eligible_holders.shape[0]) - 0.0001
38+
# TMP FIX : Remove 0.0000001 token per holder to avoid "insufficient funds" (due to Python's loss of precision)
39+
airdrop_per_holder = float(args.amount_airdrop) / (eligible_holders.shape[0]) - 0.0000001
4040

4141
# Compute the weighted airdrop if set to true as an argument
4242
if args.weighted:
43-
airdrop_per_NFT = float(args.amount_airdrop) / (eligible_holders.Count.sum()) - 0.0001
43+
airdrop_per_NFT = float(args.amount_airdrop) / (eligible_holders.Count.sum()) - 0.0000001
4444
eligible_holders["Airdrop"] = airdrop_per_NFT * data_df.Count
4545

4646
# Get the data message

0 commit comments

Comments
 (0)