本教程将指导您如何在Solana区块链上发布Memecoin REDNOTE,包括代币分配、解锁机制等技术实现细节。
- 总发行量: 10亿
- 分配比例:
- Creators & CIC Digital, 1: 36%
- Creators & CIC Digital, 2: 18%
- Creators & CIC Digital, 3: 18%
- 公共分配: 10%
- Creators & CIC Digital, 4: 4%
- Creators & CIC Digital, 5: 2%
- Creators & CIC Digital, 6: 2%
- 流动性: 10%
- 总发行期限: 36个月
spl-token create-token --decimals 9spl-token create-account <TOKEN_ADDRESS>// 线性解锁示例代码
class VestingSchedule {
constructor(totalAmount, cliffDuration, vestingDuration) {
this.totalAmount = totalAmount;
this.cliffDuration = cliffDuration;
this.vestingDuration = vestingDuration;
}
getUnlockedAmount(currentTime) {
if (currentTime < this.cliffDuration) {
return 0;
}
const elapsed = currentTime - this.cliffDuration;
return Math.min(
this.totalAmount,
(this.totalAmount * elapsed) / this.vestingDuration
);
}
}solana config set --url https://api.testnet.solana.com
anchor deploynpm run test