Skip to content

Instantly share code, notes, and snippets.

@carchrae
Forked from anonymous/LPToken.sol
Last active September 23, 2017 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carchrae/9f15e758e436a56460a1ec04ee3fd2c7 to your computer and use it in GitHub Desktop.
Save carchrae/9f15e758e436a56460a1ec04ee3fd2c7 to your computer and use it in GitHub Desktop.
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.15+commit.bbb8e64f.js&optimize=true&gist=
pragma solidity ^0.4.11;
import 'zeppelin-solidity/contracts/token/MintableToken.sol';
contract LPToken is MintableToken {
string public name = "Frontier LP Token";
string public symbol = "FPLP";
uint256 public decimals = 18;
}
pragma solidity ^0.4.11;
import 'zeppelin-solidity/contracts/crowdsale/RefundableCrowdsale.sol';
import './LPToken.sol';
contract Syndicate is Crowdsale {
function Syndicate(uint256 _startBlock, uint256 _endBlock, uint256 _rate, address _wallet) Crowdsale(_startBlock, _endBlock, _rate, _wallet) {
}
// creates the token to be sold.
// override this method to have crowdsale of a specific MintableToken token.
function createTokenContract() internal returns (MintableToken) {
return new LPToken();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment