Skip to content

Commit

Permalink
chore: fix some comments for struct field (#661)
Browse files Browse the repository at this point in the history
Signed-off-by: closeobserve <[email protected]>
  • Loading branch information
closeobserve authored Jul 18, 2024
1 parent 07597e3 commit 3c56438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/accountedpool/keeper/hooks_perpetual.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (k Keeper) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool, send
k.InitiateAccountedPool(ctx, ammPool)
}

// AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
// AfterAmmJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
func (k Keeper) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, perpetualPool perpetualtypes.Pool, sender string) {
k.UpdateAccountedPool(ctx, ammPool, perpetualPool)
}
Expand Down
8 changes: 4 additions & 4 deletions x/tier/keeper/hooks_perpetual.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ func (k Keeper) AfterPerpetualPositionClosed(ctx sdk.Context, ammPool ammtypes.P
k.RetrieveAllPortfolio(ctx, sender)
}

// AfterPoolCreated is called after CreatePool
// AfterAmmPoolCreated is called after CreatePool
func (k Keeper) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool, sender string) {
k.RetrieveAllPortfolio(ctx, sender)
}

// AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
// AfterAmmJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
func (k Keeper) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, perpetualPool perpetualtypes.Pool, sender string) {
k.RetrieveAllPortfolio(ctx, sender)
}

// AfterExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut
// AfterAmmExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut
func (k Keeper) AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, perpetualPool perpetualtypes.Pool, sender string) {
k.RetrieveAllPortfolio(ctx, sender)
}

// AfterSwap is called after SwapExactAmountIn and SwapExactAmountOut
// AfterAmmSwap is called after SwapExactAmountIn and SwapExactAmountOut
func (k Keeper) AfterAmmSwap(ctx sdk.Context, ammPool ammtypes.Pool, perpetualPool perpetualtypes.Pool, sender string) {
k.RetrieveAllPortfolio(ctx, sender)
}
Expand Down

0 comments on commit 3c56438

Please sign in to comment.