Skip to content

Commit

Permalink
fix: getFees should skip querying CCM fees if chain doesn't support it
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jul 2, 2024
1 parent ab3175a commit b804243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/client/src/getFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ const fetchCCMFees = async function (
}
const url = `${API}/zeta-chain/crosschain/convertGasToZeta?chainId=${chainID}&gasLimit=${gas}`;
const response = await fetch(url);
if (!response.ok) {
return;
}
const data = await response.json();
const gasFee = ethers.BigNumber.from(data.outboundGasInZeta);
const protocolFee = ethers.BigNumber.from(data.protocolFeeInZeta);
Expand Down

0 comments on commit b804243

Please sign in to comment.