We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728279d commit d24ac22Copy full SHA for d24ac22
1 file changed
services/opencode/src/main/kotlin/com/getcode/opencode/model/financial/LocalFiat.kt
@@ -22,6 +22,15 @@ data class LocalFiat(
22
),
23
)
24
25
+ constructor(usdc: Fiat, converted: Fiat): this(
26
+ usdc = usdc,
27
+ converted = converted,
28
+ rate = Rate(
29
+ fx = converted.decimalValue / usdc.decimalValue,
30
+ currency = converted.currencyCode
31
+ )
32
33
+
34
companion object {
35
val Zero = LocalFiat(
36
usdc = Fiat(0),
0 commit comments