Contract for efficiently combining splits together with a waterfall
Install foundry, then run forge install and forge build to compile the contracts.
forge fmt
forge test - compile & test the contracts
forge t -vvv - produces a trace of any failing tests