0

I'm working with the OpenZeppelin solidity framework to run a crowdsale script, but would like to ask, is there is an existing open source solution for implementing time-based bonus payouts?

1

You can find an example here:

Here https://github.com/TokenMarketNet/ico/blob/master/contracts/MilestonePricing.sol

But I would recommend tranche based bonus (sold tokes / raised ETH) instead of a time based bonus, as the latter is more unfair and often causes negative emotional response from the buyers.

0

You can possibly find something similar online (I'm not very knowledgeable about those) but no matter what you find, you'll face an important problem: execution. When do you want the payouts to happen?

If I understand correctly, you'd like to distribute additional airdops automatically from the samrt contract based on the current time. The problem with this idea is that contracts can never execute anything 'on their own'. Someone always has to call the contract do actually get the contract to perform something and the caller pays the gas fees for the whole execution.

  • The way I’m thinking of it is the buy function, which is payable and gets called upon an ether tx to the contract, would have a conditional multiplier based on the current time. Just wanted to know if there is an open source implementation like this already. – Saeid Hashemi Apr 6 '18 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.