-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NO CHANGELOG] [Add Tokens Widget] fix : pay with card button not cal…
…ling on ramp (#2401)
- Loading branch information
1 parent
7d86e4d
commit d35a793
Showing
3 changed files
with
32 additions
and
52 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/checkout/widgets-lib/src/widgets/add-tokens/functions/checkSanctionedAddresses.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
CheckoutConfiguration, | ||
fetchRiskAssessment, | ||
isAddressSanctioned, | ||
} from '@imtbl/checkout-sdk'; | ||
|
||
export const checkSanctionedAddresses = async ( | ||
addresses: string[], | ||
config: CheckoutConfiguration, | ||
): Promise<boolean> => { | ||
const result = await fetchRiskAssessment(addresses, config); | ||
return isAddressSanctioned(result, undefined); | ||
}; |
40 changes: 0 additions & 40 deletions
40
packages/checkout/widgets-lib/src/widgets/add-tokens/hooks/useRiskAssessment.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters