CRYPTO NEWS

Is Filecoin bull run over after a surge of more than 69% in a week?

  • Filecoin’s FIL is up 69% in the last week

  • Strong fundamentals are likely the cause of the recent FOMO on FIL

  • FIL could retrace, but the price will remain elevated

Filecoin FIL/USD was trading at $9.41 as of press time. Data by Coinmarketcap shows that the total gains in the week stand at 69.35%. The percentage surge would, of course, be greater, at the weakly high of above $11. As with most bull runs, corrections are bound to happen. We believe Filecoin could correct, but investors should be keen on the token. 

Filecoin gains do not come as a surprise. The token witnessed increased social media mentions and was the center of investor buys at $6. Holon Global, a venture capital firm, previously said it had launched three crypto funds. One fund was for Filecoin’s FIL. That may have increased investor interest amid improved crypto sentiment. 

Another potential driver of Filecoin token gains was a network update. The update showed that over 1,475 projects were entering Filecoin. More than 405 organizations were also building on the network, with about 17.9 EiB total storage power. The developments could have attracted FOMO to FIL, leading to the latest gains. 

Filecoin retreats after the weekly bullish momentum

Source – TradingView

Filecoin is retracing after the latest gains. The RSI pointed to a reading of 83, indicating overbought conditions as the price surged. A series of profit-taking and dying FOMO could lead to an accelerated price correction. The next level to watch for potential buy trades is $8.0. 

Concluding thoughts

Strong fundamentals have been driving Filecoin’s surge for the past week. A potential retracement is likely as investors take profits. Focus on buying on a retracement at $8.0 if the crypto sentiment remains.

The post Is Filecoin bull run over after a surge of more than 69% in a week? appeared first on CoinJournal.

Error: Returned error: VM Exception while processing transaction: revert only owner can call this function

Question Open the TestGaming.sol contract in the test folder. Write a test for the function withdrawFunds . Your test should check the balance of the owner who called the withdrawFunds function. Your test should also verify if the owner’s balance has increased by 10 ether. Gaming.sol pragma solidity ^0.5.0; contract Gaming { /* Our Online::Listen

Question

Open the TestGaming.sol contract in the test folder. Write a test for the function withdrawFunds . Your test should check the balance of the owner who called the withdrawFunds function. Your test should also verify if the owner’s balance has increased by 10 ether.

Gaming.sol

pragma solidity ^0.5.0;  contract Gaming {     /* Our Online gaming contract */     address public owner;     bool public online;      struct Player {         uint wins;         uint losses;     }      mapping (address => Player) public players;      constructor() public payable {         owner = msg.sender;         online = true;     }      modifier isOwner() {         require(msg.sender == owner, "Only owner can call this function");         _;     }  event GameFunded(address funder, uint amount);     event PlayerWon(address player, uint amount, uint mysteryNumber, uint displayedNumber);     event PlayerLost(address player, uint amount, uint mysteryNumber, uint displayedNumber);      function mysteryNumber() internal view returns (uint) {         uint randomNumber = uint(blockhash(block.number-1))%10 + 1;         return randomNumber;     }      function determineWinner(uint number, uint display, bool guess) public pure returns (bool) {         if (guess == true && number > display) {             return true;         } else if (guess == true && number < display) {             return false;         } else if (guess == false && number > display) {             return false;         } else if (guess == false && number < display) {             return true;         }     }      function winOrLose(uint display, bool guess) external payable returns (bool, uint) {         /* Use true for a higher guess, false for a lower guess */         require(online == true, "The game is online");         require(msg.sender.balance > msg.value, "Insufficient funds");         uint mysteryNumber_ = mysteryNumber();         bool isWinner = determineWinner(mysteryNumber_, display, guess);         Player storage player = players[msg.sender];         /* Player Won */         if (isWinner == true) {             player.wins += 1;             msg.sender.transfer(msg.value * 2);             emit PlayerWon(msg.sender, msg.value, mysteryNumber_, display);             return (true, mysteryNumber_);           /* Player Lost */         } else if (isWinner == false) {             player.losses += 1;             emit PlayerLost(msg.sender, msg.value, mysteryNumber_, display);             return (false, mysteryNumber_);         }     } 

TestGaming

pragma solidity ^0.5.0;  import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; import "../contracts/Gaming.sol";  contract TestGaming {     uint public initialBalance = 10 ether;     Gaming gaming;     address owner;      function beforeAll() public {         gaming = Gaming(DeployedAddresses.Gaming());         owner = gaming.owner();      }      function testWithdrawFunds() public {         sssssgaming.withdrawFunds();         Assert.equal(initialBalance + 10 ether, owner.balance, "Owner's balance should have increased by 10 ether");     }      function testPlayerWonGuessHigher() public {         bool expected = true;         bool result = gaming.determineWinner(5, 4, true);          Assert.equal(expected, result, "The player should have won by guessing the mystery number was higher than their number");     }      function testPlayerWonGuessLower() public {         bool expected = true;         bool result = gaming.determineWinner(5, 6, false);          Assert.equal(expected, result, "The player should have won by guessing the mystery number was lower than their number");     }      function testPlayerLostGuessLower() public {         bool expected = false;         bool result = gaming.determineWinner(5, 4, false);          Assert.equal(expected, result, "The player should have lost by guessing the mystery number was lower than their number");     }      function testPlayerLostGuessHigher() public {         bool expected = false;         bool result = gaming.determineWinner(5, 6, true);          Assert.equal(expected, result, "The player should have lost by guessing the mystery number was higher than their number");     } } 

Error enter image description here

Is Filecoin bull run over after a surge of more than 69% in a week?

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