valueAtPrice
valueAtPrice(
shares,price):bigint
Defined in: protocol-staking-liquid-near/src/math.ts:23
shares valued at price (yoctoNEAR per whole token, PRICE_SCALE = 1:1), rounded down.
Parameters
Section titled “Parameters”shares
Section titled “shares”bigint
bigint
Returns
Section titled “Returns”bigint