Minor changes.

This commit is contained in:
Sowmayjain 2019-04-19 02:46:11 +05:30
parent 5002098a1d
commit f3e23fbe84

View File

@ -56,20 +56,13 @@ contract Helper {
admin = 0x7284a8451d9a0e7Dc62B3a71C0593eA2eC5c5638;
}
/**
* @dev get fees to trade // 200 => 0.2%
*/
function getUintFees() public pure returns (uint fees) {
fees = 200;
}
/**
* @dev gets ETH & token balance
* @param src is the token being sold
* @return ethBal - if not erc20, eth balance
* @return tknBal - if not eth, erc20 balance
*/
function getBal(address src, address _owner) public view returns (uint, uint) {
function getBal(address src, address _owner) internal view returns (uint, uint) {
uint tknBal = IERC20(src).balanceOf(address(_owner));
return (address(_owner).balance, tknBal);
}