Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSC Parameters @ FarmMaster.sol #24

Open
tturbulence opened this issue Apr 19, 2021 · 1 comment
Open

BSC Parameters @ FarmMaster.sol #24

tturbulence opened this issue Apr 19, 2021 · 1 comment

Comments

@tturbulence
Copy link

tturbulence commented Apr 19, 2021

Ethereum Version:

mapping(bytes32 => uint256) private lpIndexInPool;

/*
 * In [0, 60000) blocks, 160 XDEX per block, 9600000 XDEX distributed;
 * In [60000, 180000) blocks, 80 XDEX per block, 9600000 XDEX distributed;
 * In [180000, 420000) blocks, 40 XDEX per block, 9600000 XDEX distributed;
 * In [420000, 900000) blocks, 20 XDEX per block, 9600000 XDEX distributed;
 * After 900000 blocks, 8 XDEX distributed per block.
 */
uint256[4] public bonusEndBlocks = [60000, 180000, 420000, 900000];

// 160, 80, 40, 20, 8 XDEX per block
uint256[5] public tokensPerBlock = [
    uint256(160 * ONE),
    uint256(80 * ONE),
    uint256(40 * ONE),
    uint256(20 * ONE),
    uint256(8 * ONE)
];

BSC Version: BSC block speed is 400% of ETH, so emission is 25%

This part is 10% of Ethereum, For ETH version reduced 80% emission, 10% moved to BSC, but tail emission is half of the original plan (1 per BSC block == 4 per ETH block == 50%* 8 per ETH Block


mapping(bytes32 => uint256) private lpIndexInPool;

/*
 * In [0, 60000) blocks, at most 16 XDEX per block, 960000 XDEX distributed;
 * In [60000, 180000) blocks, at most 8 XDEX per block, 960000 XDEX distributed;
 * In [180000, 420000) blocks, at most 4 XDEX per block 40 XDEX per block, 960000 XDEX distributed;
 * In [420000, 900000) blocks, 2 XDEX per block, 960000 XDEX distributed;
 * After 900000 blocks, 1 XDEX distributed per block.
 */
uint256[4] public bonusEndBlocks = [60000, 180000, 420000, 900000];

// 16, 8, 4, 2, 1 XDEX per block
uint256[5] public tokensPerBlock = [
    uint256(16 * ONE),
    uint256(8 * ONE),
    uint256(4 * ONE),
    uint256(2 * ONE),
    uint256(1 * ONE)
];

===========================================

And in xHalfLifeStream.sol

Parameters should be

//unlock k block for Voting Pool
uint256 private constant unlockKBlocksV = 2160;
// key: recipient, value: Locked Stream
mapping(address => LockStream) private votingStreams;

//funds for Normal Pool
uint256 private constant unlockKBlocksN = 240;
// key: recipient, value: Locked Stream
mapping(address => LockStream) private normalStreams;
@xdefilab
Copy link
Collaborator

a7cccda 已更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant