Skip to content

Commit

Permalink
added comment about fees
Browse files Browse the repository at this point in the history
  • Loading branch information
St0rmBr3w committed Aug 12, 2024
1 parent 80f69e3 commit b454d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/oft-solana/tasks/solana/createOFTAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ task('lz:oft-adapter:solana:create', 'Mints new SPL Token, Lockbox, and new OFT

// Get the average compute unit price
// getFee() uses connection.getRecentPrioritizationFees() to get recent fees and averages them
// This is necessary as Solana's default compute unit price is not always sufficient to land the tx
const { averageFeeExcludingZeros } = await getFee()
const computeUnitPrice = BigInt(Math.round(averageFeeExcludingZeros))

Expand Down

0 comments on commit b454d3c

Please sign in to comment.