-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[Deepbook] Support creating customized pool #12819
[Deepbook] Support creating customized pool #12819
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 6 Ignored Deployments
|
@wiggins-dev is attempting to deploy a commit to the Mysten Labs Team on Vercel. A member of the Team first needs to authorize it. |
5f53240
to
5eb9b79
Compare
## Description Add entry function for creating pool with customized taker fee rete and maker rebate rate. No extra test needed since it is just a simple wrapper function. ## Test Plan cd to deepbook dir and run "sui move test" --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ---------
} | ||
|
||
// Function for creating pool with customized taker fee rate and maker rebate rate. | ||
// The taker_fee_rate should be greater than or equal to the maker_rebate_rate, and both should have a scaling of 10^9. |
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.
should we assert this? Also ok if you don't since people just won't use the pool
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 have asserted this inside the internal function "create_pool_".
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
## Description Add entry function for creating pool with customized taker fee rete and maker rebate rate. No extra test needed since it is just a simple wrapper function. ## Test Plan cd to deepbook dir and run "sui move test" --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ---------
Add entry function for creating pool with customized taker fee rete and maker rebate rate. No extra test needed since it is just a simple wrapper function. cd to deepbook dir and run "sui move test" --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ---------
5eb9b79
to
f682bed
Compare
0bec9fc
to
c96e215
Compare
## Description Add entry function for creating pool with customized taker fee rete and maker rebate rate. No extra test needed since it is just a simple wrapper function. ## Test Plan Run deepbook unit test. --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
## Description Update market ask order with quantity. Currently the quantity argument in place_market_order only used for bid side and we sell all the passed in base asset instead the quantity of base asset. To avoid confusing, we now also sell the quantity of base asset. ## Test Plan cd to deepbook dir and run "sui move test" --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ---------
## Description Update market ask order with quantity. Currently the quantity argument in place_market_order only used for bid side and we sell all the passed in base asset instead the quantity of base asset. To avoid confusing, we now also sell the quantity of base asset. ## Test Plan cd to deepbook dir and run "sui move test" --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ---------
## Description Add entry function for creating pool with customized taker fee rete and maker rebate rate. No extra test needed since it is just a simple wrapper function. ## Test Plan Run deepbook unit test. --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [✅] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [✅] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
Description
Add entry function for creating pool with customized taker fee rete and maker rebate rate.
No extra test needed since it is just a simple wrapper function.
Test Plan
Run deepbook unit test.
If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)
Release notes