sharesForNear
sharesForNear(
amount,totals):bigint
Defined in: protocol-staking-liquid-near/src/math.ts:8
Tokens deposit_and_stake(amount) mints: amount × totalShares / totalStaked, rounded down.
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
totals
Section titled “totals”totalShares
Section titled “totalShares”bigint
totalStaked
Section titled “totalStaked”bigint
Returns
Section titled “Returns”bigint