-
Notifications
You must be signed in to change notification settings - Fork 18
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
At/account #47
At/account #47
Conversation
deepbook/sources/pool/account.move
Outdated
// TODO: use Bag instead of direct dynamic fields | ||
/// Owned by user, this is what's passed into pools | ||
public struct Account has key, store { | ||
const MAX_TRADE_CAPS: u64 = 10; |
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.
why do we need this limit?
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.
we can't make it unlimited since vector can become too large. this constraint reduces the possible attack vectors
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.
Agreed on the limit, to rephrase better, the "10" is just a placeholder right?
It could be 1K for instance (or the max size of the vector) [we'll decide that later?]
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.
Hmmmm let's make it 1k
No description provided.