Skip to content

Commit

Permalink
♻️ format code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 25, 2024
1 parent dba7d1f commit fc37300
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/models/binance/Saving.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object Saving {
case class PositionAmount(
asset: String,
totalAmount: BigDecimal,
collateralAmount: BigDecimal,
collateralAmount: BigDecimal
)
object PositionAmount {
given Encoder[PositionAmount] = deriveEncoder[PositionAmount]
Expand Down
10 changes: 5 additions & 5 deletions src/main/scala/services/user/UserService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ class UserServiceImpl(using
.find(_.symbol.toLowerCase() == s"${balance.symbol}usdt")
.map(_.price)
.map(_ * usdtToThb)
.getOrElse{
.getOrElse {
binancePrices
.find(_.symbol.toLowerCase() == s"${balance.symbol}btc")
.map(_.price)
.map(_ * btcToThb)
.getOrElse(BigDecimal(0))
.find(_.symbol.toLowerCase() == s"${balance.symbol}btc")
.map(_.price)
.map(_ * btcToThb)
.getOrElse(BigDecimal(0))
}
}
}
Expand Down

0 comments on commit fc37300

Please sign in to comment.