Skip to content

Commit

Permalink
fix: min fee on unlock yf
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Sep 18, 2024
1 parent bb6fcde commit 582ce15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export class YieldFarmingBlaze

const signerKey = BlazeHelper.getAddressHashes(ownerAddress);
const txInstance = this.blaze.newTransaction();
txInstance.setMinimumFee(500_000n);

referenceInputs.forEach((input) => txInstance.addReferenceInput(input));
signerKey?.paymentCredentials &&
Expand Down Expand Up @@ -271,8 +272,6 @@ export class YieldFarmingBlaze
lockedValues === undefined ||
(lockedValues && lockedValues.length === 0)
) {
const draft = await txInstance.complete();
txInstance.setMinimumFee(draft.body().fee() + 10_000n);
return this.completeTx({
tx: txInstance,
deposit,
Expand Down Expand Up @@ -321,8 +320,6 @@ export class YieldFarmingBlaze
Core.PlutusData.fromCbor(Core.HexBlob(inline)),
);

txInstance.setMinimumFee(500_000n);

return this.completeTx({
tx: txInstance,
datum: inline,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ describe("YieldFarmingBlaze", () => {
if (
matchingAsset &&
matchingAsset >= 10_000_000n &&
output.amount().coin() > 5_000_000n
output.amount().coin() === 4_500_000n
) {
return true;
}
Expand Down

0 comments on commit 582ce15

Please sign in to comment.