Board
Height
1390766
Voting ELA
5,106,398.38
Rank
5
Annual Rate Of Return
0.000164%
Your Vote
0
Balance To Be Paid
0
Total Reward
0
Pool Vote
4,803,263.23
Deposit Address Remaining Balance
51.56631519
Balance To Be Distributed
85.05317174
Total Distributed Balance
34,066.9885368
Current Voters
1285
Distribution Script
/**
* Copyright (c) 2019 The Elabank Developers
*
* Distributed under the MIT software license, see the accompanying file
* LICENSE or https://opensource.org/licenses/mit-license.php
*/
package compiler;
import java.util.List;
public class CustomReward implements net.elabank.classloader.Compiler.Reward {
/**
* Calculate each voter's reward except the whitelist addresses , go to tutorials to see how to set a whitelist.
* Remaining amount after reward voters will go to the super node owner. if you have set a shareholder list,
* the shareholder will share the super node reward by their share.
*
* @param currentVoterVotes current voter's votes
* @param totalVotes total votes from the voters
* @param totalDposReward total Dpos reward from Elastos BlockChain
* @param currentVoterVotedSuperNodeList super node public key list which voted by the current voter
* @param voterAddress voter's address
* @return
*/
public double voter(double currentVoterVotes , double totalVotes , double totalDposReward, final List currentVoterVotedSuperNodeList, String voterAddress) {
//TODO add your reward logic here
//Below is a example
return (totalDposReward - 0.57) * currentVoterVotes/totalVotes * 0.1;
}
/**
* Calculate each shareholder's reward ,Remaining amount after reward shareholder's will go to the super node owner.
* Go to tutorials to see how to set shareholder list.
* If you don't have any shareholders,You can leave this method as it is .
*
* @param share the share of the current shareholder. the total share is 5000.0
* @param totalSuperNodeReward total super node reward which equals to the Dpos reward minus the distributed voter's reward.
* @param shareholderAddress current shareholder address
* @return
*/
public double shareholder(double share , double totalSuperNodeReward , String shareholderAddress) {
List shareholders = new java.util.ArrayList<>();
shareholders.add("ER1ztyWQgegSoYin5xsf7QAspYx3VB1KJy"); //Big Kahuna
shareholders.add("EPy3JKsp31XVXELU61rLPADQVsA4JHex8d"); //Mark E Blair MD
shareholders.add("EJBwTpNAoR7iwryxJkNM5PBZw9CkXdR1wH"); //strat29
shareholders.add("EcdRnEp7H6r6GKVDkwQaMbDw59ehRrvEag"); //Austrader
shareholders.add("EVQk5SYF5x5UyjFMZwdhJdLKU5qdcsjx1c"); //FirstClassEra
shareholders.add("EQHyjCgzp8ywUoZFTxJrj9uppQfsnbJJJN"); //Loran
shareholders.add("EZMdmqszrQ72j4YRpjy7Rf3NQGT57sgvDQ"); //YY
shareholders.add("ENhQLm4M488jAiLLoMYF1qMctwkvF4CqXH"); //URBAN BUILDER
//TEAM
if(shareholders.contains(shareholderAddress)){
return (totalSuperNodeReward - 0.57) / 8;
}
//AWS
if("EgUC1qbXPPnPawZq4NFw3oFXDbY8xBisdH".equals(shareholderAddress)){
return 0.57;
}
return 0.0;
}
}