diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1dee620..979ebe4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -35,7 +35,8 @@ jobs: run: npm run web:build env: VITE_XLAYER_RPC_URL: https://rpc.xlayer.tech - VITE_DEPLOYMENT_URL: /deployments/xlayer-mainnet.json + # 相对路径:Pages 部署在 // 子路径下,绝对路径 /deployments/... 会 404 + VITE_DEPLOYMENT_URL: ./deployments/xlayer-mainnet.json - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d5ea095 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 azen07508-debug + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index f867896..8465c1a 100644 --- a/README.md +++ b/README.md @@ -180,3 +180,14 @@ It writes `deployments/xlayer-demo-results.json` with transaction hashes and OKL Chinese name: `XGuard Hook:新资产池的动态保护层` One-liner: XGuard is a dynamic risk-fee Hook for Uniswap v4 pools on X Layer, increasing LP fees under high-impact or abnormal swap conditions while exposing transparent onchain risk states. + +## License + +MIT — see [LICENSE](LICENSE). + +The license covers the source code in this repository. It does not grant rights to any third-party +trademarks or brand names referenced in the documentation. The deployment addresses listed above are +reference deployments, not production infrastructure. + +**The contracts have not been audited.** Do not deploy them to mainnet with real funds without an +independent security review. diff --git a/package.json b/package.json index ca5301c..c9840ae 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "xguard-hook", "version": "0.1.0", "private": true, + "license": "MIT", "type": "module", "scripts": { "test": "forge test", diff --git a/vercel.json b/vercel.json index def58cb..3b09c03 100644 --- a/vercel.json +++ b/vercel.json @@ -11,7 +11,7 @@ } ], "env": { - "VITE_DEPLOYMENT_URL": "/deployments/xlayer-mainnet.json", + "VITE_DEPLOYMENT_URL": "./deployments/xlayer-mainnet.json", "VITE_XLAYER_RPC_URL": "https://rpc.xlayer.tech" } }