Skip to content

Commit

Permalink
fix: 1inch select fee issue (#4362)
Browse files Browse the repository at this point in the history
  • Loading branch information
weatherstar authored Mar 31, 2024
1 parent 50e567f commit 6156271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/views/Send/components/FeeSpeedTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function FeeSpeedTip({
/>
<FeeInfoItem
title={intl.formatMessage({ id: 'content__gas_limit' })}
value={limit}
value={new BigNumber(limit).toFixed()}
/>
</Box>
)}
Expand All @@ -108,7 +108,7 @@ export function FeeSpeedTip({
/>
<FeeInfoItem
title={intl.formatMessage({ id: 'content__gas_limit' })}
value={limit}
value={new BigNumber(limit).toFixed()}
/>
</Box>
)}
Expand Down
2 changes: 0 additions & 2 deletions packages/kit/src/views/Send/utils/useFeeInfoPayload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export function useFeeInfoPayload({
};
info.eip1559 = true;
info.limit = limit || info.limit;
info.prices = [price1559];
info.tx = {
eip1559: true,
limit: limit || info.limit,
Expand All @@ -194,7 +193,6 @@ export function useFeeInfoPayload({
.shiftedBy(-(feeDecimals ?? 0))
.toFixed();
info.limit = limit || info.limit;
info.prices = [price];
info.tx = {
eip1559: false,
limit: limit || info.limit,
Expand Down

0 comments on commit 6156271

Please sign in to comment.