diff --git a/src/Ledger/AssetAmount.php b/src/Ledger/AssetAmount.php index 76ba2a8a..cc477333 100644 --- a/src/Ledger/AssetAmount.php +++ b/src/Ledger/AssetAmount.php @@ -40,8 +40,8 @@ final class AssetAmount { /** * 佣金池与余额同为两位小数、同一 minor 口径,仅资产标签不同。 */ - public static function commission(string $decimal): self { - return new self(AssetType::COMMISSION, self::balance($decimal)->minor()); + public static function commission_from_minor(int $minor): self { + return self::from_minor(AssetType::COMMISSION, $minor); } public static function decimal_from_minor(int $minor): string {