Skip to content

Commit

Permalink
pico pica
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed May 27, 2023
1 parent c51f7f1 commit 79f5025
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ func init() {
}

DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
// manually update the power reduction by replacing micro (u) -> pico (p)pica
sdk.DefaultPowerReduction = PowerReduction
}

// BanksyApp extends an ABCI application, but with most of its parameters exported.
Expand Down
14 changes: 14 additions & 0 deletions app/coins.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package app

import (
"math/big"

sdkmath "cosmossdk.io/math"
)

// BaseDenomUnit defines the base denomination unit for Banksy.
// 1 pica = 1x10^{BaseDenomUnit} ppica
var BaseDenomUnit = 12

// PowerReduction defines the default power reduction value for staking
var PowerReduction = sdkmath.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(12), nil))

0 comments on commit 79f5025

Please sign in to comment.