File tree Expand file tree Collapse file tree
controllers/swapAndBridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2515,7 +2515,8 @@ export class SwapAndBridgeController extends EventEmitter implements ISwapAndBri
25152515 fromAmountInUsd : Number ( this . fromAmountInFiat ) ,
25162516 feeTokenPriceInUsd : feeToken . feeTokenPriceInUsd ,
25172517 feeTokenDecimals : feeToken . decimals ,
2518- providerId : this . quote ?. selectedRoute ?. providerId
2518+ providerId : this . quote ?. selectedRoute ?. providerId ,
2519+ isBridge
25192520 } )
25202521
25212522 if ( this . #signAccountOpController) {
Original file line number Diff line number Diff line change @@ -703,14 +703,16 @@ const getSwapSponsorship = ({
703703 fromAmountInUsd,
704704 feeTokenPriceInUsd,
705705 feeTokenDecimals,
706- providerId
706+ providerId,
707+ isBridge
707708} : {
708709 hasConvinienceFee : boolean
709710 nativePrice : number | undefined
710711 fromAmountInUsd : number | undefined
711712 feeTokenPriceInUsd : number | undefined
712713 feeTokenDecimals : number | undefined
713714 providerId : string | undefined
715+ isBridge : boolean
714716} ) :
715717 | {
716718 nativePrice : number
@@ -725,7 +727,8 @@ const getSwapSponsorship = ({
725727 ! fromAmountInUsd ||
726728 ! feeTokenPriceInUsd ||
727729 ! feeTokenDecimals ||
728- providerId === 'squid'
730+ providerId === 'squid' ||
731+ ( providerId === 'uniswap' && isBridge )
729732 )
730733 return undefined
731734 return {
You can’t perform that action at this time.
0 commit comments