From b454d3c6586fbe556d3fcb9c99084eba51b3221d Mon Sep 17 00:00:00 2001 From: Matthew Krak Date: Mon, 12 Aug 2024 08:38:31 -0700 Subject: [PATCH] added comment about fees --- examples/oft-solana/tasks/solana/createOFTAdapter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/oft-solana/tasks/solana/createOFTAdapter.ts b/examples/oft-solana/tasks/solana/createOFTAdapter.ts index 953d057b7..fc4988e6e 100644 --- a/examples/oft-solana/tasks/solana/createOFTAdapter.ts +++ b/examples/oft-solana/tasks/solana/createOFTAdapter.ts @@ -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))