Skip to content

Commit

Permalink
Merge pull request #50 from hirosystems/fix/stacking-fee-env
Browse files Browse the repository at this point in the history
fix: allow env variable for stacking fee
  • Loading branch information
hstove authored Oct 23, 2024
2 parents b457877 + 478677e commit 482f40e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stacking/stacking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ const stackingInterval = parseEnvInt('STACKING_INTERVAL', true);
const postTxWait = parseEnvInt('POST_TX_WAIT', true);
const stackingCycles = parseEnvInt('STACKING_CYCLES', true);
const stackAmount = parseEnvInt('STACK_AMOUNT_STX', false);
const stackingFee = parseEnvInt('STACKING_FEE', false) ?? 1000000;

let startTxFee = 1000;
let startTxFee = stackingFee;
const getNextTxFee = () => startTxFee++;

async function run() {
Expand Down

0 comments on commit 482f40e

Please sign in to comment.