DynamicVolumePricedToken
DynamicVolumePricedToken (symbol: DVP) is an experimental ERC20-style token with a dynamic pricing mechanism that automatically adjusts the token price based on cumulative trading volume.
Description
# đȘ DynamicVolumePricedToken (DVP)
Network: Flow EVM Testnet
Contract Address: 0xDBEF45B4C5C4C0d572EC19B67f215DD212e5a116](https://evm-testnet.flowscan.io/address/0xDBEF45B4C5C4C0d572EC19B67f215DD212e5a116)
---
## đ Overview
DynamicVolumePricedToken (symbol: DVP) is an experimental ERC20-style token with a dynamic pricing mechanism that automatically adjusts the token price based on cumulative trading volume.
- No imports or constructors used â fully self-contained Solidity code.
- No input fields for core functions â everything is automatic.
- Dynamic price: increases as more tokens are bought or sold.
- Pure ETH-based economy â users buy and sell tokens directly from the contract.
---
## âïž Features
| Feature | Description |
|----------|--------------|
| đ§ź Dynamic Pricing | Token price grows linearly with total volume traded. |
| đž Buy with ETH | Call buy() (payable) â tokens are minted based on current price. |
| đ° Sell for ETH | Call sellAll() â sells your full balance for ETH at the current price. |
| đ No Admin Needed | Fully autonomous â anyone can mint via seedMint() for testing. |
| đ§ Deterministic Pricing | Based on basePrice + (cumulativeTokensTraded * basePrice) / slopeDenominator. |
---
## đ§© Contract Details
| Parameter | Value |
|------------|--------|
| Name | DynamicVolumePricedToken |
| Symbol | DVP |
| Decimals | 18 |
| Base Price | 1e15 wei (â 0.001 ETH per token) |
| Slope Denominator | 1e24 (controls how fast the price increases) |
---
## đ§ Core Functions
### 1. buy() payable
Buy tokens with ETH at the current dynamic price.
- No inputs.
- Emits Bought event.
### 2. sellAll()
Sell your entire token balance for ETH at the current price.
- No inputs.
- Emits Sold event.
### 3. currentPricePerToken() â uint256
View the current token price (in wei).
### 4. quoteTokensForWei(uint256 weiAmount) â uint256
Estimate how many tokens youâd get for a given ETH amount.
### 5. quoteWeiForTokens(uint256 tokenAmount) â uint256
Estimate how much ETH youâd receive for a given token amount.
### 6. seedMint()
Mint 1000 test tokens to yourself â used for testing since no constructor exists.
---
## đ» Example Usage (Remix or Web3)
### Buy tokens
```solidity
DynamicVolumePricedToken token = DynamicVolumePricedToken(0xDBEF45B4C5C4C0d572EC19B67f215DD212e5a116);
token.buy{value: 0.01 ether}();
Progress During Hackathon
50%
Tech Stack
Fundraising Status
NA