Move Txfee to coins/coin.json

This commit is contained in:
aayanl 2017-04-06 18:23:37 -04:00 committed by hellcatz
parent 5fbbed7446
commit b85536e65e
6 changed files with 73 additions and 77 deletions

View File

@ -1,5 +1,6 @@
{
"name": "komodo",
"symbol": "kmd",
"algorithm": "equihash"
"algorithm": "equihash",
"txfee": 0.00005
}

View File

@ -56,5 +56,6 @@
"t3PSn5TbMMAEw7Eu36DYctFezRzpX1hzf3M",
"t3R3Y5vnBLrEn8L6wFjPjBLnxSUQsKnmFpv",
"t3Pcm737EsVkGTbhsu2NekKtJeG92mvYyoN"
]
],
"txfee": 0.0004
}

View File

@ -20,5 +20,6 @@
"t2UjVSd3zheHPgAkuX8WQW2CiC9xHQ8EvWp", "t2TBUAhELyHUn8i6SXYsXz5Lmy7kDzA1uT5", "t2Tz3uCyhP6eizUWDc3bGH7XUC9GQsEyQNc", "t2NysJSZtLwMLWEJ6MH3BsxRh6h27mNcsSy",
"t2KXJVVyyrjVxxSeazbY9ksGyft4qsXUNm9", "t2J9YYtH31cveiLZzjaE4AcuwVho6qjTNzp", "t2QgvW4sP9zaGpPMH1GRzy7cpydmuRfB4AZ", "t2NDTJP9MosKpyFPHJmfjc5pGCvAU58XGa4",
"t29pHDBWq7qN4EjwSEHg8wEqYe9pkmVrtRP", "t2Ez9KM8VJLuArcxuEkNRAkhNvidKkzXcjJ", "t2D5y7J5fpXajLbGrMBQkFg2mFN8fo3n8cX", "t2UV2wr1PTaUiybpkV3FdSdGxUJeZdZztyt"
]
],
"txfee": 0.0004
}

View File

@ -3,5 +3,6 @@
"symbol": "zcl",
"algorithm": "equihash",
"requireShielding": true,
"peerMagic": "24e92764"
"peerMagic": "24e92764",
"txfee": 0.0004
}

View File

@ -2,5 +2,6 @@
"name": "zdash",
"symbol": "zdash",
"algorithm": "equihash",
"requireShielding": true
"requireShielding": true,
"txfee": 0.0004
}

View File

@ -55,6 +55,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
var minConfPayout = 10;
var requireShielding = poolOptions.coin.requireShielding === true;
var fee = poolOptions.coin.txfee;
logger.special(logSystem, logComponent, logComponent + ' requireShielding: ' + requireShielding);
@ -628,12 +629,6 @@ function SetupForPool(logger, poolOptions, setupFinished){
return;
}
// TODO, estimate transaction fees, make dynamic
var fee = 0.00005; // komodo
if (logComponent != "komodo") {
fee = 0.0004; // all other coins
}
round.category = generationTx.category;
if (round.category === 'generate') {
round.reward = balanceRound(generationTx.amount - fee) || balanceRound(generationTx.value - fee); // TODO: Adjust fees to be dynamic
@ -667,11 +662,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
}
});
// TODO, estimate transaction fees, make dynamic
var fee = 500; // komodo
if (logComponent != "komodo") {
fee = 4000; // all other coins
}
fee = fee * 1e8;
// calculate what the pool owes its miners
var totalOwed = parseInt(0);