Where the claims of subcontractors exceed in the aggregate the unpaid balance of the contract price specified in the contract between the owner and the contractor, then if the subcontractor has actual notice of the total amount of said contract price and of its provisions for the time or times for payment thereof before any labor or materials were furnished by him, or if such contract or the pertinent provisions thereof were filed in the office of the prothonotary in the time and manner provided in section 402, each claim shall, upon application of the owner, be limited to its pro-rata share of the contract price remaining unpaid, or which should have remained unpaid, whichever is greatest in amount at the time notice of intention to file a claim was first given to the owner, such notice inuring to the benefit of all claimants.
49 P.S. § 1405