fix: correct totalShares and distributionPool values
- totalShares: 100020000000 → 10002000000 (100.02亿 = 100亿 + 200万) - distributionPool: 200000000 → 2000000 (200万) Fixed in: - trading-service/prisma/schema.prisma - trading-service/prisma/migrations/0002_add_trading_burn_system/migration.sql - mining-service/.env.example Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
481a355d72
commit
11ff3cc9bd
|
|
@ -21,8 +21,8 @@ KAFKA_GROUP_ID=mining-service-group
|
|||
JWT_SECRET=your-jwt-secret-key
|
||||
|
||||
# Mining Configuration
|
||||
TOTAL_SHARES=100020000000
|
||||
DISTRIBUTION_POOL=200000000
|
||||
TOTAL_SHARES=10002000000
|
||||
DISTRIBUTION_POOL=2000000
|
||||
INITIAL_PRICE=1
|
||||
HALVING_PERIOD_YEARS=2
|
||||
BURN_TARGET=10000000000
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE "trading_configs" (
|
||||
"id" TEXT NOT NULL,
|
||||
"total_shares" DECIMAL(30,8) NOT NULL DEFAULT 100020000000,
|
||||
"total_shares" DECIMAL(30,8) NOT NULL DEFAULT 10002000000,
|
||||
"burn_target" DECIMAL(30,8) NOT NULL DEFAULT 10000000000,
|
||||
"burn_period_minutes" INTEGER NOT NULL DEFAULT 2102400,
|
||||
"minute_burn_rate" DECIMAL(30,18) NOT NULL DEFAULT 4756.468797564687,
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ datasource db {
|
|||
// 交易全局配置
|
||||
model TradingConfig {
|
||||
id String @id @default(uuid())
|
||||
// 总积分股数量: 100.02亿 (1000.2亿 = 100020000000)
|
||||
totalShares Decimal @default(100020000000) @map("total_shares") @db.Decimal(30, 8)
|
||||
// 总积分股数量: 100.02亿 (100亿 + 200万 = 10002000000)
|
||||
totalShares Decimal @default(10002000000) @map("total_shares") @db.Decimal(30, 8)
|
||||
// 目标销毁量: 100亿 (4年销毁完)
|
||||
burnTarget Decimal @default(10000000000) @map("burn_target") @db.Decimal(30, 8)
|
||||
// 销毁周期: 4年 (分钟数) 365*4*1440 = 2102400
|
||||
|
|
|
|||
Loading…
Reference in New Issue