Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(taikoon): geoblocking #17201

Merged
merged 49 commits into from
May 20, 2024
Merged

feat(taikoon): geoblocking #17201

merged 49 commits into from
May 20, 2024

Conversation

bearni95
Copy link
Contributor

@bearni95 bearni95 commented May 15, 2024

Using Vercel's geolocation headers to ban the following countries:

const bannedCountries = [
  'AF', // Afghanistan (AF)
  'BY', // Belarus (BY)
  'MM', // Burma/Myanmar (MM)
  'CF', // Central African Republic (CF)
  'CN', // China (CN)
  'CU', // Cuba (CU)
  'CD', // Democratic Republic of the Congo (CD)
  'ET', // Ethiopia (ET)
  'IR', // Iran (IR)
  'IQ', // Iraq (IQ)
  'LB', // Lebanon (LB)
  'LY', // Libya (LY)
  'ML', // Mali (ML)
  'NI', // Nicaragua (NI)
  'KP', // North Korea (KP)
  'RU', // Russia (RU)
  'SO', // Somalia (SO)
  'SS', // South Sudan (SS)
  'SD', // Sudan (SD)
  'SY', // Syria (SY)
  'VE', // Venezuela (VE)
  'US', // United States (US)
]

Copy link

openzeppelin-code bot commented May 15, 2024

feat(taikoon): geoblocking

Generated at commit: 7b155dfe4b4f70060e9341ffdfbc738e4ff196e2

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
6
41
51
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@bearni95 bearni95 marked this pull request as ready for review May 16, 2024 13:25
@bearni95 bearni95 marked this pull request as draft May 16, 2024 13:25
@bearni95 bearni95 marked this pull request as ready for review May 16, 2024 16:34
packages/taikoon-ui/src/lib/connect/web3modal.ts Outdated Show resolved Hide resolved
packages/taikoon-ui/src/routes/+layout.ts Outdated Show resolved Hide resolved
packages/taikoon-ui/svelte.config.js Show resolved Hide resolved
packages/taikoon-ui/package.json Outdated Show resolved Hide resolved
@bearni95 bearni95 requested a review from KorbinianK May 16, 2024 19:20
@dantaik dantaik requested review from 2manslkh and bennettyong and removed request for dantaik May 17, 2024 02:32
@bearni95 bearni95 enabled auto-merge May 17, 2024 11:05
@bearni95 bearni95 disabled auto-merge May 20, 2024 08:43
@bearni95 bearni95 requested a review from KorbinianK May 20, 2024 09:06
@bearni95 bearni95 added this pull request to the merge queue May 20, 2024
Merged via the queue into main with commit 6658f6a May 20, 2024
3 checks passed
@bearni95 bearni95 deleted the feat/geoblocking branch May 20, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants