Description
setFundingPeriod() calls settleFunding() in the ClearingHouse.
It may be the case that someone frontruns setFundingPeriod() with a call to settleFunding(), making the setFundingPeriod() transaction revert.
Recommendation
Make the funding payments pro-rata to time instead of in fixed intervals. This would also solve the fact that settleFunding() calls can be frontrunned to avoid payments.
Status
Addressed in #d75fc8c