Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed Oct 15, 2024
1 parent dde438c commit 9b4c5e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion x/dex/keeper/place_limit_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (k Keeper) ExecutePlaceLimitOrder(

var limitPrice math_utils.PrecDec
limitPrice, err = types.CalcPrice(tickIndexInToOut)

if err != nil {
return trancheKey, totalIn, swapInCoin, swapOutCoin, math.ZeroInt(), err
}
Expand Down
2 changes: 0 additions & 2 deletions x/dex/types/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ func CalcAutoswapAmount(
depositAmount1 math.Int,
price1To0 math_utils.PrecDec,
) (resultAmount0, resultAmount1 math.Int) {

if reserves0.IsZero() && reserves1.IsZero() {
// The pool is empty, any deposit amount is allowed. Nothing to be swapped
return math.ZeroInt(), math.ZeroInt()
Expand All @@ -292,7 +291,6 @@ func CalcAutoswapAmount(
amountSwapped0 := amountSwappedAs1.Mul(price1To0)
return amountSwapped0.Ceil().TruncateInt(), math.ZeroInt()
}

}

func (p *Pool) CalcAutoswapFee(depositValueAsToken0 math_utils.PrecDec) math_utils.PrecDec {
Expand Down

0 comments on commit 9b4c5e1

Please sign in to comment.