function splitAmount(uint256 amount) private {
a1.transfer(amount.div(2));
a2.transfer(amount.div(2));
}
I've seen other threads on this but I feel like over complicate things. With this code the amount is evenly split between a1 and a2 with division by 2.
How would one do something like a 80/20 split with the same code?