lockfunction is called (see below).
lockfunction is called.
Calculatefunction is triggered (see below).
unpauseyour Staking Stage at any time. Nobody can stake when your launchpool is paused but people can still unstake. If the hardcap is not reached, the project sponsor can choose to
extendthe launchpool by a chosen number of days. Staking and unstaking then continues during the extension. Note that the
extendfunction has to be called before the end date.
lockfunction. Once called, nobody can stake or unstake anymore. If not called, staking can continue up to the hard cap but nobody can unstake.
lockfunction then triggers the Calculation Stage which makes a final tally of all stakers and calculates how many tokens each staker will receive for the amount they staked.
approvethe tokens for transfer to the stakers and there is no need to manually transfer any tokens. All Sponsor has to do is trigger
distributeSharesChunkon the smart contract, which transfers all calculated tokens to the respective staker.**
withdrawStakesfunction, which allows Sponsor to withdraw all amounts staked. Only at this stage are the funds available to Sponsor and are they legally committed.
gasLeft> 100000 per transaction. Once
gasLeftfalls below 100000, the contract stops its calculation on the current index, and the function needs to be called again. This process is then repeated until the tokens are calculated for each staker.
calculateSharesChunkabove: tokens are distributed as long as
gasLeft> 100000 per transaction. When
gasLeftfalls below 100000, the contract stops distributing on the current index, and the function needs to be called again. This process is repeated until all stakers receive their respective tokens.