Skip to content

Commit

Permalink
fixed: server mint issue
Browse files Browse the repository at this point in the history
Co-Authored-By: Zach Kelling <[email protected]>
  • Loading branch information
venuswhispers and zeekay committed Jan 15, 2025
1 parent 0b16fbc commit f89342e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/server/src/domain/swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ export async function handlerUtilaPayoutAction(swapId: string) {
console.log(`>> Minting PayoutToken for this Swap [${swap.id}]`)

const contract = new Contract(swap.destination_asset.contract_address as string, ERC20B_ABI, wallet)
const txMint = await contract.bridgeMint(swap.destination_address, parseUnits(String(swap.requested_amount), swap?.destination_asset.decimals ?? 18))
const decimals = swap?.destination_asset.decimals ?? 18
const txMint = await contract.bridgeMint(swap.destination_address, parseUnits(swap.requested_amount.toFixed(decimals), decimals))
await txMint.wait()
console.log(`>> Minted L/Z tokens ${txMint.hash}`)

Expand Down

0 comments on commit f89342e

Please sign in to comment.