Submitted by cmichel, also found by rayn and catchup
RateLimited.sol#L142
The RateLimited.setBufferCap function first updates the buffer and then sets the new cap, but does not apply the new cap to the updated buffer.
Meaning, the updated buffer value can be larger than the new buffer cap which should never be the case.
Actions consuming more than the new buffer cap can be performed.
Update the buffer after setting the new cap:
ElliotFriedman (Volt) confirmed
