[BUG] Optimize outbound transactions

This changes attempts to optimize the number of outbound transactions for a swap/withdrawal to the minimal transactions.

If first simulates yggs prioritized over asgard, and then asgards prioritized over ygg vaults. Then sees which one sends out less total number outbounds (with yggs first winning in the event of a tie).

This should make it cheaper to trade on TC as it reduces gas costs/fees but also makes the network more scalable as there are less outbound transactions to observe.

Edited by Heimdall

Merge request reports

Loading