diff --git a/CHANGELOG.md b/CHANGELOG.md index c52f218ee4c..49416566d4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ ## 4.42.0 (staging) - added: Zcash buy/sell support with Banxa -- changed: ramps: Infinite buy support according to new API +- changed: ramps: Infinite buy support according to new API (disabled temporarily) - changed: Optimize login performance. - changed: Update Monero LWS server name to "Edge LWS" - fixed: Light account/backup reminder notification banner sometimes missing on login diff --git a/src/plugins/ramps/rampConstraints.ts b/src/plugins/ramps/rampConstraints.ts index b9483a887cf..4c2ed9a674b 100644 --- a/src/plugins/ramps/rampConstraints.ts +++ b/src/plugins/ramps/rampConstraints.ts @@ -16,6 +16,10 @@ export interface RampConstraintParams { paymentType: FiatPaymentType } +/** + * yield true // enabled + * yield false // disabled + */ export function validateRampConstraintParams( params: RampConstraintParams ): boolean { @@ -103,4 +107,9 @@ export function* constraintGenerator( if (params.rampPluginId === 'banxa') { yield params.paymentType !== 'ach' } + + if (params.rampPluginId === 'infinite') { + // Disable Infinite completely + yield false + } }