0

I have created previous contracts where the token is created by the crowdsale and then the constructor allocates an amount of those to be transferred to other addresses and the remainder are for sale.

But how do I implement logic that allows me to set an already created token as the token to be used in the crowdsale and then send those tokens to the contract and have them for sale?

Thanks for any help.

  • We don't have enough information to help you. Please share the source code of the existing contracts. – Jesse Busman Jul 5 '18 at 9:18
1

It depends on who currently owns the tokens which you want to sell in the crowdsale. You need to have a way to transfer those tokens somewhere. If you have this access, you can just write a crowdsale contract which references the token contract and calls its methods to send the tokens elsewhere with some logic (crowdsale).

Here's an example crowdsale: https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/examples/SampleCrowdsale.sol

-1

I think what you are looking for is an Escrow smart contract implementation.

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.