Skip to content

Commit 6ea7bf8

Browse files
committed
Disable Infinite
1 parent 4d12107 commit 6ea7bf8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
## 4.42.0 (staging)
1010

1111
- added: Zcash buy/sell support with Banxa
12-
- changed: ramps: Infinite buy support according to new API
12+
- changed: ramps: Infinite buy support according to new API (disabled temporarily)
1313
- changed: Optimize login performance.
1414
- changed: Update Monero LWS server name to "Edge LWS"
1515
- fixed: Light account/backup reminder notification banner sometimes missing on login

src/plugins/ramps/rampConstraints.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export interface RampConstraintParams {
1616
paymentType: FiatPaymentType
1717
}
1818

19+
/**
20+
* yield true // enabled
21+
* yield false // disabled
22+
*/
1923
export function validateRampConstraintParams(
2024
params: RampConstraintParams
2125
): boolean {
@@ -103,4 +107,9 @@ export function* constraintGenerator(
103107
if (params.rampPluginId === 'banxa') {
104108
yield params.paymentType !== 'ach'
105109
}
110+
111+
if (params.rampPluginId === 'infinite') {
112+
// Disable Infinite completely
113+
yield false
114+
}
106115
}

0 commit comments

Comments
 (0)