CRYPTO NEWS

Bitcoin, Ethereum Technical Analysis: BTC, ETH Consolidate as Some Expect Fed to Hike Rates by 1% 

Bitcoin fell below $19,000 on Wednesday, as markets prepared for a potential 100 basis point interest rate hike from the United States central bank. Although the consensus for a rate increase remains at 0.75%, some believe that with inflation remaining at historically high levels, a 1.00% hike could be on the cards. Ethereum remained lower on the news, trading marginally above $1,300.

Bitcoin

Bitcoin (BTC) fell below $19,000 earlier in the day, as traders began to prepare for today’s Federal Open Market Committee (FOMC) meeting.

Market uncertainty remains rife as speculation grows on whether the Fed could go as far as raising rates by 100 basis points.

As a result, BTC/USD fell to a low of $18,813.46 earlier today, a day after hitting a peak above the $19,600 level.

Looking at the chart, this most recent drop has pushed the 10-day (red) moving average on the brink of a downwards cross with its 25-day (blue) counterpart.

Should this happen, we could see bitcoin not only slip below $19,000, but potentially drop under $18,000 for the first time since June.

As of writing, the token is trading at $19,153.66, as prices continue to consolidate prior to this afternoon’s announcement.

Ethereum

Ethereum (ETH) was also consolidating on hump day, with the token trading marginally above the $1,300 level.

Following a high of $1,378.68 on Tuesday, ETH/USD moved to an intraday low of $1,319.20 earlier today, as sentiment in crypto markets remained bearish.

Traders have been tentative in recent days, opting to liquidate positions as opposed to holding onto longs ahead of the rate hike.

The rise in uncertainty also came following a collision on the 14-day relative strength index (RSI), with the index hitting a resistance point.

As of writing, the index is tracking at 38.43, which is marginally below a ceiling of 39.00, currently the main obstacle preventing prices from climbing.

Although there remains a high level of fear in the marketplace, should we see a breakout of the aforementioned ceiling, ETH bulls may reenter the market, and attempt to take price above $1,400.

Register your email here to get weekly price analysis updates sent to your inbox:

Will the Federal Reserve decide to hike rates by 0.75% or 1.00% today? Leave your thoughts in the comments below.

Im trying to create a basic voting contract in solidity, but got this only error. {help}

So I am trying to create a voting contract in solidity. error is, transact to voting.vote errored: VM error: revert. The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction::Listen

So I am trying to create a voting contract in solidity. error is,

transact to voting.vote errored: VM error: revert.     The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information. 

Code:

//SPDX-License-Identifier: UNLICENSED import "@openzeppelin/contracts/utils/Strings.sol"; pragma solidity ^0.8.14;  contract voting{     address admin;     constructor(){         admin = msg.sender;     }     struct candidate{         string can_name;         address can_add;         uint256 votes;     }     struct _candidate{         string can_name;         address can_add;     }      address[] voters;     mapping(uint => candidate) private all_candidates;     mapping(uint => _candidate) _all_candidates;      uint can_count = 0;      modifier Admin {         require(msg.sender == admin, "You dont have access to this feature.");         _;     }      function isAdded(address _addr) private view returns(bool) {         candidate memory temp;         for(uint i=0;i<can_count;i++){             temp = all_candidates[i];              if(temp.can_add == _addr){                 return true;             }         }         return false;        }      function add_candidate(string memory _name, address _addr) public Admin {         require(!isAdded(_addr), "Address already added !");         candidate memory temp;         _candidate memory temp2;         temp.can_name = _name;         temp2.can_name = _name;         temp.can_add = _addr;         temp2.can_add = _addr;         all_candidates[can_count] = temp;         _all_candidates[can_count] = temp2;         can_count++;     }      function Announce_Winner() public view Admin returns(string memory _winner) {         require(can_count >= 2, "Add atleast 2 candidates!");         uint max_votes=0;         candidate memory temp2;         candidate memory winner;         for(uint i=0;i<can_count;i++){             temp2 = all_candidates[i];              if(temp2.votes > max_votes){                 max_votes = temp2.votes;                 winner = temp2;             }         }         string memory winnerstr = "winner is: ";         winnerstr = string.concat(winnerstr, winner.can_name);         winnerstr = string.concat(winnerstr, " with votes: ");         winnerstr = string.concat(winnerstr, Strings.toString(winner.votes));         winnerstr = string.concat(winnerstr, " has address: ");         winnerstr = string.concat(winnerstr, Strings.toHexString(uint256(uint160(winner.can_add)), 20));                  return winnerstr;     }      function showCandidates() public view returns(string memory) {         string memory temp = "";         for(uint i=0; i<can_count; i++){             temp = string.concat(temp, Strings.toString(i));             temp = string.concat(temp, ": ");             temp = string.concat(temp, _all_candidates[i].can_name);             temp = string.concat(temp, "    ");         }         return temp;     }      function isVotingSelf(address _addr, uint index) private view returns(bool) {         if(all_candidates[index].can_add == _addr){             return true;         }else{             return false;         }     }      function isVotingAgain(address _addr) private view returns(bool) {         for(uint i = 0; i<= voters.length; i++){             if(voters[i] == _addr){                 return true;             }         }         return false;     }       function vote(uint256 indexOfCandidate) public {         require(!isVotingSelf(msg.sender, indexOfCandidate), "You cant vote yourself.");         require(!isVotingAgain(msg.sender), "You already voted.");         all_candidates[indexOfCandidate].votes++;         voters.push(msg.sender);     } } 

enter image description here

Bitcoin, Ethereum Technical Analysis: BTC, ETH Consolidate as Some Expect Fed to Hike Rates by 1% 

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