From 880944ecdc1fac111b6096a97c60dd9051ece62f Mon Sep 17 00:00:00 2001 From: SoYan500 Date: Thu, 1 May 2025 18:44:17 +0300 Subject: [PATCH] Add files via upload --- .gitignore | 18 ++++++++++++++++ LICENSE | 22 +++++++++++++++++++- README.md | 60 ++++++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 84 insertions(+), 16 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d1a91a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# Node modules +node_modules/ + +# Hardhat files +artifacts/ +cache/ +dist/ + +# Environment variables +.env + +# Logs and temp +*.log +*.tmp + +# IDE +.vscode/ +.idea/ diff --git a/LICENSE b/LICENSE index df278d3..b77bf2a 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,21 @@ -MIT License \ No newline at end of file +MIT License + +Copyright (c) 2025 + +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 d850f99..3fb57f7 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,49 @@ -# VSVTrend Strategy +# RebaseAI Token -**VSVTrend** is an advanced Pine Script strategy for TradingView, designed to maximize trade accuracy using adaptive indicators, a Supertrend filter, visual on/off toggle, and AI/ML-based false signal detection. +RebaseAI is a dynamic ERC20 token with built-in rebase functionality that allows automatic adjustment of total supply based on market conditions. The contract is written in Solidity and deployable to any EVM-compatible blockchain (Ethereum, Arbitrum, Optimism, etc.). -## Key Features: -- Adaptive Stop Loss / Take Profit system -- Supertrend filter (toggleable) -- Visual on/off toggle button on the chart -- Full backtesting functionality -- AI/ML module for identifying potential false signals -- Works on all timeframes +## ✅ Features -## Purpose -The goal is to create a perfect "alpha indicator" strategy, freely available and open to community suggestions for continuous improvement. +- Compliant with ERC20 standard +- Supply can increase or decrease proportionally via `rebase()` +- Owner is anonymous at deployment (based on `msg.sender`) +- Ownership can be transferred after deployment +- Gas-efficient scaling using internal multipliers -## Project Structure -- `VSVTrend.pine` – main strategy code -- `data/sample_tradelog.csv` – trade log for model training -- `ml/model_train.py` – Python script for training ML model +## 🔁 How Rebase Works + +The `rebase(int256 supplyDelta)` function allows the token supply to expand or contract. This adjusts all balances proportionally without affecting ownership percentages. + +```solidity +function rebase(int256 supplyDelta) external onlyOwner +``` + +Supply changes: +- Positive `supplyDelta` → Inflation (e.g. +10%) +- Negative `supplyDelta` → Deflation (e.g. -5%) + +## 🔐 Ownership + +- The contract does **not** hardcode any owner address +- Ownership is initialized to `msg.sender` +- You may transfer ownership after deployment: + +```solidity +transferOwnership("0xYourNewOwnerAddress") +``` + +## 🚀 Deployment (Hardhat Example) + +```bash +npx hardhat run scripts/deploy.js --network mainnet +``` + +## 🛡 Security + +- Only the owner can call `rebase()` +- No mint/burn fees or taxes included +- Transparent and open-source logic + +## 📄 License + +This project is open-source and released under the [MIT License](./LICENSE).