Skip to content

Commit

Permalink
added stamp 1 wan
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyJiaqg committed Dec 27, 2017
1 parent ef845de commit 580dc87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ const (

WanStampdot3 = "300000000000000000" //0.3

WanStamp1wan = "1000000000000000000" //1

)

Expand Down Expand Up @@ -498,6 +499,8 @@ func init() {
svaldot3, _ := new(big.Int).SetString(WanStampdot3, 10)
StampValueSet[svaldot3.Text(16)] = WanStampdot3

sval1wan, _ := new(big.Int).SetString(WanStamp1wan, 10)
StampValueSet[sval1wan.Text(16)] = WanStamp1wan

cval10, _ := new(big.Int).SetString(Wancoin10, 10)
WanCoinValueSet[cval10.Text(16)] = Wancoin10
Expand Down Expand Up @@ -986,11 +989,13 @@ func GetSupportStampOTABalances() []*big.Int {
svaldot06, _ := new(big.Int).SetString(WanStampdot06, 10)
svaldot09, _ := new(big.Int).SetString(WanStampdot09, 10)
svaldot3, _ := new(big.Int).SetString(WanStampdot3, 10)
sval1wan, _ := new(big.Int).SetString(WanStamp1wan, 10)
stampBalances := []*big.Int{
svaldot03,
svaldot06,
svaldot09,
svaldot3,
sval1wan,
}

return stampBalances
Expand Down
2 changes: 2 additions & 0 deletions core/vm/precompiled_contracts_addr.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var (

otaBalancePercentdot3WStorageAddr = common.HexToAddress(WanStampdot3)

otaBalancePercent1WStorageAddr = common.HexToAddress(WanStamp1wan)

otaBalance10WStorageAddr = common.HexToAddress(Wancoin10)
otaBalance20WStorageAddr = common.HexToAddress(Wancoin20)
otaBalance50WStorageAddr = common.HexToAddress(Wancoin50)
Expand Down

0 comments on commit 580dc87

Please sign in to comment.