Skip to content
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

fix: 712 ordering for Priority Orders #258

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

zhongeric
Copy link
Collaborator

@zhongeric zhongeric commented Jul 17, 2024

Tested using SDK integration test and it passes. PERMIT2_ORDER_TYPE is used to transfer tokens via permit2, ORDER_TYPE is used to hash the order.

@zhongeric zhongeric merged commit b26c523 into priority-tax Jul 17, 2024
2 of 3 checks passed
zhongeric added a commit that referenced this pull request Jul 25, 2024
* initial commit - priority fee reactor, lib, and structs

* Implement reactor, add tests and library tests

* forge fmt

* Add validation tests

* nit: comment

* change to MPS

* forge fmt

* remove unchecked loop

* add comment

* replace mps with pips

* rename back to mps

* fix comment and test

* add comment

* Set maxAmount to original input amount to fix token permissions error

* forge fmt

* comments: cache value in lib

* Add explicit edge case priority fee lib tests

* forge fmt

* add tests

* add baseFee assert

* forge fmt

* feat: add cosigner logic and minPriorityFee (#254)

* 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]>

* fix: cosigner verification edge cases and other fixes (#255)

* move cosigner verification logic into validate

* Add cosignerlib

* nit: comments

* Add tests to CosignerLib

* flip and forge fmt

* Fix 712 ordering (#258)

* chore: add better gas coverage for priority orders

* fix gas snaps

* feat: revert quickly if order is already filled (#259)

* revert quickly if invalid nonce

* update gas snaps

* add tests for invalid nonces

* Change revert to OrderAlreadyFilled

* forge fmt

* rm console2

---------

Co-authored-by: ConjunctiveNormalForm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants