tweag / cooked-validators

MIT License
39 stars 11 forks source link

Precise selection of balancing Utxos #409

Closed mmontin closed 1 week ago

mmontin commented 1 month ago

We used to have a mechanism to precisely select utxos eligible for balancing. It was merged here: #355 It was removed as part as the commit https://github.com/tweag/cooked-validators/commit/931d1b4353e4c8b740b8cc6b74b19f3d14a1b15a, in file Balancing.hs line 249. It was removed under the assumption that it was not actually used anywhere in the code. That assumption might have been wrong. We need to investigate it and restore this functionality if needed.

florentc commented 1 month ago

This was used in the code for sure. I think this feature is light and can still come in handy.

There used to be 4 policies:

To sum up, I would like to re-introduced a simpler version of this tx skeleton option with only 2 policies:

data BalancingUtxos
  = -- | Use all UTxOs without datum
    BalancingUtxosAutomatic
  | -- | Use only the provided UTxOs
    BalancingUtxosWith [TxOutRef]
mmontin commented 3 weeks ago

Will be closed by #417