futarchy
futarchy copied to clipboard
Add an anti-frontunning check
As an anti-spam measure, we force the proposer to burn some lamports.
We should add a parameter expected_lamport_burn
that you can pass into initialize_proposal
. We should revert the transaction if actual lamport burn would be greater than expected lamport burn.
Drafted by Ichigo here, but it looks like he's swamped rn so this is up for grabs! Feel free to build off of his PR or create your own
No longer needed given new AMM anti-spam tool where you just require a minimum amount of liquidity to be deposited