Compare commits

...

2 Commits

Author SHA1 Message Date
tim
ea1fc77257 privacy policy 2025-02-21 23:26:53 -04:00
tim
156160b041 corp sitemap generation 2025-02-18 13:41:33 -04:00
6 changed files with 93 additions and 3 deletions

View File

@@ -11,5 +11,8 @@
"docs:dev": "vitepress dev src",
"docs:build": "vitepress build src",
"docs:preview": "vitepress preview src"
},
"dependencies": {
"sitemap": "^8.0.0"
}
}

View File

@@ -1,4 +1,7 @@
import { defineConfig } from 'vitepress'
import { SitemapStream } from 'sitemap'
import { createWriteStream } from 'node:fs'
import { resolve } from 'node:path'
// https://vitepress.dev/reference/site-config
@@ -61,8 +64,8 @@ export default defineConfig({
text: 'Legal',
items: [
{text: 'Terms of Service', link: '/terms-of-service',},
{text: 'Privacy Policy', link: '/privacy-policy',},
{text: 'Execution Policy', link: '/execution-policy',},
// {text: 'Privacy Policy', link: '/privacy-policy',}, TODO
]
},
],
@@ -84,4 +87,26 @@ export default defineConfig({
md.disable(['replacements'], false)
},
},
// Sitemap generation
transformHtml: (_, id, { pageData }) => {
if (!/[\\/]404\.html$/.test(id))
links.push({
// you might need to change this if not using clean urls mode
url: pageData.relativePath.replace(/((^|\/)index)?\.md$/, '$2'),
lastmod: pageData.lastUpdated
})
},
buildEnd: async ({ outDir }) => {
const sitemap = new SitemapStream({
hostname: 'https://dexorder.trade/'
})
const writeStream = createWriteStream(resolve(outDir, 'sitemap.xml'))
sitemap.pipe(writeStream)
links.forEach((link) => sitemap.write(link))
sitemap.end()
await new Promise((r) => writeStream.on('finish', r))
},
})
const links = []

View File

@@ -15,7 +15,7 @@ Dexorder will attempt to execute each tranche at least ten (10) times under norm
If an execution attempt reverts for an unrecognized reason unrelated to price, time, or other order conditions,
Dexorder will progressively slow down its execution attempts of that tranche, and if the tranche execution raises
an unknown reversion code three times in a row, the execution of that order may be prematurely aborted.
an unknown reversion code five times in a row, the execution of that order may be prematurely aborted.
## Timeout

18
src/privacy-policy.md Normal file
View File

