Skip to content

Commit

Permalink
chore: set minfee to .40 ada for all txs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Oct 8, 2024
1 parent 75249a2 commit 5cfc0d4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 20 deletions.
8 changes: 4 additions & 4 deletions docs/typescript/core/Blaze/classes/TxBuilderBlazeV1.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const migrationResult = await sdk.builder().migrateLiquidityToV3([

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:1136](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L1136)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:1134](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L1134)

***

Expand Down Expand Up @@ -376,7 +376,7 @@ const txHash = await sdk.builder().update({

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:712](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L712)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:710](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L710)

***

Expand Down Expand Up @@ -416,7 +416,7 @@ const txHash = await sdk.builder().withdraw({

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:877](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L877)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:875](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L875)

***

Expand Down Expand Up @@ -456,7 +456,7 @@ const txHash = await sdk.builder().zap({

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:945](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L945)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts:943](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts#L943)

***

Expand Down
12 changes: 6 additions & 6 deletions docs/typescript/core/Blaze/classes/TxBuilderBlazeV3.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ A promise that resolves to the composed transaction object.

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1041](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1041)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1039](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1039)

***

Expand All @@ -136,7 +136,7 @@ The generated Bech32 address.

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1307](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1307)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1305](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1305)

***

Expand Down Expand Up @@ -272,7 +272,7 @@ Throws an error if the retrieval of UTXOs fails or if no UTXOs are available.

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1356](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1356)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1354](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1354)

***

Expand Down Expand Up @@ -490,7 +490,7 @@ A promise that resolves to the result of the updated transaction.

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:945](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L945)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:943](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L943)

***

Expand Down Expand Up @@ -520,7 +520,7 @@ A promise that resolves to the composed transaction object.

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1095](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1095)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1093](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1093)

***

Expand Down Expand Up @@ -550,4 +550,4 @@ A promise that resolves to the composed transaction object resulting from the za

#### Defined in

[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1153](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1153)
[packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts:1151](https://github.com/SundaeSwap-finance/sundae-sdk/blob/main/packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts#L1151)
6 changes: 2 additions & 4 deletions packages/core/src/TxBuilders/TxBuilder.Blaze.V1.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,6 @@ export class TxBuilderBlazeV1 extends TxBuilderV1 {
);
}

tx.setMinimumFee(310_000n);

return this.completeTx({
tx,
datum: spendingDatum.toCbor(),
Expand Down Expand Up @@ -1526,8 +1524,8 @@ export class TxBuilderBlazeV1 extends TxBuilderV1 {
}: ITxBuilderBlazeCompleteTxArgs): Promise<
IComposedTx<BlazeTx, Core.Transaction>
> {
// Temporarily pad fee.
tx.setFeePadding(50000n);
// Set the min fee high enough to cover lack of accuracy.
tx.setMinimumFee(400_000n);

const baseFees: Omit<ITxBuilderFees, "cardanoTxFee"> = {
deposit: new AssetAmount(deposit ?? ORDER_DEPOSIT_DEFAULT, ADA_METADATA),
Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/TxBuilders/TxBuilder.Blaze.V3.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,6 @@ export class TxBuilderBlazeV3 extends TxBuilderV3 {
tx.addRequiredSigner(Core.Ed25519KeyHashHex(signerKey));
}

tx.setMinimumFee(235_000n);

return this.completeTx({
tx,
datum: spendingDatum.toCbor(),
Expand Down Expand Up @@ -1380,8 +1378,8 @@ export class TxBuilderBlazeV3 extends TxBuilderV3 {
}: ITxBuilderBlazeCompleteTxArgs): Promise<
IComposedTx<BlazeTx, Core.Transaction>
> {
// Temporarily pad fee.
tx.setFeePadding(50000n);
// Set the min fee high enough to cover lack of accuracy.
tx.setMinimumFee(400_000n);

const baseFees: Omit<ITxBuilderFees, "cardanoTxFee"> = {
deposit: new AssetAmount(deposit ?? ORDER_DEPOSIT_DEFAULT, ADA_METADATA),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ export class YieldFarmingBlaze
),
);

// Set fee padding to resolve miscalculated fees.
tx.setFeePadding(10000n);
// Set min fee.
tx.setMinimumFee(400_000n);

return this.completeTx({
deposit: new AssetAmount(0n, ADA_METADATA),
Expand Down

0 comments on commit 5cfc0d4

Please sign in to comment.