UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

28 lines (27 loc) 1.07 kB
/** * Calculates the next X allocation for the next cycle. * @param cycle * @param initialAllocation * @param decayPeriod * @param decayPercentage * @param lastCycleEmissions * @returns The next X allocation as a BigInt. */ export declare function calculateNextXAllocation(cycle: number, initialAllocation: bigint, decayPeriod: number, decayPercentage: bigint, lastCycleEmissions?: bigint): bigint; /** * Calculates the Vote2Earn allocation for the next cycle. * @param cycle * @param xAllocation * @param decayPeriod * @param decayPercentage * @param maxDecay * @returns vote2EarnAllocation as a BigInt */ export declare function calculateVote2Earn(cycle: number, xAllocation: bigint, decayPeriod: number, decayPercentage: bigint, maxDecay: bigint): bigint; /** * Calculates the treasury allocation for the next cycle. * @param xAllocation * @param vote2EarnAllocation * @returns treasuryAllocation as a BigInt */ export declare function calculateTreasuryAllocation(xAllocation: bigint, vote2EarnAllocation: bigint, treasuryPercentage: bigint): bigint;