Re-entrancy Vulnerability?

function transferFunds(uint _value) private { uint _fee = (3*_value)/(2*100); //Perform Ether transfer method merchant.transfer(_value – _fee); admin.transfer(_fee); emit LogForwardedEther(_value, merchant, _value – _fee, admin, _fee); } function transferFunds(address _token) private { uint _value = ERC20(_token).balanceOf(address(this)); uint _fee = (3*_value)/(2*100); //Perform Token transfer method ERC20(_token).transfer(merchant, _value – _fee); ERC20(_token).transfer(admin, _fee); emit LogForwardedToken(_value, merchant, _value – _fee,…

DaoAttack not working

I am trying to replicate the famous DAO attack for a cryptocurrencies course. I have the following contract already deployed on the blockchain. pragma solidity ^0.5.4; contract EDao { address payable public student; //Events event Success(address src,uint256 ret); event Fail(address src,uint256 ret); event NotEnoughFunds(address src, uint256 req, uint256 avail, uint256 balance); //Structs struct Fund {…

Where have I gone wrong in my chainparams.cpp? (Assertion genesis hash failed)

So I’ve been working on this particular problem for a few days now, and have felt it’s time to turn to this helpful community. I’ve created my cryptocurrency, but unfortunately, upon running the mochachaind command, I receive the following error. mochachaind: chainparams.cpp:125: CMainParams::CMainParams(): A ssertion `consensus.hashGenesisBlock == uint256S(“0x4abec05aead ed07a615896f1cbc15cb54540ae417b99d377639e5aad2b0a0617”)’ failed . Aborted I have regenerated…

Why can I only deploy approx. 3 smart contracts per minute with infura using Ropsten and Rinkeby

I have created a Dapp that is written in Solidity and compiled with Truffle on both Rinkeby and Ropsten. I have also created a frontend for batch file uploads and a backend for the actual deploying using Truffle-HD-Wallet on Infura. The backend is written in JavaScript for Node.JS using the Express library. I am running…