@metamask-previews/ramps-controller 15.0.0-preview-2855dbf4e → 15.0.0-preview-9e722dac3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/RampsController.cjs
CHANGED
|
@@ -1865,6 +1865,14 @@ _RampsController_requestCacheTTL = new WeakMap(), _RampsController_requestCacheM
|
|
|
1865
1865
|
return amount >= limit.minAmount && amount <= limit.maxAmount;
|
|
1866
1866
|
};
|
|
1867
1867
|
const isEligible = (quote) => {
|
|
1868
|
+
// TEMP(device-testing): exclude Transak Native so a non-native in-app
|
|
1869
|
+
// provider is the one suggested during physical-device testing of the
|
|
1870
|
+
// in-app WebView flow. REVERT before this ships.
|
|
1871
|
+
/* istanbul ignore next */
|
|
1872
|
+
if (providerByCode.get(normalizeProviderCode(quote.provider))?.type ===
|
|
1873
|
+
'native') {
|
|
1874
|
+
return false;
|
|
1875
|
+
}
|
|
1868
1876
|
// `all` (Phase 2) skips the in-app-only exclusions; both scopes still
|
|
1869
1877
|
// enforce provider limits up front.
|
|
1870
1878
|
if (scope !== 'all') {
|