Skip to content

Commit

Permalink
fixup! fixup! feat(fee): logic for rent fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasBoda committed Feb 28, 2025
1 parent cf1c485 commit 3685deb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/blockchain-link/src/workers/solana/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,8 @@ const estimateFee = async (request: Request<MessageTypes.EstimateFee>) => {
const priorityFee = await getPriorityFee(api.rpc, message, transaction.signatures);
const baseFee = await getBaseFee(api.rpc, message);

const getStakingAccountCreationFee = async () => await api.rpc
.getMinimumBalanceForRentExemption(BigInt(STAKE_ACCOUNT_V2_SIZE))
.send();
const getStakingAccountCreationFee = async () =>
await api.rpc.getMinimumBalanceForRentExemption(BigInt(STAKE_ACCOUNT_V2_SIZE)).send();

const getTokenAccountCreationFee = async (
newTokenAccountProgramName?: 'spl-token' | 'spl-token-2022',
Expand Down

0 comments on commit 3685deb

Please sign in to comment.