@@ -0,0 +1,18 @@
# Privacy Policy
Dexorder wants your trading business, not your data. We gather and keep a minimized set of data about your activity on
our website, and our Privacy Policy is simple:
When you agree to our Terms of Service, we record your IP address and the time.
We use your IP address to restrict our service in certain regions.
Your IP address and web requests will be temporarily recorded in standard web server logs.
We use [Crisp](https://crisp.chat/) for support chat, and it gives your browser a cookie. After the Beta is over, we
will remove this chat and its required cookie. You may block it using browser plugins without affecting the app.
We do not sell or otherwise allow anyone else to see our records except for compliance with legal subpoenas.
Your trading vault on the blockchain and it points to your wallet address, so it's public information that your wallet
address has visited our site. The orders you place are also publicly visible on-chain.

View File

@@ -7,7 +7,7 @@ title: Terms of Service
**Last Updated:** November 18, 2024
Please read these Terms of Service (the “**Terms**”) and our Privacy Policy carefully because they govern your use of the website (and all subdomains and subpages thereon) located at [dexorder.trade](https://dexorder.trade), including without limitation the subdomains [app.dexorder.trade](https://app.dexorder.trade) and [www.dexorder.trade](https://www.dexorder.trade) (collectively, the “**Site**”), and the Dexorder web application graphical user interface and any other services accessible via the Site (together with the Site, web application, and other services, collectively, the “**Dexorder Service**”) offered by Dexorder LLC (“**Dexorder**,” “**we**,” “**our**,” or “**us**”).
Please read these Terms of Service (the “**Terms**”) and our [Privacy Policy](/privacy-policy) carefully because they govern your use of the website (and all subdomains and subpages thereon) located at dexorder.trade, including without limitation the subdomains app.dexorder.trade and www.dexorder.trade (collectively, the “**Site**”), and the Dexorder web application graphical user interface and any other services accessible via the Site (together with the Site, web application, and other services, collectively, the “**Dexorder Service**”) offered by Dexorder LLC (“**Dexorder**,” “**we**,” “**our**,” or “**us**”).
**BY USING THE DEXORDER SERVICE, YOU REPRESENT THAT (I) YOU ARE NOT LOCATED WITHIN THE UNITED STATES; AND (II) YOU ARE NOT A PERSON OR ENTITY WHO IS RESIDENT IN, A CITIZEN OF, IS LOCATED IN, IS INCORPORATED IN, OR HAS A REGISTERED OFFICE IN ANY RESTRICTED TERRITORY, AS DEFINED BELOW (ANY SUCH PERSON OR ENTITY FROM WITHIN THE UNITED STATES OR A RESTRICTED TERRITORY, IS REFERRED TO HEREIN AS A “**RESTRICTED PERSON**”).**

View File

@@ -521,6 +521,25 @@
resolved "https://registry.yarnpkg.com/@types/mdurl/-/mdurl-2.0.0.tgz#d43878b5b20222682163ae6f897b20447233bdfd"
integrity sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==
"@types/node@*":
version "22.13.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.4.tgz#3fe454d77cd4a2d73c214008b3e331bfaaf5038a"
integrity sha512-ywP2X0DYtX3y08eFVx5fNIw7/uIv8hYUKgXoK8oayJlLnKcRfEYCxWMVE1XagUdVtCJlZT1AU4LXEABW+L1Peg==
dependencies:
undici-types "~6.20.0"
"@types/node@^17.0.5":
version "17.0.45"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190"
integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==
"@types/sax@^1.2.1":
version "1.2.7"
resolved "https://registry.yarnpkg.com/@types/sax/-/sax-1.2.7.tgz#ba5fe7df9aa9c89b6dff7688a19023dd2963091d"
integrity sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==
dependencies:
"@types/node" "*"
"@types/unist@*", "@types/unist@^3.0.0":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c"
@@ -698,6 +717,11 @@ algoliasearch@^5.14.2:
"@algolia/requester-fetch" "5.20.2"
"@algolia/requester-node-http" "5.20.2"
arg@^5.0.0:
version "5.0.2"
resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c"
integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==
birpc@^0.2.19:
version "0.2.19"
resolved "https://registry.yarnpkg.com/birpc/-/birpc-0.2.19.tgz#cdd183a4a70ba103127d49765b4a71349da5a0ca"
@@ -1006,6 +1030,11 @@ rollup@^4.20.0:
"@rollup/rollup-win32-x64-msvc" "4.34.7"
fsevents "~2.3.2"
sax@^1.2.4:
version "1.4.1"
resolved "https://registry.yarnpkg.com/sax/-/sax-1.4.1.tgz#44cc8988377f126304d3b3fc1010c733b929ef0f"
integrity sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==
shiki@^2.1.0:
version "2.4.1"
resolved "https://registry.yarnpkg.com/shiki/-/shiki-2.4.1.tgz#68e11cb61fb172d1700ece9f02c14d32b9619298"
@@ -1020,6 +1049,16 @@ shiki@^2.1.0:
"@shikijs/vscode-textmate" "^10.0.2"
"@types/hast" "^3.0.4"
sitemap@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-8.0.0.tgz#eb6ea48f95787cd680b83683c555d6f6b5a903fd"
integrity sha512-+AbdxhM9kJsHtruUF39bwS/B0Fytw6Fr1o4ZAIAEqA6cke2xcoO2GleBw9Zw7nRzILVEgz7zBM5GiTJjie1G9A==
dependencies:
"@types/node" "^17.0.5"
"@types/sax" "^1.2.1"
arg "^5.0.0"
sax "^1.2.4"
source-map-js@^1.2.0, source-map-js@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
@@ -1060,6 +1099,11 @@ trim-lines@^3.0.0:
resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338"
integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==
undici-types@~6.20.0:
version "6.20.0"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"
integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==
unist-util-is@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-6.0.0.tgz#b775956486aff107a9ded971d996c173374be424"