Skip to content

Commit

Permalink
Using MINIMUM_PEGOUT_AMOUNT_IN_SATOSHIS
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Oct 30, 2024
1 parent 3067912 commit 102700b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tests/2wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ const execute = (description, getRskHost) => {
const initialFeePerKb = Number(await bridge.methods.getFeePerKb().call());
// We just need to have a feePerKB that will cause the pegout to rejected due to FEE_ABOVE_VALUE reason.
// This value is way bigger than what we need, but actual calculation is complex and and estimation so we cannot know for sure.
// That's we we just use a big enough value. The MINIMUM_PEGOUT_AMOUNT_IN_RBTC is perfect for this in this case.
const newFeePerKbInSatoshis = btcToSatoshis(MINIMUM_PEGOUT_AMOUNT_IN_RBTC);
// That's we we just use a big enough value. The MINIMUM_PEGOUT_AMOUNT_IN_SATOSHIS is perfect for this in this case.
const newFeePerKbInSatoshis = MINIMUM_PEGOUT_AMOUNT_IN_SATOSHIS;
await setFeePerKb(rskTxHelper, newFeePerKbInSatoshis);

// Act
Expand Down

0 comments on commit 102700b

Please sign in to comment.