feat: merchant specific fees, TRON & BTC support, coin logos, and bug fixes
This commit is contained in:
@@ -74,10 +74,14 @@ export async function POST(req: NextRequest) {
|
||||
// 3. Generate Temporary Wallets for Crypto fallback
|
||||
const evmWallet = await CryptoEngine.createTemporaryWallet('POLYGON');
|
||||
const solWallet = await CryptoEngine.createTemporaryWallet('SOLANA');
|
||||
const tronWallet = await CryptoEngine.createTemporaryWallet('TRON');
|
||||
const btcWallet = await CryptoEngine.createTemporaryWallet('BITCOIN');
|
||||
|
||||
const cryptoWallets = {
|
||||
EVM: { address: evmWallet.address, privateKey: evmWallet.privateKey },
|
||||
SOLANA: { address: solWallet.address, privateKey: solWallet.privateKey }
|
||||
SOLANA: { address: solWallet.address, privateKey: solWallet.privateKey },
|
||||
TRON: { address: tronWallet.address, privateKey: tronWallet.privateKey },
|
||||
BITCOIN: { address: btcWallet.address, privateKey: btcWallet.privateKey }
|
||||
};
|
||||
|
||||
// 4. Log transaction in Supabase
|
||||
@@ -108,7 +112,9 @@ export async function POST(req: NextRequest) {
|
||||
provider,
|
||||
wallets: {
|
||||
EVM: evmWallet.address,
|
||||
SOLANA: solWallet.address
|
||||
SOLANA: solWallet.address,
|
||||
TRON: tronWallet.address,
|
||||
BITCOIN: btcWallet.address
|
||||
}
|
||||
});
|
||||
} catch (err: any) {
|
||||
|
||||
Reference in New Issue
Block a user