CoreVaultV2 is a Solidity-based smart contract system designed for decentralized token management, including staking, liquidity provision, and reward distribution. The main contract, CoreVault.sol
, manages the token economy, while additional contracts provide extended functionalities.
- Implements an ERC20-like token (
CVT
) - Handles transfers with transaction limits and fees
- Allows the owner to set max transaction limits and fees
- Provides role-based access control
- Ensures only authorized users can perform administrative tasks
- Implements a standard ERC20 token contract
- Provides basic token transfer and approval mechanisms
- Manages token rewards distribution
- Users can claim accumulated rewards
- Enables users to stake tokens and earn rewards
- Calculates rewards based on staking time and amount
- Allows users to add and remove liquidity
- Stores liquidity contributions for future AMM integration
- Provides a financial safety net for users through an insurance pool.
- Users can deposit tokens to receive coverage for a predefined period.
- Allows claims against covered events based on the user's risk level and deposit amount.
- Supports adjustments in coverage period and risk assessment by the contract owner.
- Ensures a minimum balance is maintained in the pool for operational liquidity.
git clone <repo_url>
cd CoreVault
npm install
npx hardhat compile
npx hardhat run scripts/deploy.js --network <network>
- Uses
onlyOwner
for critical functions. - Implements transaction limits to prevent abuse.
- Requires approval before token transfers via
transferFrom
.
This project is licensed under the MIT License.