Skip to content

Commit

Permalink
1 perc down b token out (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
uv-orbs authored Apr 25, 2024
1 parent bbc43a2 commit 09d8e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/amount_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func getOutAmountInBToken(ctx context.Context, it models.OrderIter, inAmountA de
orderOut := decimal.NewFromBigInt(order.Signature.AbiFragment.Outputs[0].Amount, 0).Div(decimal.NewFromFloat(1e18))
gainB := mulIn.Div(orderOut)
// always give + 1%
gainB = gainB.Mul(decimal.NewFromFloat(1.01))
gainB = gainB.Mul(decimal.NewFromFloat(0.99))
fmt.Println("gainB ", gainB.String())

// sub-add
Expand Down

0 comments on commit 09d8e69

Please sign in to comment.