Skip to content

Compliance

Set your legal texts and block traders from specific countries.

Updated View as Markdown

This guide covers DEX config > Compliance: Disclaimer and Restrictions. Compliance sits alongside Storefront, Discovery, and Fees under DEX config in the console.

Set your terms of service, privacy policy, and risk disclaimer texts. Edit each of the three texts separately. Your DEX renders them at /legal as plain paragraphs. The console applies no markup or formatting to this text.

The default texts are placeholders. They are not legal advice. Replace them with texts reviewed by your own counsel.

Restrictions

Block traders from specific countries by ISO alpha-2 code. Two extra codes cover other cases: T1 for Tor exit nodes, and XX for an unknown origin. Add an IP address to your allowlist to bypass the block for that address. Set a custom message for blocked visitors.

A visitor from a blocked country gets an HTTP 451 response on every path, including the API. That page shows your DEX name and your custom message. Visitors outside a blocked country see your DEX as normal.

Restrictions are available on every plan, including Starter.

Testing a restriction

  1. Add a country to your blocked list.
  2. Publish the change.
  3. Wait about a minute for the change to apply.
  4. Add your own IP to the allowlist if you want to test without blocking yourself.
  5. Load your DEX from that country, or from your allowlisted IP.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close