calculateClaimableLamportsFromPrices()
calculateClaimableLamportsFromPrices()
function calculateClaimableLamportsFromPrices(params): bigint;Defined in: distributor/solana/fees.ts:118
Calculates claimable SOL lamports from:
- claimable token amount in the token's base units (BN or bigint)
- token USD price and SOL USD price
- token decimals
Parameters
| Parameter | Type |
|---|---|
params | { claimableAmount: bigint; solDecimals?: number; solPriceUsd: number; tokenDecimals: number; tokenPriceUsd: number; } |
params.claimableAmount | bigint |
params.solDecimals? | number |
params.solPriceUsd | number |
params.tokenDecimals | number |
params.tokenPriceUsd | number |
Returns
bigint