The HEX smart deal penalizes stakers for ending their stake early and rewards them for staking much larger amounts of HEX for for a longer time periods. As transactions are broadcasted into the Blockchain by end users they go into a general public mempool. Miners have a holistic perspective above https://www.dex-cow.fi/