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

fix: use withdraw to transfer funds from vault to trader #633

Merged
merged 6 commits into from
Jun 20, 2022

Conversation

testinginprod
Copy link
Collaborator

closes: #619

@testinginprod testinginprod requested a review from a team as a code owner June 17, 2022 10:06
@testinginprod testinginprod marked this pull request as draft June 17, 2022 10:06
@testinginprod testinginprod marked this pull request as ready for review June 17, 2022 10:14
@testinginprod testinginprod changed the title change: use withdraw to transfer funds from vault to trader fix: use withdraw to transfer funds from vault to trader Jun 17, 2022
@@ -90,7 +90,7 @@ func (k Keeper) SettlePosition(
if err != nil {
panic(err) // NOTE(mercilex): must never happen
}
err = k.BankKeeper.SendCoinsFromModuleToAccount(
err = k.BankKeeper.SendCoinsFromModuleToAccount( // NOTE(mercilex): withdraw is not applied here
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this correct @NibiruHeisenberg ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks fine to me. We probably won't be running settlements anytime soon either.

@@ -90,7 +90,7 @@ func (k Keeper) SettlePosition(
if err != nil {
panic(err) // NOTE(mercilex): must never happen
}
err = k.BankKeeper.SendCoinsFromModuleToAccount(
err = k.BankKeeper.SendCoinsFromModuleToAccount( // NOTE(mercilex): withdraw is not applied here
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks fine to me. We probably won't be running settlements anytime soon either.

@testinginprod testinginprod merged commit 6c00dbf into master Jun 20, 2022
@testinginprod testinginprod deleted the mercilex/use-withdraw branch June 20, 2022 06:03
@NibiruHeisenberg NibiruHeisenberg linked an issue Jul 10, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants