@@ -116,58 +116,59 @@ export const ReviewQuoteStep: FC<ReviewQuoteProps> = ({
116116
117117 let breakdown : { title : string ; value : ReactNode } [ ] = [ ]
118118
119- if (
120- minimumAmountFormatted &&
121- quote ?. details ?. slippageTolerance ?. destination ?. percent &&
122- quote . details . slippageTolerance . destination . percent != '0.00'
123- ) {
124- breakdown . push ( {
125- title : 'Min. Received' ,
126- value : (
127- < Flex
128- align = "center"
129- direction = "column"
130- css = { {
131- gap : '1'
132- } }
133- >
134- < Text style = "subtitle2" >
135- { minimumAmountFormatted } { toToken ?. symbol }
136- </ Text >
137- < Tooltip
138- align = "end"
139- side = "top"
140- content = {
141- < Text style = "subtitle2" css = { { maxWidth : 235 } } >
142- Automatic slippage tolerance is applied to every trade. The
143- option to adjust slippage will be available soon.
144- </ Text >
145- }
146- >
147- < div >
148- < Flex css = { { gap : '1' } } align = "center" >
149- < Text style = "body3" color = "subtle" >
150- Slippage:{ ' ' }
151- { quote ?. details ?. slippageTolerance ?. destination ?. percent ?? 0 }
152- %
153- </ Text >
154- < Flex css = { { color : 'gray9' } } >
155- < FontAwesomeIcon
156- icon = { faInfoCircle }
157- width = { 14 }
158- height = { 14 }
159- style = { {
160- display : 'inline-block'
161- } }
162- />
163- </ Flex >
164- </ Flex >
165- </ div >
166- </ Tooltip >
167- </ Flex >
168- )
169- } )
170- }
119+ //This is temporarily removed until we can work out better slippage estimation
120+ // if (
121+ // minimumAmountFormatted &&
122+ // quote?.details?.slippageTolerance?.destination?.percent &&
123+ // quote.details.slippageTolerance.destination.percent != '0.00'
124+ // ) {
125+ // breakdown.push({
126+ // title: 'Min. Received',
127+ // value: (
128+ // <Flex
129+ // align="center"
130+ // direction="column"
131+ // css={{
132+ // gap: '1'
133+ // }}
134+ // >
135+ // <Text style="subtitle2">
136+ // {minimumAmountFormatted} {toToken?.symbol}
137+ // </Text>
138+ // <Tooltip
139+ // align="end"
140+ // side="top"
141+ // content={
142+ // <Text style="subtitle2" css={{ maxWidth: 235 }}>
143+ // Automatic slippage tolerance is applied to every trade. The
144+ // option to adjust slippage will be available soon.
145+ // </Text>
146+ // }
147+ // >
148+ // <div>
149+ // <Flex css={{ gap: '1' }} align="center">
150+ // <Text style="body3" color="subtle">
151+ // Slippage:{' '}
152+ // {quote?.details?.slippageTolerance?.destination?.percent ?? 0}
153+ // %
154+ // </Text>
155+ // <Flex css={{ color: 'gray9' }}>
156+ // <FontAwesomeIcon
157+ // icon={faInfoCircle}
158+ // width={14}
159+ // height={14}
160+ // style={{
161+ // display: 'inline-block'
162+ // }}
163+ // />
164+ // </Flex>
165+ // </Flex>
166+ // </div>
167+ // </Tooltip>
168+ // </Flex>
169+ // )
170+ // })
171+ // }
171172
172173 breakdown = [
173174 ...breakdown ,
0 commit comments