Multiplies the micro-SOL price per token basis by the token amount
to get the total cost in SOL.
Returns
The total cost in SOL
Example
// Bidding for 1,000,000 token units at 500 micro-SOL each constpricePerUnit = microLamports(500n); constamount = 1_000_000n; consttotalCost = totalBidSol(pricePerUnit, amount); // Returns total SOL needed for the bid
Calculates the total SOL cost for a bid.
Multiplies the micro-SOL price per token basis by the token amount to get the total cost in SOL.
Returns
The total cost in SOL
Example