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

Distribute ATOM to DAO (community pool) on bonding curve buy #43

Merged
merged 2 commits into from
Jun 10, 2020

Conversation

shanev
Copy link
Member

@shanev shanev commented Jun 7, 2020

Fixes #41. Fixes #42.

@shanev shanev self-assigned this Jun 7, 2020
@@ -29,21 +27,16 @@ func handleMsgBuy(ctx sdk.Context, k Keeper, msg types.MsgBuy) (*sdk.Result, err
denom := fmt.Sprintf("transfer/%s/%s", types.Counterparty, types.CounterpartyDenom)
lockCoin := sdk.NewCoin(denom, msg.Amount.Amount)

err := k.SupplyKeeper.SendCoinsFromAccountToModule(ctx, msg.Sender, ModuleName, sdk.NewCoins(lockCoin))
err := k.DistributionKeeper.FundCommunityPool(ctx, sdk.NewCoins(lockCoin), msg.Sender)
Copy link
Member

Choose a reason for hiding this comment

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

👏

@shanev shanev merged commit 158de8b into master Jun 10, 2020
@shanev shanev deleted the shanev/41-atom-to-dao branch June 10, 2020 18:41
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.

Remove sell option Distribute ATOM to community pool (DAO)
3 participants