halving changes based on Circulating Supply

This commit is contained in:
KarthiKeyanZ 2023-06-19 13:03:52 +05:30
parent e4c93aec6e
commit 64e78e6efe

View File

@ -210,19 +210,19 @@ export class BlockDetailListComponent implements OnInit {
let currentCoin = res.response.coin_existence; let currentCoin = res.response.coin_existence;
let endSupply = 16571520; let endSupply = 16571520;
if(timestamp < 1687735800){ if(currentCoin >= 13109760 && currentCoin < 16571520 ){
blockReward = 4; blockReward = 4;
endSupply = 16571520; endSupply = 16571520;
}else if(timestamp >= 1687735800){ }else if(currentCoin >= 16571520 && currentCoin < 18875520){
blockReward = 2; blockReward = 2;
endSupply = 18875520; endSupply = 18875520;
}else if(timestamp >= 1754850599){ }else if(currentCoin >= 18875520 && currentCoin < 20342880){
blockReward = 1; blockReward = 1;
endSupply = 20342880; endSupply = 20342880;
}else if(timestamp >= 1842805799){ }else if(currentCoin >= 20342880 && currentCoin < 20671380){
blockReward = 0.15625; blockReward = 0.15625;
endSupply = 20671380; endSupply = 20671380;
}else if(timestamp >= 1968863399){ }else if(currentCoin >= 20671380){
blockReward = 0.078125; blockReward = 0.078125;
endSupply = 20835630; endSupply = 20835630;
} }