VisionX is a P2P microfinance platform focusing on secure peer-to-peer transactions, micro-lending, staking, fee reinvestment, and dispute resolution via a DAO. The ecosystem uses LPE tokens and USDC for transactions and governance.
- LPEToken: The main token contract required for staking and governance.
- LPEEscrow: Facilitates P2P USDC transactions with a 0.15% fee.
- LPEMicroLending: Enables $25 micro-loans with a 1.5% origination fee.
- LPEStaking: Allows users to stake LPE for reduced fees.
- LPEDAO: Decentralized governance for dispute resolution.
- ERC-20 Standard Token with minting, burning, and pausing functionalities.
- Staking Integration: Reduces fees for staked users.
- Burn Mechanism: 1% annual burn for unstaked LPE.
- DAO Voting: 1 LPE = 1 Vote in disputes.
- Deploy LPEToken first.
- Use
mint(address to, uint256 amount)for distribution. - Use
burn(uint256 amount)to reduce supply. - Implement staking-based fee reductions.
- USDC Peer-to-Peer Transactions with 0.15% fee.
- Secure escrow mechanism to prevent fraud.
- Admin-controlled escrow release.
- 10% of fees reinvested as USDC gifts (max $5/user/year for VisionX learning).
- Use
createEscrow(address receiver, uint256 amount)to lock USDC in escrow. - Use
releaseEscrow(uint256 escrowId)(admin-only) to complete the trade. - Implement
distributeGift(address user, uint256 amount)for USDC rewards.
- $25 micro-loans via escrow.
- 1.5% origination fee on loans.
- Automated repayment tracking.
- Use
createLoan(address borrower, uint256 amount)to initiate a loan. - Use
repayLoan(uint256 loanId)to mark a loan as paid. - Admins can monitor active loans and enforce repayments.
- Reduces trading fees for stakers.
- 0.15% fee for non-stakers, 0.1% for 50+ LPE stakers.
- Stake lock mechanism for consistent participation.
- Use
stake(uint256 amount)to lock LPE. - Use
unstake(uint256 amount)to withdraw staked tokens. - Implement discount logic in P2P Escrow.
- 1 LPE = 1 Vote (Quadratic Voting).
- 51% majority required to resolve disputes.
- Transparent on-chain governance for transactions and loans.
- Use
createDispute(uint256 escrowId or loanId, string reason)to initiate a dispute. - Use
voteOnDispute(uint256 disputeId, bool support)for voting. - Automatically enforce majority decision after voting.
- 10% of fees → USDC gifts (max $5/user/year) for VisionX learning.
- 40% of fees → audits & platform growth.
- 50% of fees → platform reserves.
- Multi-sig Security: Minting and burning require 2/2 approval (developer + founder).
- AMM and liquidity pool disabled.
- Regular audits & compliance checks.
- Deploy LPEToken first, as all other contracts depend on it.
- Deploy LPEEscrow, Micro-Lending, Staking, and DAO contracts.
- Configure staking fee discounts in Escrow transactions.
- Enable dispute resolution through DAO voting.
- Test transactions and governance on a testnet before mainnet deployment.
- Install Node.js and npm.
- Install Hardhat globally:
npm install --global hardhat. - Set up a Binance Smart Chain wallet and obtain testnet/mainnet credentials.
Clone the repository and install dependencies:
npm installCompile the contract using Hardhat:
npx hardhat compileDeploy the contract to BSC:
npx hardhat ignition deploy ignition/modules/LPESmartContracts.js --network arbi_testnet --parameters ignition/parameters.json --verify- Deployment Tests: Ensure correct owner assignment and initial supply allocation.
- Transaction Tests: Verify transfers, events, and blacklist functionality.
Run the test suite:
npx hardhat testSet up a .env file with the following values:
PRIVATE_KEY=YourPrivateKey
API_KEY=YourARBIScanAPIKey
- NFT Collateral for Micro-Lending.
- Hassan Ali – Development Lead
This project is licensed under the MIT License.
Follow our progress or contribute to the project:
We appreciate your interest in building a stable and accessible digital economy! For further queries or customization, reach out to the VisionX Dev Team. 🚀 #VisionX #Crypto #Blockchain #DeFi #BinanceSmartChain #Web3 #Tokenization