-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add priority tax reactor #252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very sick - few small thoughts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! 🚀
* Add cosigner logic * Add invalid cosigner and cosignature tests * Add minPriorityFee * remove openAuctionStartBlock * add revert test for filling before cosigner and before auction start block * remove unused error * Only validate cosignature if before auctionStartBlock * add custom revert for txGasprice < block base fee * add revert test for txgasprice * remove view modifier * only call updateCosignerData func if before auctionStartBlock * move getPriorityFee into separate func * fix compiler warnings for tests --------- Co-authored-by: ConjunctiveNormalForm <[email protected]>
* move cosigner verification logic into validate * Add cosignerlib * nit: comments * Add tests to CosignerLib * flip and forge fmt
* revert quickly if invalid nonce * update gas snaps * add tests for invalid nonces * Change revert to OrderAlreadyFilled * forge fmt * rm console2
Introduces a new reactor type, PriorityOrderReactor, which scales the output amount required to fill an order by the priority fee set in the filling transaction