Skip to content

Commit

Permalink
chore: temporarily pad fees for blaze
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Oct 8, 2024
1 parent ab34a79 commit a607298
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,9 @@ export class TxBuilderBlazeV1 extends TxBuilderV1 {
}: ITxBuilderBlazeCompleteTxArgs): Promise<
IComposedTx<BlazeTx, Core.Transaction>
> {
// Temporarily pad fee.
tx.setFeePadding(50000n);

const baseFees: Omit<ITxBuilderFees, "cardanoTxFee"> = {
deposit: new AssetAmount(deposit ?? ORDER_DEPOSIT_DEFAULT, ADA_METADATA),
scooperFee: new AssetAmount(
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,9 @@ export class TxBuilderBlazeV3 extends TxBuilderV3 {
}: ITxBuilderBlazeCompleteTxArgs): Promise<
IComposedTx<BlazeTx, Core.Transaction>
> {
// Temporarily pad fee.
tx.setFeePadding(50000n);

const baseFees: Omit<ITxBuilderFees, "cardanoTxFee"> = {
deposit: new AssetAmount(deposit ?? ORDER_DEPOSIT_DEFAULT, ADA_METADATA),
scooperFee: new AssetAmount(
Expand Down

0 comments on commit a607298

Please sign in to comment.