File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -199,11 +199,6 @@ export const TradeCreateScene = (props: Props): React.ReactElement => {
199
199
regionCode : {
200
200
countryCode : countryCode || 'US' ,
201
201
stateProvinceCode
202
- } ,
203
- pluginUtils : {
204
- getHistoricalRate : async ( _codePair : string , _date : string ) => {
205
- return 1
206
- }
207
202
}
208
203
}
209
204
} , [
Original file line number Diff line number Diff line change @@ -766,7 +766,6 @@ export const paybisRampPlugin: RampPluginFactory = (
766
766
regionCode,
767
767
pluginId : currencyPluginId ,
768
768
promoCode : maybePromoCode ,
769
- pluginUtils,
770
769
fiatCurrencyCode,
771
770
displayCurrencyCode,
772
771
direction,
@@ -896,9 +895,9 @@ export const paybisRampPlugin: RampPluginFactory = (
896
895
if ( convertFromCc === 'iso:USD' ) {
897
896
amountUsd = exchangeAmount
898
897
} else {
899
- const isoNow = new Date ( ) . toISOString ( )
900
- const ratePair = ` ${ convertFromCc } _iso:USD`
901
- const rate = await pluginUtils . getHistoricalRate ( ratePair , isoNow )
898
+ // For now, always return 1 (matching old implementation )
899
+ // TODO: Implement actual rate fetching if needed
900
+ const rate = 1
902
901
amountUsd = mul ( exchangeAmount , String ( rate ) )
903
902
}
904
903
if ( lte ( amountUsd , '1000' ) ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export interface RampQuoteRequest {
43
43
amountType : 'fiat' | 'crypto'
44
44
direction : 'buy' | 'sell'
45
45
regionCode : FiatPluginRegionCode
46
- pluginUtils : FiatPluginUtils
46
+ pluginUtils ? : FiatPluginUtils
47
47
promoCode ?: string
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments