Open samuelWilliams99 opened 2 years ago
Should I be worried about the sequence of PrivateInvestors
?
For example, if we have :
[PrivateInvestor 2 23 , PrivateInvestor 3 14 , PrivateInvestor 2 99]
With the described approach the PrivateInvestor
with address
2 would pay its part for every currency of it in the list, is this intended or should I reject such a list? If this is intended, should I merge all the occurrences or just leave them as is (this would impact the Airdrop table output)?
Let's merge, probably as a first pass to have them unique by address. You could even convert it to a Map Address Amount to be correct at a type level.
Following the
Sendings
module created to verify Sendings onchain, this task is to generate the input files for the airdrop and database from the PrivateSale type defined below:This task is the following:
(NativeScript, Integer)
pairs for how much ofPrivateSale.assetClass
to send to each script.posixTimeToSlot PrivateSale.start + PrivateSale.tranches[0].duration
, then adding the duration of each subsequent Tranche to the unlock time.NativeScript
type defined in the database spec:[(50%, 100 slots), (25%, 100 slots), (25%, 200 slots)]
, with a start time equilalent to slot 1000. For a user with 10000 tokens, we would send 5000 to a script that unlocks at slot 1100, 2500 to one that unlocks at 1200, and 2500 to one that unlocks at 1400.Map Address [LockedFund]
, defined in the database spec.Create your branch and PR from
mlabs/private-sale-staging