SyrupBitcoinRouter::processRedemptions() could be optimized by batching transfers together
Summary
SyrupBitcoinRouter::processRedemptions() transfer in each loop iteration, when the sums could be added together and transferred after the end.
Vulnerability Detail
As can be seen here, it will transfer/redeem on every iteration, which is not very effective.
Impact
N/A
Code Snippet
Tool Used
Manual Review
Recommendation
Redeeming, treasury fees, and even the owner could be optimized to be batched together.