CRYPTO NEWS

Error: StartCoinCrowdsale contract constructor expected 5 arguments, received 6

This is my contract code.

    contract StartCoinCrowdsale is TimedCrowdsale, MintedCrowdsale, CappedCrowdsale, FinalizableCrowdsale   { //100000000000       uint256 public constant TOTAL_SHARE = 100;     uint256 public constant CROWDSALE_SHARE = 80;     uint256 public constant FOUNDATION_SHARE = 20;     function StartCoinCrowdsale         (             uint256 _openingTime,             uint256 _closingTime,             uint256 _rate,             address _wallet,             uint256 _cap,             MintableToken _token         )         public         Crowdsale(_rate, _wallet, _token)          TimedCrowdsale(_openingTime, _closingTime)          CappedCrowdsale(_cap)         FinalizableCrowdsale() {     }      function finalization() internal {         uint256 totalSupply = token.totalSupply();         uint256 finalSupply = TOTAL_SHARE.mul(totalSupply).div(CROWDSALE_SHARE);//100*8000/80=10000          // emit tokens for the foundation         MintableToken(token).mint(wallet, FOUNDATION_SHARE.mul(finalSupply).div(TOTAL_SHARE));//20*10000/100=2000         super.finalization();     } } 

This is my deployment code

    module.exports = function (deployer, network, accounts) {     const openingTime = web3.eth.getBlock('latest').timestamp + 2; // two secs in the future     const closingTime = openingTime + 120; // 3 minutes     // const closingTime = openingTime + 86400 * 20; // 20 days     const rate = new web3.BigNumber(1000);     const wallet = accounts[1];     const cap = new web3.BigNumber(8000000000000000000); //8 ether     return deployer         .then(() => {             return deployer.deploy(StartCoin);         })         .then(() => {             console.log(openingTime, closingTime, cap, wallet, rate, StartCoin.address);             return deployer.deploy(                 StartCoinCrowdsale,                 openingTime,                 closingTime,                 rate,                 wallet,                 cap,                 StartCoin.address             );         })         .then(() => { // giving the crowdsale ownership over the token             return StartCoinCrowdsale.deployed().then(crowdsale => {                 crowdsale.token().then(tokenAddress => {                     const startCoinInstance = StartCoin.at(tokenAddress);                     startCoinInstance.transferOwnership(crowdsale.address).then(output => {})                 })             }).catch(err => {                 console.log(err);             })         }); }; 

This is my error.

    Running migration: 2_deploy_contracts.js   Running step...   Deploying StartCoin...   ... 0xf719c61552cc15ddf5f951a95a7261d3b8aa6cbb4a6109940bd54dc9b004e6a5   StartCoin: 0xa8a6b3b9fc3db2831bafc68c4ee60b32e5e49c87 1525510753 1525510873 BigNumber { s: 1, e: 18, c: [ 80000 ] } '0x93a0fd6e1af85eab7045244e972704b498836bcb' BigNumber { s: 1, e: 3, c: [ 1000 ] } '0xa8a6b3b9fc3db2831bafc68c4ee60b32e5e49c87'   Deploying StartCoinCrowdsale... Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: StartCoinCrowdsale contract constructor expected 5 arguments, received 6     at /usr/lib/node_modules/truffle/build/webpack:/~/truffle-contract/contract.js:390:1     at new Promise (<anonymous>)     at /usr/lib/node_modules/truffle/build/webpack:/~/truffle-contract/contract.js:374:1     at <anonymous>     at process._tickCallback (internal/process/next_tick.js:182:7) 

Any help would be appreciated.

Fantom’s failure to take off at $0.28 could see the price drop to below $0.1

Fantom token trades at $0.25, slightly below the $0.28 support. Fantom network has been hit by crypto sector weakness and developers exit. FTM could find the next support at $0.5 if $0.28 fails to hold. Fantom network FTM/USD experienced exponential growth in 2021. The growth continued in January this year, as the native token almost::Listen

  • Fantom token trades at $0.25, slightly below the $0.28 support.

  • Fantom network has been hit by crypto sector weakness and developers exit.

  • FTM could find the next support at $0.5 if $0.28 fails to hold.

Fantom network FTM/USD experienced exponential growth in 2021. The growth continued in January this year, as the native token almost recovered to its all-time high. However, Fantom was subsequently hit by a weakness that swept across the sector. 

Fantom experienced a downturn in March this year. Two of its leading developers announced the exit of a once booming crypto project. Andre Cronje, one of the lead developers, was instrumental in the growth of Fantom. The market didn’t receive the news well, as Fantom’s native token crashed afterward. The network’s total value locked dropped by more than 21% in 24 hours after the news. Currently, Fantom boasts $842.25 million TVL. The TVL is significantly below an all-time high of $12.79 billion as of January 25.

Fantom has been bearish as network woes continued. There were speculations of the return of the developers, but nothing remains confirmed to date. Alongside the crash in the crypto segment, Fantom remains under pressure.

Fantom trades slightly below $0.28 support

Source – TradingView

From the technical outlook, FTM is trading around the support, established at $0.28. The current price is $0.24, although not sufficient to be called a breakout. The price is under pressure as nothing confirms a bullish reversal at the support. The 21-day and 14-day moving averages offer resistance above. The MACD indicators are in the bear zone. We project a further decline of the Fantom token. The next support is established at $0.05 if the $0.28 zone fails to hold. However, crypto volatilities mean the price could recover quickly.

Concluding thoughts

Fantom is under pressure at the $0.28 support. Although yet to successfully break below, technical indicators support a lower price. The crypto-token may fall further if the support fails to hold, with the next level at $0.05. The price may reverse above the next support if crypto fundamentals improve.

The post Fantom’s failure to take off at $0.28 could see the price drop to below $0.1 appeared first on CoinJournal.

Error: StartCoinCrowdsale contract constructor expected 5 arguments, received 6

Shopping cart
There are no products in the cart!
Continue shopping
0