Skip to content

Commit

Permalink
Adding initialFeePerKb to set it back.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Oct 28, 2024
1 parent aed2792 commit 58d00aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tests/2wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ const execute = (description, getRskHost) => {
const initialRskSenderBalanceInWeisBN = await rskTxHelper.getBalance(senderRecipientInfo.rskRecipientRskAddressInfo.address);
const pegoutValueInRbtc = MINIMUM_PEGOUT_AMOUNT_IN_RBTC;

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.
Expand Down

0 comments on commit 58d00aa

Please sign in to comment.