mlabs-haskell / hydra-auction

An auction system running on Hydra L2 solution
Apache License 2.0
6 stars 5 forks source link

Fairer distribution of Cardano fee to delegates in auction fees distribution transaction #298

Open nazrhom opened 1 year ago

nazrhom commented 1 year ago

Currently, in the fee escrow validator, we require for the fee that has been generated by an auction, to be evenly distributed over the list of delegates in a single tx.

This leads to an asymmetry, as one delegate will have to pay the tx fee for all the delegates to collect their ADA. We could improve this by taking into account the tx fee, and ensuring that the delegate that is submitting the tx to spend the fee escrow utxo can take out a bit more of the reward, to cover this fee.

uhbif19 commented 1 year ago

Cool solution, did not think about that. Seems simple to implement.

While that will probably break in corner case of auctionFeePerDelegate == minimal ADA.