diff --git a/common/constants/constants.go b/common/constants/constants.go index b26bdb4b80..18ece8c507 100644 --- a/common/constants/constants.go +++ b/common/constants/constants.go @@ -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 diff --git a/smartcontract/service/native/governance/method.go b/smartcontract/service/native/governance/method.go index d0a07e140c..deaceff70a 100644 --- a/smartcontract/service/native/governance/method.go +++ b/smartcontract/service/native/governance/method.go @@ -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