mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Minor changes.
This commit is contained in:
parent
5002098a1d
commit
f3e23fbe84
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user