Merge pull request #88 from XinFinOrg/develop

updated foundation address
This commit is contained in:
Anil Chinchawale 2019-05-30 15:05:04 +05:30 committed by GitHub
commit fed1401642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -171,7 +171,7 @@ func (w *wizard) makeGenesis() {
genesis.Config.XDPoS.Gap = uint64(w.readDefaultInt(450))
fmt.Println()
fmt.Println("What is foundation wallet address? (default = xdc0000000000000000000000000000000000000068)")
fmt.Println("What is foundation wallet address? (default = xdc746249C61f5832C5eEd53172776b460491bDcd5C)")
genesis.Config.XDPoS.FoudationWalletAddr = w.readDefaultAddress(common.HexToAddress(common.FoudationAddr))
// Validator Smart Contract Code
@ -232,7 +232,7 @@ func (w *wizard) makeGenesis() {
storage = make(map[common.Hash]common.Hash)
contractBackend.ForEachStorageAt(ctx, multiSignWalletAddr, nil, f)
fBalance := big.NewInt(0) // 3 billion
fBalance.Add(fBalance, big.NewInt(3*1000*1000*1000))
fBalance.Add(fBalance, big.NewInt(0*1000*1000*1000))
fBalance.Mul(fBalance, big.NewInt(1000000000000000000))
genesis.Alloc[common.HexToAddress(common.FoudationAddr)] = core.GenesisAccount{
Balance: fBalance,
@ -299,7 +299,7 @@ func (w *wizard) makeGenesis() {
contractBackend.ForEachStorageAt(ctx, multiSignWalletTeamAddr, nil, f)
// Team balance.
balance := big.NewInt(0) // 20 billion
balance.Add(balance, big.NewInt(20*1000*1000*1000))
balance.Add(balance, big.NewInt(30*1000*1000))
balance.Mul(balance, big.NewInt(1000000000000000000))
subBalance := big.NewInt(0) // i * 50k
subBalance.Add(subBalance, big.NewInt(int64(len(signers))*10*1000*1000))
@ -312,10 +312,10 @@ func (w *wizard) makeGenesis() {
}
fmt.Println()
fmt.Println("What is swap wallet address for fund 14.5Billion XDC?")
fmt.Println("What is swap wallet address for fund 37.47Billion XDC?")
swapAddr := *w.readAddress()
baseBalance := big.NewInt(0) // 14.5Billion
baseBalance.Add(baseBalance, big.NewInt(145*1000*1000*100))
baseBalance.Add(baseBalance, big.NewInt(3747*1000*1000*10))
baseBalance.Mul(baseBalance, big.NewInt(1000000000000000000))
genesis.Alloc[swapAddr] = core.GenesisAccount{
Balance: baseBalance,

View file

@ -33,7 +33,7 @@ const (
MasternodeVotingSMC = "xdc0000000000000000000000000000000000000088"
BlockSigners = "xdc0000000000000000000000000000000000000089"
RandomizeSMC = "xdc0000000000000000000000000000000000000090"
FoudationAddr = "xdc0000000000000000000000000000000000000068"
FoudationAddr = "xdc746249C61f5832C5eEd53172776b460491bDcd5C"
TeamAddr = "xdc0000000000000000000000000000000000000099"
VoteMethod = "0x6dd7d8ea"
UnvoteMethod = "0x02aa9be2"