How are funds allocated in OSS projects? - eviltoast

Following up on another question about open source funding, how does it usually work when there is funding to pay for the dev’s work, then someone new joins in and makes significant contributions? Does the original dev still keep everything? Do you split the funds between the devs? If so, how do you decide how much each person gets? Are there examples of projects where something like this has happened?