Skip to content

Commit

Permalink
Fix sol fee calcualtion
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlotfi authored and mrlotfi committed Aug 17, 2024
1 parent 5bd7d1e commit d138278
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/fees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export class FeeService {
baseFulfillGas = baseFulfillGasWithOutBatch;
}

if (hasDestSwap) {
baseFulfillGas += swapFulfillAddedGas; // extra gas for swap on aggregators
}
if (hasDestSwap) {
baseFulfillGas += swapFulfillAddedGas; // extra gas for swap on aggregators
}

if (qr.auctionMode !== AUCTION_MODES.DONT_CARE) {
baseFulfillGas += auctionVaaVerificationAddedGas; // extra gas for swap on evm
Expand All @@ -129,7 +129,7 @@ export class FeeService {
} else {
let fulfillSolCost = solTxCost + additionalSolfulfillCost; // base tx fees;
fulfillSolCost += shrinkedStateCost;
fulfillCost += ataCreationCost; // asssumes we will always create user ata
fulfillSolCost += ataCreationCost; // asssumes we will always create user ata
fulfillCost = await this.calculateSolanaFee(
fulfillSolCost,
solPrice,
Expand Down

0 comments on commit d138278

Please sign in to comment.