Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions src/plugins/ramps/rampConstraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export interface RampConstraintParams {
paymentType: FiatPaymentType
}

/**
* yield true // enabled
* yield false // disabled
*/
export function validateRampConstraintParams(
params: RampConstraintParams
): boolean {
Expand Down Expand Up @@ -103,4 +107,9 @@ export function* constraintGenerator(
if (params.rampPluginId === 'banxa') {
yield params.paymentType !== 'ach'
}

if (params.rampPluginId === 'infinite') {
// Disable Infinite completely
yield false
}
}
Loading