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

refactor: add deposit rate #314

Merged
merged 4 commits into from
Apr 25, 2022
Merged

refactor: add deposit rate #314

merged 4 commits into from
Apr 25, 2022

Conversation

0xHansLee
Copy link
Contributor

We previously have data_pool_deposit, which is a fixed value of deposit for creation data pool.
In this PR, it is changed to data_pool_deposit_rate as a governance parameter, which is proportional to the expected total sales of data pass. (0 <= data_pool_deposit_rate <= 1)

required_deposit = (total_supply_data_pass * price_data_pass) * deposit_rate

Accordingly, check is added whether the deposit curator sent is greater than or equal to the required deposit.
Plus, the deposit field is added to pool, (refer the comment)

@0xHansLee 0xHansLee added the Market Data Marketplace for Web3.0 label Apr 21, 2022
@0xHansLee 0xHansLee added this to the Data Pool Model milestone Apr 21, 2022
@0xHansLee 0xHansLee self-assigned this Apr 21, 2022
Copy link
Contributor

@youngjoon-lee youngjoon-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@gyuguen gyuguen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

hansol-medi added 2 commits April 25, 2022 11:07
…t-spec

# Conflicts:
#	x/datapool/client/cli/txPool.go
#	x/datapool/keeper/pool_test.go
#	x/datapool/types/genesis.pb.go
#	x/datapool/types/tx.pb.go
@0xHansLee 0xHansLee merged commit 97c5629 into master Apr 25, 2022
@0xHansLee 0xHansLee deleted the ft/na/change-deposit-spec branch April 25, 2022 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Market Data Marketplace for Web3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants