Proof of Profit is a proof-of-concept trading simulator for traders to practice and prove profitability. By demonstrating success in this simulated environment, traders may receive capital from investors. The project emphasizes privacy, price accuracy, and account abstraction using advanced tools.
- Privacy & Security: Trading data is protected within a Cycles-Quartz Trusted Execution Environment (TEE).
- Price Feeds: Slinky Neutron's native oracle is used to ensure reliable price data.
- Account Abstraction: Built on Abstract SDK to simplify and enhance account management.
To run Proof of Profit, ensure you have:
- LLVM (not the default system version)
- Neutrond
- Rust
- Additional System Libraries (required for agnostic SGX mock, check for errors during setup)
- Just (CLI runner)
To build the entire application, run:
just build-all
The frontend relies on smart contracts deployed to the testnet.
- Deploy the smart contracts using:
Ensure you have testnet funds.
just publish-test
- Navigate to the
web
directory. - Start the frontend:
npm run dev
Note: Frontend requires smart contracts to be active.
A private TEE environment (using Cycles-Quartz) allows local testing:
- Build the Quartz CLI:
cargo install --path crates/cli
- From the root directory:
Ensure a neutron key saved with the alias admin.
just build-pop2-enclave just start-pop2-enclave
The adapter abstracts Slinky oracles, allowing core smart contract updates without oracle modifications. See the code here.
The frontend integrates account creation via Abstract SDK, abstracting blockchain interactions. Implementation details are here.
A secure SGX TEE monitors the state and decrypts/encrypts data for secure communication between UI and blockchain. Examples:
This protocol allows traders to prove profitability in a controlled environment, leading to potential investment and on-chain trading. The long-term goal is to create a versatile protocol that interacts with decentralized exchanges (DEXes) for liquidity and cross-chain compatibility. Currently, the focus is on refining the simulated trading environment.