Fix BitGo fee provider parser (#2381)

This commit is contained in:
Ben Carman 2020-12-17 11:47:31 -06:00 committed by GitHub
parent f7fdca3e22
commit 52c21aa618
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ case class BitGoResult(
cpfpFeePerKb: SatoshisPerKiloByte,
numBlocks: Int,
confidence: Int,
multiplier: Int,
multiplier: Double,
feeByBlockTarget: Map[Int, SatoshisPerKiloByte]
) extends FeeRateApiResult

View File

@ -10,7 +10,7 @@ import play.api.libs.json.{JsError, JsSuccess, Json}
import scala.util.{Failure, Success, Try}
/** Fetches fee rate from BitGo's API
* Documentation found here: https://www.bitgo.com/api/v2/#operation/v2.tx.getfeeestimate
* @see [[https://www.bitgo.com/api/v2/#operation/v2.tx.getfeeestimate]]
*/
case class BitGoFeeRateProvider(blockTargetOpt: Option[Int])(implicit
override val system: ActorSystem)
@ -32,7 +32,7 @@ case class BitGoFeeRateProvider(blockTargetOpt: Option[Int])(implicit
case JsError(error) =>
Failure(
new RuntimeException(
s"Unexpected error when parsing response: $error"))
s"Unexpected error when parsing response $str: $error"))
}
}