Skip to content

Commit

Permalink
Merge pull request #290 from tokamak-network/staging
Browse files Browse the repository at this point in the history
HotFix: Recommendation fee update for CT withdraw
  • Loading branch information
SonYoungsung authored Oct 30, 2024
2 parents 822a357 + 9a78520 commit 0e1040e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/staging/components/cross-trade/hooks/useRecommendFee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ export const useRecommendFee = (params: {
// }, [feeData?.gasPrice, standardWithdrawGasCost]);

const additionalFeeRatio = useMemo(() => {
if (hasRecomendFee) {
if (hasRecomendFee && tokenInfo?.tokenSymbol) {
// const additionalFee = isGasFeeLessThanOrEqual ? 0 : -0.4;
const additionalFee = 0;

return (
recommendFeeConfig.fee[tokenInfo?.tokenSymbol as string] - additionalFee
recommendFeeConfig.fee[tokenInfo.tokenSymbol as string] - additionalFee
);
}
}, [hasRecomendFee]);
}, [hasRecomendFee, tokenInfo?.tokenSymbol]);

const additionalFee = useMemo(() => {
if (totalTokenAmountInUSD && additionalFeeRatio && tokenInfo?.decimals) {
Expand Down

0 comments on commit 0e1040e

Please sign in to comment.