-
Notifications
You must be signed in to change notification settings - Fork 133
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
program: fill perp order accepts multiple makers #341
Conversation
@@ -901,7 +901,7 @@ export type MakerInfo = { | |||
maker: PublicKey; | |||
makerStats: PublicKey; | |||
makerUserAccount: UserAccount; | |||
order: Order; | |||
order?: Order; |
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.
this is just for fully backwards compatibility?
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.
need it for spot still
if (makerInfo !== undefined) { | ||
userAccounts.push(makerInfo.makerUserAccount); | ||
for (const maker of makerInfo) { | ||
userAccounts.push(maker.makerUserAccount); |
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.
is it worth filtering out duplicates here or throwing error on client side? just in case?
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.
it will error on the smart contract, we can probably dedupe here
No description provided.