I'm trying to pay royalties from a contract to multiple wallets, however the multiplication is always sending me to 0.
function withdraw_to_taxman() public view returns (uint256){ uint256 balance = address(this).balance; uint256 withdraw_amount = balance * _tax_rate; return (withdraw_amount); }
I'm writing this function to test how much I will withdraw, and then I would divide by 100 to get the actual withdrawal amount given that _tax_rate is a %. This withdraw_amount always returns 0, and I'm not sure why tax_rate is a uint256 that I am testing at the value of 1 I would greatly appreciate any help, thanks