Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Jun 17, 2024
1 parent 837851b commit 78012b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions osmosis/modules/poolmanager/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ func (sf *WrapperMsgSwapExactAmountOut) HandleMsg(msgType string, msg sdk.Msg, l
if transfer.Sender == sf.OsmosisMsgSwapExactAmountOut.Sender && transfer.Recipient == contractAddress {

transferredAmount, err := sdk.ParseCoinNormalized(transfer.Amount)

if err != nil {
return errors.New("error parsing contract to user transfer amount")
}
Expand Down Expand Up @@ -320,7 +319,6 @@ func (sf *WrapperMsgSwapExactAmountOut) HandleMsg(msgType string, msg sdk.Msg, l
if transfer.Recipient == sf.OsmosisMsgSwapExactAmountOut.Sender && transfer.Sender == contractAddress {

transferredAmount, err := sdk.ParseCoinNormalized(transfer.Amount)

if err != nil {
return errors.New("error parsing contract to user transfer amount")
}
Expand All @@ -342,7 +340,6 @@ func (sf *WrapperMsgSwapExactAmountOut) HandleMsg(msgType string, msg sdk.Msg, l

// Subtract the two to get the token in
tokenInAmount, err := userToContractAmount.SafeSub(*contractToUserAmount)

if err != nil {
return errors.New("error subtracting contract to user amount from user to contract amount")
}
Expand Down

0 comments on commit 78012b1

Please sign in to comment.