Skip to content

Commit

Permalink
fix bugs (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
siovanus authored and laizy committed Aug 6, 2020
1 parent b7e5554 commit 0f19d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ const BLOCKHEIGHT_CC_POLARIS = 13130000

//new node cost height
const BLOCKHEIGHT_NEW_PEER_COST_MAINNET = 9400000
const BLOCKHEIGHT_NEW_PEER_COST_POLARIS = 13440000
const BLOCKHEIGHT_NEW_PEER_COST_POLARIS = 13400000
2 changes: 1 addition & 1 deletion smartcontract/service/native/governance/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ func splitNodeFee(native *native.NativeService, contract common.Address, peerPub
}
var amount uint64
if native.Height > config.GetNewPeerCostHeight() {
stakeFee := new(big.Int).Sub(
stakeFee := new(big.Int).Div(
new(big.Int).Mul(new(big.Int).SetUint64(nodeAmount), new(big.Int).SetUint64(totalPos)),
new(big.Int).Add(new(big.Int).SetUint64(initPos), new(big.Int).SetUint64(totalPos))).Uint64()
nodeFee := nodeAmount - stakeFee
Expand Down

0 comments on commit 0f19d4e

Please sign in to comment.