feat: bnb

This commit is contained in:
hashbro
2026-09-25 13:10:34 +08:00
parent 13aa587099
commit 534b36a2d2
24 changed files with 242 additions and 33 deletions
@@ -160,7 +160,7 @@ class WalletAddressController extends Controller
$amount = null;
} else {
$decimals = match ($asset) {
'ETH' => 18,
'ETH', 'BNB' => 18,
'BTC' => 8,
default => 6,
};
@@ -233,7 +233,7 @@ class WalletAddressController extends Controller
private function assetsForChain(string $chain): array
{
return match ($chain) {
'eth' => ['ETH', 'USDT'],
'eth' => ['ETH', 'USDT', 'BNB'],
'btc' => ['BTC'],
default => ['USDT', 'TRX'],
};