# Problem - As we discussed https://github.com/DeFiGeek-Community/yamato/pull/73, a huge redemption requires relative amount of txcost against the redemption amount. # Harm - Given there's a redemption efficiency graph, it is constant. - Both a small redemption and a huge redemption pay a few percent of txcost. # Cause - Traversing pledges and expensing each one. - Larger redemption, more traversing and processing. # Solution - `redeemAll()` and expense all pledges at once. txcost will be cheaper. - Given there's a redemption efficiency graph, it will be linear. - A huge redemption is more efficient. - Flashbots are much more profitable.
Problem
Harm
Cause
Solution
redeemAll()and expense all pledges at once. txcost will be cheaper.