-
Notifications
You must be signed in to change notification settings - Fork 111
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
Feature/dutch auction cb bid #1027
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.
Everywhere in the DutchTradeRouter
let's use our unit notation to document the type of each variable: https://github.com/reserve-protocol/protocol/blob/master/docs/solidity-style.md#units-in-comments
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 good to me! Recommended some small changes below, logic looks sound!
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.
Nice tests! Unit notation looks good.
Left a comment about a variable I'm not sure is needed in the callback function.
Let's also touch docs/mev.md
and at least point them towards the existence of this router, though I think that document should remain describing how to bid against a DutchTrade
directly.
…reflect new way of using it
927a7ee
to
5cf82e1
Compare
…o reflect new design
5cf82e1
to
782658d
Compare
1/9/24:
|
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.
The bidType
state tracking is uglier than I'd like it to be, but I don't see a good alternative. I tried a few things and none of them are better.
I did leave some fussy comments, though. I think it's important for this contract to be as clear as possible, and there were a few things around the edges I thought detracted from that.
Also, I think we should swap the implementation order of bid()
and bidWithCallback()
, I think it makes more sense for bid()
to come first.
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
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
No description provided.