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

[Deepbook] Support creating customized pool #12819

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

wiggins-dev
Copy link
Contributor

@wiggins-dev wiggins-dev commented Jul 3, 2023

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

@vercel
Copy link

vercel bot commented Jul 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Jul 5, 2023 2:31am
explorer-storybook ⬜️ Ignored (Inspect) Jul 5, 2023 2:31am
multisig-toolkit ⬜️ Ignored (Inspect) Jul 5, 2023 2:31am
sui-kiosk ⬜️ Ignored (Inspect) Jul 5, 2023 2:31am
sui-wallet-kit ⬜️ Ignored (Inspect) Jul 5, 2023 2:31am
wallet-adapter ⬜️ Ignored (Inspect) Jul 5, 2023 2:31am

@vercel
Copy link

vercel bot commented Jul 3, 2023

@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.

@wiggins-dev wiggins-dev marked this pull request as draft July 3, 2023 04:51
@wiggins-dev wiggins-dev force-pushed the customized_create_pool branch from 5f53240 to 5eb9b79 Compare July 3, 2023 06:18
wiggins-dev added a commit to wiggins-dev/sui that referenced this pull request Jul 3, 2023
## 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

---------
@wiggins-dev wiggins-dev marked this pull request as ready for review July 3, 2023 06:19
@wiggins-dev wiggins-dev changed the title add create_customized_pool [Deepbook] Support creating customized pool Jul 3, 2023
}

// 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.
Copy link
Contributor

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

Copy link
Contributor Author

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_".

Copy link
Contributor

@healthydeve healthydeve left a 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

---------
healthydeve pushed a commit to wiggins-dev/sui that referenced this pull request Jul 5, 2023
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

---------
@healthydeve healthydeve force-pushed the customized_create_pool branch from 5eb9b79 to f682bed Compare July 5, 2023 01:43
@wiggins-dev wiggins-dev force-pushed the customized_create_pool branch from 0bec9fc to c96e215 Compare July 5, 2023 02:31
@healthydeve healthydeve merged commit a831c38 into MystenLabs:main Jul 5, 2023
longbowlu pushed a commit that referenced this pull request Jul 6, 2023
## 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
wiggins-dev pushed a commit to wiggins-dev/sui that referenced this pull request Jul 8, 2023
## 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

---------
wiggins-dev pushed a commit to wiggins-dev/sui that referenced this pull request Jul 8, 2023
## 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

---------
ebmifa pushed a commit that referenced this pull request Jul 12, 2023
## 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
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.

2 participants